Skip to content
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

Clobbered logins on EKS with same account, user, and role but different regions #555

Open
hstenzel opened this issue Aug 23, 2023 · 0 comments
Labels
kind/bug Something isn't working

Comments

@hstenzel
Copy link

hstenzel commented Aug 23, 2023

What happened:

When I use kconnect to connect to two different eks clusters in different regions with the same user and providerid, only the most recently used cluster works. Commands to the other cluster fail with Unauthorized.

What did you expect to happen:

Commands to both clusters work as long as I have TIME LEFT according to kconnect ls.

How to reproduce it:

  • Have access to two eks clusters in the same account, same user, same role, but different regions
  • kconnect use eks and log in to cluster1
  • kconnect use eks and log in to cluster2
  • kubectl config get-contexts and note the context name for cluster1 and cluster2
  • kubectl --context <context-of-cluster1> version -o json and observe failure/Unauthorized
  • kubectl --context <context-of-cluster2> version -o json and observe success
  • kconnect ls and validate that there is still TIME LEFT on both cluster1 and cluster2

Anything else you would like to add:

The kubeconfig user name ( kubectl config view --minify | yq .users[].name ) is the same for both clusters despite the args having values that are specific to one of the clusters.

Environment:

  • kconnect version (use kconnect version): 0.5.11
  • Kubernetes version (use kubectl version):
  • OS (e.g. from /etc/os-release): MacOS Ventura 13.04
  • Target environment (e.g. EKS, AKS, Rancher): EKS
  • Authentication Used (e.g. SAML, IAM, Azure AD): SAML
@hstenzel hstenzel added the kind/bug Something isn't working label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant