Skip to content
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

Support for updating client permissions for self-service application deployments #1189

Open
Tracked by #683
devdattakulkarni opened this issue Sep 19, 2023 · 2 comments
Labels
good first issue Good for newcomers

Comments

@devdattakulkarni
Copy link
Contributor

devdattakulkarni commented Sep 19, 2023

Consumers can create application instances in a self-service manner using consumer specific kubeconfig that KubePlus creates. It is possible that the application Helm chart defines resources on whom the consumer kubeconfig does not have required permissions (CRUD, for example). We should add a plugin to grant/update permissions for the consumer kubeconfig. This functionality will be similar to the functionality that we currently have for adding/updating permissions for Provider.

As part of this functionality, we also need an easy way to extract consumer kubeconfig.

@devdattakulkarni devdattakulkarni mentioned this issue Sep 19, 2023
16 tasks
@devdattakulkarni devdattakulkarni changed the title Add a plugin to grant/update permissions for the consumer kubeconfig. This functionality will be similar to the functionality that we currently have for adding/updating permissions for provider. kubectl plugin to grant/update permissions for the consumer Sep 19, 2023
@devdattakulkarni
Copy link
Contributor Author

We could create consumer-kubeconfig.py, which performs actions similar to provider-kubeconfig.py. Another option is to change the name of provider-kubeconfig.py to more generic name and include the consumer kubeconfig generation/permission update functionality in it. An example would be - kubeconfighandler.py. We will also have to take in additional flag indicating who is the target persona for whom the action is being taken (provider or the consumer). We could label this flag as "-w" (standing of "who"). It can take two values - "provider" or "consumer".

@devdattakulkarni devdattakulkarni added the good first issue Good for newcomers label Apr 16, 2024
@devdattakulkarni devdattakulkarni changed the title kubectl plugin to grant/update permissions for the consumer Add support for updating consumer kubeconfig permissions Apr 16, 2024
@devdattakulkarni
Copy link
Contributor Author

Note that currently the kubeplus-saas-consumer ServiceAccount is being created in the KubePlus Deployment Helm chart.
https://github.com/cloud-ark/kubeplus/blob/master/deploy/kubeplus-chart/templates/kubeplus-components-6.yaml#L222

We will have to change that to create this service account in the new utility that we will add. This will be similar to the change that we have made for kubeplus-saas-provider ServiceAccount.

@devdattakulkarni devdattakulkarni changed the title Add support for updating consumer kubeconfig permissions Support for updating client kubeconfig permissions for self-service application deployments May 14, 2024
@devdattakulkarni devdattakulkarni changed the title Support for updating client kubeconfig permissions for self-service application deployments Support for updating client permissions for self-service application deployments May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant