Skip to content

Support Unsigned Payload Trailers #9009

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

Merged
merged 7 commits into from
May 7, 2025
Merged

Support Unsigned Payload Trailers #9009

merged 7 commits into from
May 7, 2025

Conversation

AliRamberg
Copy link
Contributor

@AliRamberg AliRamberg commented Apr 30, 2025

Closes #7939

Change Description

Background

Depending on the different S3 clients, region and other dependencies your S3 Signature might use different signing methods.
This PR adds support to trailing chunks in STREAMING-UNSIGNED-PAYLOAD-TRAILER requests.
It also verifies the checksum of the payload with the checksum provided in the request

Testing Details

How were the changes tested?
Along with the current v4 tests we have for STREAMING-AWS4-HMAC-SHA256-PAYLOAD, add test cases for STREAMING-UNSIGNED-PAYLOAD-TRAILER.

I've also tested with mountpoint-s3 and with s3fs Python module which now seems to rely on the trailer chunks.
I've manually tested with files I created locally and notices that the checksum writer is calculating each request payload correctly.

@AliRamberg AliRamberg added the include-changelog PR description should be included in next release changelog label Apr 30, 2025
Copy link

E2E Test Results - DynamoDB Local - Local Block Adapter

13 passed, 1 skipped

Copy link

E2E Test Results - Quickstart

12 passed

@AliRamberg AliRamberg force-pushed the feat/s3/trailing branch 3 times, most recently from 7b3781a to 173b0fc Compare May 4, 2025 08:25
@AliRamberg AliRamberg requested a review from guy-har May 4, 2025 08:35
@AliRamberg AliRamberg force-pushed the feat/s3/trailing branch 6 times, most recently from ef3c7e8 to f1ffa71 Compare May 5, 2025 10:03
Copy link
Contributor

@guy-har guy-har left a comment

Choose a reason for hiding this comment

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

Looks Great, awesome work

Added some comments, mostly nit.

AliRamberg and others added 6 commits May 6, 2025 16:01
Signed-off-by: Yahli Ramberg <[email protected]>
@AliRamberg AliRamberg merged commit 67284e8 into master May 7, 2025
41 checks passed
@AliRamberg AliRamberg deleted the feat/s3/trailing branch May 7, 2025 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include-changelog PR description should be included in next release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

S3 Gateway: extend signature types supported for sigv4a and streaming
2 participants