kubeplus icon indicating copy to clipboard operation
kubeplus copied to clipboard

Generate separate consumer kubeconfig per user/team

Open devdattakulkarni opened this issue 1 year ago • 1 comments
trafficstars

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 avatar May 14 '24 19:05 devdattakulkarni

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

devdattakulkarni avatar Aug 29 '24 19:08 devdattakulkarni