Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement: flexible checksums #2999

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stobrien89
Copy link
Member

Description of changes:
Adds default checksum calculation, deprecates the AddContentMD5 config option as S3 plans to deprecate MD5 checksums soon, adds two S3 client config options: request_checksum_calculation and response_checksum_validation with acceptable values for both being either when_supported or when_required.

request_checksum_calculation will default to when_supported, which means if an operation supports checksum calculation (indicated via modeling), the SDK will calculate the checksum and add the appropriate header. If it is set to when_required, the SDK will only compute and send a checksum when the operation requires an httpRequestChecksum.

response_checksum_validation also defaults to when_supported, which means if an operation models response algorithms, an attempt to validate a response checksum will be made. when_required will only validate response checksums when response checksum are modeled AND ChecksumMode is set to enabled on the command.

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

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