-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[BUG] [CLI] Rancher CLI does not store more than 1 cluster token at a time per host #46997
Comments
Seeing the same |
same things here |
same here |
@enrichman |
Hi @idogada-akamai, thanks, I'll try to prioritize this. 👍 |
is there any solution yet? |
@enrichman |
I'm facing the same problem |
Just keep a copy of your cli2.json and once the token expires and rancer rewrites just merge in the missing clusters. |
Rancher Server Setup
Information about the Cluster
User Information
Describe the bug
We have multiple clusters connected to the same Rancher instance, and we've set the option
kubeconfig-generate-token=false
so now users are using the AzureAD SSO integration to get the token.Each time a user is connecting to a different cluster, the CLI overrides the existing cluster token (per host), instead of just adding it to the cli2.json file.
Here's an example of what's happening, given the following kubeconfig file
As you see each time I switch context the credentials are being overridden and no re-used.
To Reproduce
kubeconfig-generate-token=false
Result
Credentials are being overridden every time you switch context.
Expected Result
When we connect to a new cluster, the credentials should be appended and not override the existing ones.
The text was updated successfully, but these errors were encountered: