Closed snizhana-dynnyk closed 2 years ago
Added some details to the main comment
One problem to solve: the client has to trust the workload cluster CA certificate. For the management cluster we have athena delivering the CA certificate, so that it can then be added to the server
entry in the kubectl config.
I've requested this as a convenience feature for the everyday work. So with regards to the second question, I would not see the requirement to create automation configs / configs for another person through this process.
Assumption:
As an Admin with MC access, I want to quickly login to a WC.
kubectl gs login
work with WC with a minimal set of OIDC flagsAs an Admin, I want to provide access to a WC
Additional feature Get the command to use, (e.g cli guide) from happa (can be in an access tab or cluster section)
We have another customer in Openstack implementation that wants to use kubectl gs to make easier the access to the cluster
Current state: Install dex-app in WC and use k8s-authenticator which allows OIDC by copying generated commands. Cumbersome.
Goal: Support logging into WC using dex via kubectl-gs login. Support existing flags of kubectl gs login
Non-goals Making dex default on all WCs Creating self contained kubeconfigs to hand out to third parties (SSO should be used for a specific user)
Notes from refinement We have this for MCs, where we run athena which exposes the CA. Where should this come from in the WC?
values.yaml
My 2 cents
Does it make sense to support this for legacy? Either way, focus should be CAPI
I would not invest time in legacy, by now only customer wants it is in CAPI
giantswarm
)kubectl gs login
needs a UX review when enabling OIDC for workload clusters. The --workload-cluster
flag will be confusing.How does the user installing/configuring the app provide the CA certificate?
In legacy cluster operator set the CA in cluster values configmap, in CAPI cluster apps operator does it.
Created issues from the remaining points but will close this since it's done.
Towards Migration to Management API
User stories
kubectl
, I want to quickly set up a context in my kubectl config file to access a workload cluster that supports OIDC authentication.Description
The
kubectl gs login
command already supports OIDC authentication for the Kubernetes API of a management cluster (a.k.a Management API). This story here is about allowing roughly the same for a workload cluster.Questions
TODO