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

fails to read cached SSO token when AWS profile config includes a sso_session attribute #771

Open
schrobot opened this issue Mar 21, 2024 · 2 comments

Comments

@schrobot
Copy link

schrobot commented Mar 21, 2024

see aws/aws-sdk-go#5184

Reproduction Steps

  1. Create an AWS profile in ~/.aws/config enabled for SSO, that has a session-name
  2. Run aws sso login --profile <that profile>
  3. Try to pull a docker image, and it fails
  4. Remove the session_name attribute, and login again
  5. It will work
@schrobot
Copy link
Author

schrobot commented Apr 16, 2024

From this issue it seems like if a new release is cut from the current source on main, the issue may be resolved. The released version's aws-sdk-go-v2 dependency is much older than what is currently on main.

@austinvazquez
Copy link
Contributor

austinvazquez commented May 15, 2024

Hi @schrobot, version 0.8.0 has been released; however, I was unable to reproduce the issue on the previous v0.7.1 version. Can you confirm the Amazon ECR credential helper version you encountered the issue? i.e. output from docker-credential-ecr-login -v

Also as a sanity check, can you confirm you set the AWS_PROFILE environment variable to the named profile for which the session was configured?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants