Skip to content

feat(core): add S3 wire checksum download stream#2102

Draft
trivikr wants to merge 2 commits into
mainfrom
wire-checksum-stream
Draft

feat(core): add S3 wire checksum download stream#2102
trivikr wants to merge 2 commits into
mainfrom
wire-checksum-stream

Conversation

@trivikr

@trivikr trivikr commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available:

Internal JS-6752

Description of changes:

Add createWireChecksumStream with Node.js and browser/web-stream
implementations that validate an S3 wire checksum over a GetObject
response body without buffering the full payload.

The checksum is delivered in the aws-chunked trailer, so the stream
delegates framing decode to a new incremental AwsChunkedDecoder: it
strips chunk framing, surfaces only decoded object data to the caller,
computes the checksum over those bytes, and reads the expected value
from the trailer. Validation runs at end-of-stream and optionally
verifies the decoded byte count against x-amz-decoded-content-length.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@trivikr
trivikr force-pushed the wire-checksum-stream branch from 923b689 to 81f9eed Compare June 25, 2026 21:19
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.

1 participant