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

Session not being created in 5.1.2 #501

Closed
chrisgilmerproj opened this issue Jan 17, 2020 · 3 comments
Closed

Session not being created in 5.1.2 #501

chrisgilmerproj opened this issue Jan 17, 2020 · 3 comments

Comments

@chrisgilmerproj
Copy link

I just upgraded from 5.0.1 to 5.1.2. The biggest change I noticed is that I now have to use my MFA token on every invocation of the tool. When looking in my Keychain Access in MacOS I no longer see a session being created like I had before, no matter how many times I run the command. Here is my command with debug:

$ aws-vault --debug exec PROFILE --duration=1h -- aws s3 ls
2020/01/17 19:43:37 [keyring] Considering backends: [keychain pass file]
2020/01/17 19:43:37 Loading config file /Users/cgilmer/.aws/config
2020/01/17 19:43:37 Parsing config file /Users/cgilmer/.aws/config
2020/01/17 19:43:37 Using region "us-west-2" from AWS_DEFAULT_REGION
2020/01/17 19:43:37 [keyring] Querying keychain for service="aws-vault", keychain="login.keychain"
2020/01/17 19:43:37 [keyring] Found 4 results
2020/01/17 19:43:37 profile PROFILE: using stored credentials
2020/01/17 19:43:37 profile PROFILE: using AssumeRole (using MFA)
Enter token for arn:aws:iam::XXXXX:mfa/cgilmer: XXXXX
2020/01/17 19:43:41 Looking up keyring for 'PROFILE'
2020/01/17 19:43:41 [keyring] Querying keychain for service="aws-vault", account="PROFILE", keychain="login.keychain"
2020/01/17 19:43:42 [keyring] Found item "aws-vault (PROFILE)"
2020/01/17 19:43:42 Generated credentials ****************DEOK using AssumeRole, expires in 1h0m12.509135s
2020/01/17 19:43:42 Setting subprocess env: AWS_DEFAULT_REGION=us-west-2, AWS_REGION=us-west-2
2020/01/17 19:43:42 Setting subprocess env: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
2020/01/17 19:43:42 Setting subprocess env: AWS_SESSION_TOKEN, AWS_SECURITY_TOKEN
2020/01/17 19:43:42 Setting subprocess env: AWS_SESSION_EXPIRATION

Can I provide other details?

@chrisgilmerproj
Copy link
Author

This may be related to #498 but I haven't been able to figure it out on my own yet.

@mtibben
Copy link
Member

mtibben commented Jan 22, 2020

Fixed in 13d41f1

@mtibben mtibben closed this as completed Jan 22, 2020
@chrisgilmerproj
Copy link
Author

Thank you for the quick turn around! 🎉

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