-
Notifications
You must be signed in to change notification settings - Fork 0
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
kubectl gs login
should assist user when using --cluster-admin
by mistake
#1530
Comments
@gawertm we think this is in bigmac |
--cluster-admin flag should only be used by Giantswarm staff and if its used wrongly, we should include this information as an additional output. also include the information in the help |
Since this issue was created, we have introduced a separation of customer and Giantswarm connectors in kgs (driven by the Unfortunately, kgs login callback server is not called in case there is an error during the OIDC flow, so we cannot print a message in kgs. Despite the above, there are a few things that we can do to improve the situation:
|
Regarding the generic message in Dex - some identity providers (e.g. Azure AD) do not redirect back to Dex in case the authentication flow fails and they display their own error message instead. Dex has no way of finding out that the authentication flow failed and neither does kgs. So, a generic message in Dex will only work for a limited subset of connectors/identity providers. |
As a quick improvement the description of the |
What did the user do, what happened?
When using
kubectl gs login
with the flag--cluster-admin
, against a management cluster, the user got this error:The user is not a member of the Giant Swarm org.
What should have happened instead?
Ideally the error message should have hinted to the solution.
Additional context
The user is not a member of Giant Swarm.
The user also mentioned:
If the
--cluster-admin
flag is in fact to be used by non-Giant-Swarm-users, this is likely to cause confusion.The text was updated successfully, but these errors were encountered: