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

feat(aws): support for IMDSv2 on setting bucket region #3735

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

karol-kokoszka
Copy link
Collaborator

Fixes #3691

This PR adds support for IMDSv2 instance region retrieval.
Scylla Manager Agent is using IMDS endpoint to get the instance metadata when configuring the RClone region used to write/read data from the S3 bucket.
It happens when the s3.region property is not configured in scylla-manager-agent.yaml config file.

If s3.region is defined, it takes precedence over the IMDS.

IMDSv2 requires to obtain the session token before calling to get the instance metadata. If the session token call fails, SM will fallback to IMDSv1 and just not include token into the request.


Please make sure that:

  • Code is split to commits that address a single change
  • Commit messages are informative
  • Commit titles have module prefix
  • Commit titles have issue nr. suffix

Copy link
Collaborator

@Michal-Leszczynski Michal-Leszczynski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@karol-kokoszka karol-kokoszka merged commit dae70b2 into master Feb 28, 2024
19 of 21 checks passed
@karol-kokoszka karol-kokoszka deleted the support_for_imdsv2 branch February 28, 2024 17:07
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.

Support IMDSv2 on instance metadata check
2 participants