Update minio-go - fix for s3 IAM auth delays #531
Merged
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.
trying to retrieve IMDSv2 tokens during IAM s3 authentication. When
bazel-remote is run within a container on an aws ec2 instance, initial
attempts to authenticate using IAM will encounter a 120s delay. The
issue is the result of changes in the ec2 metadata services with
IMDSv2, which restricts how many network hops may be incurred before
for PUT statements. When executing directly on the ec2 instance, it
is 1 hop away, and is allowed. When executing within a docker
container on an ec2 instance, it is 2 hops away, and is forbidden. The
change to minio go reduces the timeout from 120s to 1s. Apparently
this token request is optional, so things continue to work afterward,
regardless.
Use 1s timeout for fetching imdsv2 token minio/minio-go#1626