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

Update minio-go - fix for s3 IAM auth delays #531

Merged

Conversation

justfalter
Copy link
Contributor

  • Update minio-go so that we can get a fix for timeouts encountered when
    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

- Update minio-go so that we can get a fix for timeouts encountered when
  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.
  minio/minio-go#1626
@mostynb mostynb merged commit 11896b9 into buchgr:master Mar 11, 2022
@mostynb
Copy link
Collaborator

mostynb commented Mar 11, 2022

Thanks for this fix, merged.

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.

None yet

2 participants