-
Notifications
You must be signed in to change notification settings - Fork 662
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
feat: flexible checksum updates #2808
Merged
Merged
Conversation
This file contains 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
lucix-aws
reviewed
Sep 26, 2024
lucix-aws
reviewed
Sep 26, 2024
lucix-aws
reviewed
Sep 26, 2024
Madrigal
reviewed
Sep 30, 2024
lucix-aws
reviewed
Sep 30, 2024
Madrigal
reviewed
Oct 2, 2024
service/internal/checksum/middleware_compute_input_checksum_test.go
Outdated
Show resolved
Hide resolved
Madrigal
reviewed
Oct 7, 2024
lucix-aws
reviewed
Oct 7, 2024
lucix-aws
reviewed
Oct 7, 2024
merge main into branch
lucix-aws
reviewed
Oct 8, 2024
wty-Bryant
force-pushed
the
feat-flex-checksum
branch
from
November 20, 2024 22:32
e277468
to
59e520b
Compare
Madrigal
reviewed
Nov 25, 2024
merge main into branch
Madrigal
approved these changes
Nov 26, 2024
merge main into this branch
merge main into branch
merge main into branch
Madrigal
reviewed
Dec 18, 2024
|
||
// ID provides the middleware identifier | ||
func (m *RequestChecksumMetricsTracking) ID() string { | ||
return "AWSChecksum:RequestMetricsTracking" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[observation] we don't follow this pattern of x:y
on other middlewares, but I like how you used it here
service/internal/checksum/middleware_checksum_metrics_tracking_test.go
Outdated
Show resolved
Hide resolved
merge main to branch
merge main into branch
lucix-aws
changed the title
[DO NOT MERGE] Feat flex checksum
feat: flexible checksum updates
Jan 14, 2025
Madrigal
reviewed
Jan 14, 2025
{ | ||
"id": "9ebe24c4-7915-41e0-840d-a49eab6f9d97", | ||
"type": "feature", | ||
"description": "S3 client behavior is updated to always calculate a checksum by default for operations that support it (such as PutObject or UploadPart), or require it (such as DeleteObjects). The checksum algorithm used by default now becomes CRC32. Checksum behavior can be configured using `when_supported` and `when_required` options - in code using RequestChecksumCalculation, in shared config using request_checksum_calculation, or as env variable using AWS_REQUEST_CHECKSUM_CALCULATION. The S3 client attempts to validate response checksums for all S3 API operations that support checksums. However, if the SDK has not implemented the specified checksum algorithm then this validation is skipped. Checksum validation behavior can be configured using `when_supported` and `when_required` options - in code using ResponseChecksumValidation, in shared config using response_checksum_validation, or as env variable using AWS_RESPONSE_CHECKSUM_VALIDATION.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
"description": "S3 client behavior is updated to always calculate a checksum by default for operations that support it (such as PutObject or UploadPart), or require it (such as DeleteObjects). The checksum algorithm used by default now becomes CRC32. Checksum behavior can be configured using `when_supported` and `when_required` options - in code using RequestChecksumCalculation, in shared config using request_checksum_calculation, or as env variable using AWS_REQUEST_CHECKSUM_CALCULATION. The S3 client attempts to validate response checksums for all S3 API operations that support checksums. However, if the SDK has not implemented the specified checksum algorithm then this validation is skipped. Checksum validation behavior can be configured using `when_supported` and `when_required` options - in code using ResponseChecksumValidation, in shared config using response_checksum_validation, or as env variable using AWS_RESPONSE_CHECKSUM_VALIDATION.", | |
"description": "S3 client behavior is updated to always calculate a checksum by default for operations that support it (such as PutObject or UploadPart), or require it (such as DeleteObjects). The checksum algorithm used by default now becomes CRC32. Checksum behavior can be configured using `when_supported` and `when_required` options in 3 different places - in code using RequestChecksumCalculation, in shared config using request_checksum_calculation, or as env variable using AWS_REQUEST_CHECKSUM_CALCULATION. The S3 client attempts to validate response checksums for all S3 API operations that support checksums. However, if a different checksum algorithm is specified and the SDK has not yet implemented it, this validation is skipped. Checksum validation behavior can be configured using `when_supported` and `when_required` options in 3 places as well - in code using ResponseChecksumValidation, in shared config using response_checksum_validation, or as env variable using AWS_RESPONSE_CHECKSUM_VALIDATION.", |
Madrigal
approved these changes
Jan 14, 2025
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.
Add client cfg to opt-in/out checksum calculation/validation, change default algorithm to calculate checksum