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

awsutil: add GetCallerIdentity to Create/Rotate #10

Merged
merged 3 commits into from
Sep 20, 2021

Conversation

vancluever
Copy link
Contributor

This adds GetCallerIdentity to CreateAccessKey and RotateKeys. The
latter is done simply by passing WithTimeout through to the inner
CreateAccessKey on Rotate. As such, both paths are conditional on a
non-zero WithTimeout option being given - this is to ensure that we
don't try to immediately verify, which is likely to always fail.

This adds GetCallerIdentity to CreateAccessKey and RotateKeys. The
latter is done simply by passing WithTimeout through to the inner
CreateAccessKey on Rotate. As such, both paths are conditional on a
non-zero WithTimeout option being given - this is to ensure that we
don't try to immediately verify, which is likely to always fail.
@vancluever vancluever requested a review from jefferai September 17, 2021 18:33
awsutil/rotate.go Outdated Show resolved Hide resolved
awsutil/rotate.go Outdated Show resolved Hide resolved
This does the following:

* Adds some comments for WithTimeout to RotateKeys and CreateAccessKey
  to explain exactly what these options do.

* Removes the exponential backoff. Even with the quadratic-time backoff
  we're still probably looking at a number of seconds of delay that's
  probably unnecessary. Retrying every 1s should not generate that much
  traffic and only need to be necessary for a few retries.
@vancluever
Copy link
Contributor Author

@jefferai changes made, should be good to go!

@vancluever vancluever requested a review from jefferai September 17, 2021 21:14
@jefferai jefferai merged commit 8ef7ccd into main Sep 20, 2021
@jefferai jefferai deleted the vancluever-add-getcalleridentity-to-rotate branch September 20, 2021 21:59
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