Retry on transient failures during AWS IAM auth login attempts #8727
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #8721
This PR causes Vault to retry if AWS returns an occasional 500-family or connection error. The approach taken here using the
retryable
package is the same as was recently taken when writing a lightweight Kubernetes Go client for the service registration feature.I do view this as a bug because our documentation here would lead folks to believe that this call would already be retried. However, I do not think we should put it out as a patch, and rather should include it in the next beta, just to err on the side of safety because even small AWS changes can have a big impact.
Acceptance test output
Output from manual testing IRL with ephemeral Vault test instance