-
Notifications
You must be signed in to change notification settings - Fork 120
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
RHEL-9435: Get AWS metadata via IMDSv2 #3351
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.
Some unit tests related to public clouds are failing. It seems related. Please fix these tests.
Yeah, I know about those. Working on it, I need to introduce some mocks. I know where the issues are. |
953f2df
to
479fb5f
Compare
Coverage (computed on Fedora latest) •
|
* Card ID: RHEL-9435 Even though both versions are officially supported, the AWS teams are tracking connections making v1 requests as WARNINGs [0]. This patch switches the order to try to use IMDSv2 first. [0]: https://github.com/aws/aws-imds-packet-analyzer
The function responsible for returning 'server' responses was altered to be less nested, which should improve its readability.
When type hints for 'dnf' are not available, loading this module would result in a test failure.
479fb5f
to
c8b7cb7
Compare
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. Thanks 👍
Even though both versions are officially supported, the AWS teams are tracking connections making v1 requests as WARNINGs 0.
This patch switches the order to try to use IMDSv2 first.