Repository navigation
Generate flexible checksums for AWS clients - #999
Merged
Merged
Conversation
stobrien89
force-pushed
the
python-client-checksums
branch
from
November 30, 2026 17:56
1698b35 to
a95ffc0
Compare
kuhe
approved these changes
Nov 30, 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.
Issue #, if available:
Replaces #996, which GitHub marked merged with no changes after a bad force-push.
Description of changes:
Generated AWS clients now add and validate flexible checksums, matching Java's
AwsFlexibleChecksumsIntegration. S3 needs this for operations such asPutObject,DeleteObjectsandGetObject.AwsChecksumsIntegrationapplies to AWS services whose operations haveaws.protocols#httpChecksum.checksumsmodule withflexible_checksums_plugin, which adds the runtime'sFlexibleChecksumsInterceptor, orAsyncFlexibleChecksumsInterceptorin async clients. The package then needssmithy-aws-core[checksums].request_checksum_calculationandresponse_checksum_validationonly when an operation uses them, like Java. Both resolve from the environment and profile and default towhen_supported.aws.protocols#httpChecksum, which the interceptor reads.The
featuresfixture gains a request checksum onPutNoteand response validation onGetNote. A new snapshot test checks thatput_note(checksum_algorithm="SHA256")sendsx-amz-checksum-sha256from both clients.Note: this doesn't fix the
RestJsonHttpChecksumRequiredvector. That usessmithy.api#httpChecksumRequired, which the runtime interceptor doesn't handle yet.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.