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

azure: add request identifier to IMDS requests #5218

Merged
merged 11 commits into from
May 8, 2024

Conversation

KsenijaS
Copy link
Contributor

Set x-ms-client-request-id uuid per request and log it.
This way we can easily find the request in the IMDS logs based on the uuid number.

Copy link
Member

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

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

LGTM!

@TheRealFalcon TheRealFalcon merged commit e10b052 into canonical:main May 8, 2024
29 checks passed
holmanb pushed a commit that referenced this pull request Jun 5, 2024
… readurl() (#5298)

My previous change #5218 introduced a bug where IMDS request is missing
`Cloud-Init` UserAgent and contains `python-requests` UserAgent instead.

A review showed that no users of `headers_cb` were specifying user-agent and it
seems unexpected that it wouldn't be defined similar to users of `headers`.

This PR updates readurl() to specify User-Agent in `req_args` for users passing in
`headers_cb`.
holmanb pushed a commit that referenced this pull request Jun 28, 2024
Set x-ms-client-request-id uuid per request and log it.
This way we can easily find the request in the IMDS logs based on the
uuid number.
holmanb pushed a commit that referenced this pull request Jun 28, 2024
… readurl() (#5298)

My previous change #5218 introduced a bug where IMDS request is missing
`Cloud-Init` UserAgent and contains `python-requests` UserAgent instead.

A review showed that no users of `headers_cb` were specifying user-agent and it
seems unexpected that it wouldn't be defined similar to users of `headers`.

This PR updates readurl() to specify User-Agent in `req_args` for users passing in
`headers_cb`.
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.

3 participants