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

aws/defaults: Fix request metadata headers causing signature errors #537

Merged
merged 4 commits into from
Apr 21, 2020

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Apr 21, 2020

Fixes the SDK's adding the request metadata headers in the wrong location within the request handler stack. This created a situation where a request that was retried would sign the new attempt using the old value of the header. The header value would then be changed before sending the request.

This moves the request invocation id to only occur during build, maintaining its value across all requests attempts. Also moves request retry metadata header to be before sign, and after build. This ensures that a new value for each attempt can be set, and included in each request attempt.

Fix #533
Fix #521

@skmcgrail skmcgrail self-requested a review April 21, 2020 22:49
Fixes the SDK's adding the request metadata headers in the wrong
location within the request handler stack. This created a situation
where a request that was retried would sign the new attempt using the
old value of the header. The header value would then be changed before
sending the request.

This moves the request invocation id to only occur during build,
maintaining its value across all requests attempts. Also moves request
retry metadata header to be before sign, and after build. This ensures
that a new value for each attempt can be set, and included in each
request attempt.

Fix aws#533
Fix aws#521
@jasdel jasdel merged commit fd01a01 into aws:master Apr 21, 2020
@jasdel jasdel deleted the fixup/InvalidSignature branch April 21, 2020 23:21
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.

InvalidSignatureException on retry after a call is throttled Polling causes SignatureDoesNotMatch error
3 participants