vmware-archive / gangway

An application that can be used to easily enable authentication flows via OIDC for a kubernetes cluster.
Apache License 2.0
410 stars 113 forks source link

Gangway user is not unique #134

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi

After authenticating and gangway provides the kubectl configuration it provides the kubectl user from you're email. This works perfectly fine when you have one cluster but when you have multiple clusters it overrides the token values of previous gangway enrols.

Is there any way to customise the output to something which is unique for the cluster. For example. Currently it sets the kubectl user to something like simon@example.com. When using AD as a backend source. Is there a way without creating custom templates to append the cluster name to that?

I am using the image: gcr.io/heptio-images/gangway:v3.1.0

ghost commented 5 years ago

Building the image seemed to resolve the problem.