Repository navigation
Conversation
rich7420
marked this pull request as ready for review
November 12, 2026 23:00
With a trailer, the trailer signature check already rejects a tampered final chunk signature.
The trailer checksum is compared with or without signature verification, and s3gateway unit tests already cover it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Signed aws-chunked uploads (
STREAMING-AWS4-HMAC-SHA256-PAYLOADand its-TRAILERvariant) are verified only in secure mode, where OM returns the derived signing key, but the existing S3 SDK integration tests run against a non-secure cluster.This adds tests that upload through S3 Gateway to a Kerberos-secured MiniOzoneCluster with the AWS SDK v2 client. Valid PutObject and UploadPart requests, with and without a CRC32C trailer, must succeed. Each rejected case changes one part of the signed body (a data chunk, the final chunk signature or the trailer), expects
SignatureDoesNotMatch, and checks that the existing object or part is unchanged. The tests run with and without Ratis datastream, because S3 Gateway attaches the validator on a separate path for each.ECDSA (SigV4a) is not covered: S3 Gateway accepts only
AWS4-HMAC-SHA256authorization, so there is no ECDSA verification to test.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-15143
How was this patch tested?
Added tests in TestS3SignedChunksInSecureCluster and TestS3SignedChunksInSecureClusterWithRatisStreaming.
Fork CI: https://github.com/rich7420/ozone/actions/runs/46249263348