-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add support for AWS instance metadata v2 #8062
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @tyrannosaurus-becks -- it's great that you're doing this, but I wonder if the SDK doesn't provide functionality for some of this out of the box so you don't have to worry about managing and maintaining it?
@joelthompson thanks for looking at this!
I don't see anything exporting information about the ec2 metadata service like the base URL here, can you elaborate on the approach you're suggesting? |
Test failures appear unrelated. Here's additional test output: === RUN TestAWSEndToEnd
|
You were right! I'd thought all the SDK methods returned objects rather than raw bodies but |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Nice to see the manual http calls getting replaced.
Relates to #7924
This PR adds support for using AWS instance metadata v2 in the AWS auth agent. It creates a utility tool called
InstanceMetadataService
that can be used to centralize and encapsulate Vault's knowledge about the service, to make it easier to update in the future.