[V4] Update signers to handle anonymous credentials #3691
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Reported in the V4 tracker (#3362 (comment)): If a customer's environment is set to assume a role with web identity, the request to STS doesn't include credentials but our SigV4 signer wasn't handling that properly after the SRA changes.
Testing
DRY_RUN-2ed08959-fb2c-4b95-a703-5ae52229c08f
I also ran the app Martin shared locally, forcing the
AssumeRoleWithWebIdentityCredentials
provider to run (by setting theAWS_WEB_IDENTITY_TOKEN_FILE
environment variable), and confirmed the request was made to STS (instead of throwing a null pointer exception - it still failed because I don't have an OIDC on my account but it reached the service).Before:
After:
Types of changes
License