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: Fix signer to allow streaming unsigned payload without checksum & add integration test #1671

Merged
merged 5 commits into from
Aug 13, 2024

Conversation

sichanyoo
Copy link
Contributor

@sichanyoo sichanyoo commented Aug 8, 2024

Issue #

#1660

Description of changes

Refer to comments on GH diff for details

New/existing dependencies impact assessment, if applicable

Conventional Commits

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

Copy link
Contributor Author

@sichanyoo sichanyoo left a comment

Choose a reason for hiding this comment

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

Comments for reviewers

@sichanyoo sichanyoo requested a review from dayaffe August 8, 2024 23:46
Copy link
Contributor

@jbelkins jbelkins left a comment

Choose a reason for hiding this comment

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

A couple minor fixes & questions

@@ -256,12 +256,14 @@ public class AWSSigV4Signer: SmithyHTTPAuthAPI.Signer {
}
}

// STREAMING-UNSIGNED-PAYLOAD-TRAILER
if isUnsignedBody { return .streamingUnsignedPayloadTrailer }

// streaming + eligible for chunked transfer
if !checksumIsPresent {
Copy link
Contributor

Choose a reason for hiding this comment

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

should we reverse this if-else? Weird to have a negated condition for an if-else

Copy link
Contributor

Choose a reason for hiding this comment

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

this whole if-else can now break down to one statement BTW

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed as suggested.

@sichanyoo sichanyoo requested a review from jbelkins August 12, 2024 17:39
@sichanyoo sichanyoo merged commit cafc52c into main Aug 13, 2024
29 checks passed
@sichanyoo sichanyoo deleted the fix/s3-streaming-unsigned-payload branch August 13, 2024 20:10
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.

2 participants