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

fix: don't sign Expect header in SigV4 #812

Merged
merged 1 commit into from
Feb 28, 2023
Merged

Conversation

ianbotsf
Copy link
Contributor

Issue #

Closes aws-sdk-kotlin#862

Description of changes

Recent changes #802 and aws-sdk-kotlin#845 enabled sending the Expect: 100-continue header on S3 PUT requests over 2MB (by default). The Expect header is not meant to be signed and causes a problem when using S3 with Transfer Acceleration enabled. (It is unknown why this doesn't also cause a problem when using the default S3 configuration.)

This change exempts the Expect header from signature calculation.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ianbotsf ianbotsf requested a review from a team as a code owner February 27, 2023 22:05
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ianbotsf ianbotsf merged commit faf7d9a into main Feb 28, 2023
@ianbotsf ianbotsf deleted the fix-dont-sign-expect branch February 28, 2023 16:46
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.

S3 UploadPart API throws an exceptions with acceleration mode enabled.
4 participants