Set a custom User-Agent on STS token verification requests - #1084
Set a custom User-Agent on STS token verification requests#1084liwadman wants to merge 1 commit into
Conversation
The token verifier validates pre-signed sts:GetCallerIdentity URLs by issuing a raw HTTP GET with the default net/http client, which sends "Go-http-client/1.1" as the User-Agent. Identify these requests as coming from aws-iam-authenticator by setting a User-Agent of "aws-iam-authenticator/<version>", using the build-time version.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: liwadman The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
|
|
Welcome @liwadman! |
|
Hi @liwadman. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
|
The single finding from govulncheck exists outside of our PR. I believe the should be implemented the fix in a separate PR. |
What this PR does / why we need it:
This PR has the authenticator server set a custom user agent when communicating to AWS STS, to make it a bit easier at a glance to understand if a given GetCallerIdentity request originates from an EKS cluster control plane.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):No issue addressed by this.