-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow users to request shared namespaces for projects #2
Comments
Hey an example of what a profile looks like is here: Which validates against the following CRD: |
Which repo do I need to make the PR to ? |
@jptissot You should make it against the private version of the terraform-kubernetes-aks-platform-daaas |
Have a few questions about this:
|
@bbronzan
|
|
A few questions about your workflow for handling these requests when it comes to denying/rejecting a requested namespace.
|
In relation to #23, will these shared namespaces have shared KV stores for secrets? |
From @M-A-Boucher:
@sylus, @zachomedia: GitHub token done via k8s secret? Vault? Injected into pod filesystem? /cc @justbert |
We will need a service account token that has access to the private github repo to use when creating the commit / pr. Maybe limit the account's access to only be able to push branches. |
Do we also put the requesting user's email in the PR so they can be contacted if the request is approved or rejected? |
@bbronzan:
|
@M-A-Boucher No need to add contact information to the PR entity; it will be resolvable from the diff. Right, @sylus? |
So we'll still need to capture this scenario (PR is closed) in the user journey so they aren't sitting around waiting for their namespace to be created. heh When a PR is closed, would the "closer" enter a reason why it was not closed? Would this reason be viewable by the original requester? (i.e. link to PR in GitHub) |
@bbronzan The repository is (necessarily) private, so we can't provide a link to the actual PR. If there is no portal-tracking of state, then we would have to rely on administrative staff contacting the user to share any relevant info. Unfortunately, the GitHub API looks like comments and closures are independent. If there is a means of reliably linking a "Close and comment"-style comment to the closure event (e.g. an identical timestamp), then we can use that comment as the reason and pass it on to the end-user. If no such mechanism exists, then... well... there's more to talk about. |
Cool thanks, we're going to look into catching this. We'll update you as we go. |
@zachomedia @M-A-Boucher is still waiting on the YAML template to use. |
@M-A-Boucher Is the Profile sample @sylus provided above not sufficient? |
What needs to be dynamic in that file? |
@zachomedia mind giving explanation here? |
There are basically two dynamic fields in the profile YAML: apiVersion: kubeflow.org/v1
kind: Profile
metadata:
name: $PROFILE_NAME
spec:
owner:
kind: User
name: $OWNER_EMAIL |
The GitHub token has been provided, please ensure to token is stored securely. Ideally, it should go into Hashicorp Vault and be injected in, but I can accept it in a Kubernetes secret for the time being. |
@zachomedia we were going to store the token in the database as encrypted. Is that acceptable? If not I can do a workaround so it's loaded via enciorronment variables |
@zachomedia, the bot token we were given, I hope it's not an account with admin privileges, it should only have rights to create branches, commit files, and open PRs. Is this correct? |
@M-A-Boucher Yes, that is correct |
Feature is complete! |
Terraform with CI to create namespace. Also a webportal frontend for user submissions for namespaces
The text was updated successfully, but these errors were encountered: