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

codegen: Update PresignClient to default use signer and options #969

Merged
merged 7 commits into from
Dec 14, 2020

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Dec 11, 2020

Updates the PresignClient generation to use the same Signer initialization as the API client. In addition, the PresignClient was updated to ensure the PresignOptions are passed down and used at each level.

Change updates the PresignClient and API client to use the same v4.Signer initialization if a (pre)signer has not been configured. Also updates the PresignClient to have PresignOption as a member instead of separate fields similar to API client's design. This allows the presign client to more easily pass down its configuration and be modified on a per operation base.

All changes to aws/signer/v4 are because this change is based on, #964, and will rebased once that that PR is merged.

Fixes #952

Copy link
Contributor

@skotambkar skotambkar left a comment

Choose a reason for hiding this comment

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

Looks good to me. Could you also update the missed case of handling negative expiration input for s3 presigner?

service/s3/api_client.go Show resolved Hide resolved
Updates the PresignClient generation to use the same Signer
initialization as the API client. In addition, the PresignClient was
updated to ensure the PresignOptions are passed down and used at each
level.
@jasdel jasdel requested a review from skotambkar December 14, 2020 17:14
@jasdel jasdel merged commit 511e8c8 into aws:master Dec 14, 2020
@jasdel jasdel deleted the fixup/SigNotMatch branch December 14, 2020 22:32
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.

SignatureDoesNotMatch error with special characters
3 participants