S3: compute request checksums only when required#42
Merged
Conversation
Since service/s3 v1.73.0 the SDK computes CRC32 checksums on PUT/multipart by default, breaking non-AWS S3-compatible backends that reject the parts. Set RequestChecksumCalculation to WhenRequired so no AWS_REQUEST_CHECKSUM_CALCULATION env var workaround is needed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
UlysseCorbeil
approved these changes
Jul 9, 2026
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.
Problem
AWS SDK Go v2
service/s3≥ v1.73.0 computes CRC32 request checksums on PUT/multipart uploads by default. Non-AWS S3-compatible backends (MinIO, Ceph, GCS-S3, etc.) reject those parts, so uploads fail. Customers had to work around it with the env varAWS_REQUEST_CHECKSUM_CALCULATION=when_required.Ref: aws/aws-sdk-go-v2#2960
Fix
Set
o.RequestChecksumCalculation = aws.RequestChecksumCalculationWhenRequiredon the S3 client — the programmatic equivalent of the env var. Reverts to the pre-v1.73.0 behavior (checksum only when the operation requires it), no ops workaround needed.The existing
DisableLogOutputChecksumValidationSkippedonly silenced GET-side warning logs; it never touched request-side checksum calculation.🤖 Generated with Claude Code