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

feature: eagerly fetch credentials when the ECS server starts #804

Merged

Conversation

tptee
Copy link
Contributor

@tptee tptee commented Sep 10, 2021

👋 I discovered the --ecs-server feature today and love it!

We use AWS SSO, which doesn't play nicely with the current --ecs-server behavior of lazily retrieving and caching credentials after the first request. While the server waits for us to complete the SSO prompt in the browser, commands using the AWS SDK time out, exiting the aws-vault subshell . See #615 for a description of the issue.

This PR retrieves and caches credentials eagerly at server start. This allows aws-vault to pause for manual prompts before running any commands in the subshell, guaranteeing that those commands will retrieve valid credentials from the ECS server.

While this PR changes behavior, I'm not sure if any consumers rely on lazy fetching–if anything, it could be considered a bugfix, although the safest bet would be to consider it a breaking change.

@mtibben mtibben merged commit fc990b9 into 99designs:master Oct 10, 2021
@tptee tptee deleted the feature/ecs-server-eager-credentials branch October 18, 2021 16:13
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

Successfully merging this pull request may close these issues.

2 participants