Skip to content

Set ChecksumMode for S3 response checksum validation - #3366

Open
stobrien89 wants to merge 1 commit into
aws:masterfrom
stobrien89:bugfix-flexible-checksums
Open

stobrien89 wants to merge 1 commit into
aws:masterfrom
stobrien89:bugfix-flexible-checksums

Conversation

@stobrien89

Copy link
Copy Markdown
Member

Description

Sets the modeled response checksum validation member to ENABLED when response_checksum_validation is when_supported and the operation supports a checksum algorithm available to the SDK.

Because ApplyChecksumMiddleware runs after serialization, this updates both the command member and its modeled request header.

This change also:

  • Preserves explicitly configured validation modes.
  • Leaves ChecksumMode unset for when_required unless explicitly enabled.
  • Prevents checksum control headers such as x-amz-checksum-mode from suppressing request checksum calculation.
  • Preserves existing presigned-request behavior.

Testing

  • Added middleware tests for default, explicit, required, and unsupported-algorithm behavior.
  • Added coverage for checksum control-header detection.
  • Added full client-stack and presigned-request coverage.

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

@stobrien89
stobrien89 requested a review from a team as a code owner October 5, 2026 19:33
@stobrien89
stobrien89 force-pushed the bugfix-flexible-checksums branch from 64119bb to 4f48a82 Compare October 5, 2026 20:27
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