vmware-archive / gangway

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

Deprecate use of emailClaim. #87

Closed paulczar closed 5 years ago

paulczar commented 5 years ago

In order to support multiple clusters in the future we need each username in the kubeconfig to be unique. Therefore rather than using the user's email from their oidc auth, we should construct it from usernameClaim and clusterName.

Of course we should also deprecate it nicely, so if emailClaim is set it will override that default and still use their OIDC email address and print a warning message in the logs.

Signed-off-by: Paul Czarkowski username.taken@gmail.com

paulczar commented 5 years ago

Resolves #86