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

Unclear warning with no way to quiet the error text. #617

Open
zwing99 opened this issue Mar 5, 2024 · 2 comments
Open

Unclear warning with no way to quiet the error text. #617

zwing99 opened this issue Mar 5, 2024 · 2 comments

Comments

@zwing99
Copy link

zwing99 commented Mar 5, 2024

when you do not have a suffix you get this warning and there seems to be no way to silence the warning without setting a suffix. Furthermore the docs and warning itself do not make clear the risk. Please allow me to silence the warning AND please make it clear what i should be afraid of.

$ assume coolcompany/Developer
[✔] [coolcompany/Developer](us-east-1) session credentials will expire in 8 hours
[!] No credential suffix found. This can cause issues with using exported credentials if conflicting profiles exist. Run `granted settings export-suffix set` to set one.
[✔] Exported credentials to ~/.aws/credentials file as coolcompany/Developer successfully

clio.Warn("No credential suffix found. This can cause issues with using exported credentials if conflicting profiles exist. Run `granted settings export-suffix set` to set one.")

@chrnorm
Copy link
Contributor

chrnorm commented Mar 6, 2024

Thanks for the report @zwing99. Could you please share the [profile coolcompany/Developer] block in your ~/.aws/config (redacting any AWS account IDs etc)?

@zwing99
Copy link
Author

zwing99 commented Mar 6, 2024

[profile coolcompany/Developer]
granted_sso_start_url      = https://coolcompany.awsapps.com/start
granted_sso_region         = us-east-1
granted_sso_account_id     = 3.141592653589793 🤪
granted_sso_role_name      = Developer
common_fate_generated_from = aws-sso
credential_process         = granted credential-process --profile coolcompany/Developer

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