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

Generate separate consumer kubeconfig per user/team #1276

Open
Tracked by #683
devdattakulkarni opened this issue May 14, 2024 · 1 comment
Open
Tracked by #683

Generate separate consumer kubeconfig per user/team #1276

devdattakulkarni opened this issue May 14, 2024 · 1 comment

Comments

@devdattakulkarni
Copy link
Contributor

devdattakulkarni commented May 14, 2024

KubePlus generates a consumer kubeconfig which can be used by users to create application instances in a self-service manner. Currently, only one consumer kubeconfig is generated by KubePlus. We should support the creation of separate kubeconfig files for different user/teams. Each team should be able to access only their application instance and no one else's.

One way to achieve this will be to tie the consumer kubeconfig to the Namespace.

We can add a kubectl plugin to generate consumer kubeconfig
kubectl generate consumer kubeconfig <Namespace>

As part of generating the kubeconfig, we should grant the new SA permissions on *.platformapi.kubeplus APIs.

But when we do this, we have to ensure that the application deployments happen in that namespace. Currently KubePlus will create a new Namespace for deploying an application. We will have to change that model to be able to support deployments in existing namespaces.

@devdattakulkarni devdattakulkarni mentioned this issue May 14, 2024
16 tasks
@devdattakulkarni
Copy link
Contributor Author

@chiukapoor In our discussion today, I was referring to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant