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

New AWS SSO Config Format Breaks teller #177

Closed
stvnksslr opened this issue Aug 5, 2023 · 3 comments
Closed

New AWS SSO Config Format Breaks teller #177

stvnksslr opened this issue Aug 5, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@stvnksslr
Copy link
Contributor

Expected Behavior

Teller should handle both the legacy and new aws cli sso formats

Current Behavior

you need to setup your sso with the legacy format in order to use teller

Steps to Reproduce

  1. aws configure sso
  2. when prompted for a sso session name use one, if you do not enter a name here it will revert to the legacy format.
  3. attempt to fetch secrets via teller ex. teller env
  4. receive error that your sso config is missing values / invalid

error from teller

FATA[0000] could not load all variables from the given existing providers  error="profile \"default\" is configured to use SSO but is missing required configuration: sso_region, sso_start_url"
@stvnksslr stvnksslr added the bug Something isn't working label Aug 5, 2023
@stvnksslr stvnksslr changed the title New AWS SSO Format Breaks teller New AWS SSO Config Format Breaks teller Aug 6, 2023
@stvnksslr stvnksslr mentioned this issue Nov 9, 2023
3 tasks
@kemosabe102
Copy link

It seems that sso_session is not supported. The new AWS SSO auto-token refresh method includes that field in the config file. After removing that line from my config file, teller env started working.

I always received this type of error:

FATA[0000] could not load all variables from the given existing providers  error="operation error Secrets Manager: GetSecretValue, failed to sign request: failed to retrieve credentials: the SSO session has expired or is invalid: open /Users/username/.aws/sso/cache/b1464194774a2651eaf92e19bda80332517c6b57.json: no such file or directory"

When I check /Users/username/.aws/sso/cache/, that json file doesn't exist, but the most recent one that I got from running aws sso login was there.

@stvnksslr
Copy link
Contributor Author

this is resolved in the master branch, will leave open until a new release is cut to prevent duplicate tickets.

@stvnksslr
Copy link
Contributor Author

No longer an issue in 2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants