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

[DO NOT MERGE] Feat flex checksum #2808

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open

[DO NOT MERGE] Feat flex checksum #2808

wants to merge 41 commits into from

Conversation

wty-Bryant
Copy link
Contributor

Add client cfg to opt-in/out checksum calculation/validation, change default algorithm to calculate checksum

@wty-Bryant wty-Bryant requested a review from a team as a code owner September 26, 2024 03:33
aws/checksum.go Show resolved Hide resolved
aws/checksum.go Outdated Show resolved Hide resolved
aws/checksum.go Outdated Show resolved Hide resolved
aws/checksum.go Outdated Show resolved Hide resolved
config/provider.go Show resolved Hide resolved
config/provider.go Show resolved Hide resolved
service/internal/checksum/middleware_add.go Show resolved Hide resolved
service/internal/checksum/middleware_setup_context.go Outdated Show resolved Hide resolved
.changelog/9ebe24c4791541e0840da49eab6f9d97.json Outdated Show resolved Hide resolved
.changelog/9ebe24c4791541e0840da49eab6f9d97.json Outdated Show resolved Hide resolved
aws/checksum.go Outdated Show resolved Hide resolved
aws/checksum.go Outdated Show resolved Hide resolved
aws/checksum.go Outdated Show resolved Hide resolved
service/internal/checksum/middleware_add.go Outdated Show resolved Hide resolved
service/internal/checksum/middleware_setup_context.go Outdated Show resolved Hide resolved
service/internal/checksum/middleware_setup_context.go Outdated Show resolved Hide resolved
service/internal/checksum/middleware_add.go Show resolved Hide resolved
config/load_options.go Show resolved Hide resolved
config/shared_config.go Outdated Show resolved Hide resolved
service/internal/checksum/middleware_add.go Outdated Show resolved Hide resolved
aws/config.go Outdated Show resolved Hide resolved
config/load_options.go Show resolved Hide resolved
aws/config.go Outdated Show resolved Hide resolved
aws/checksum.go Outdated Show resolved Hide resolved
Copy link
Contributor

@Madrigal Madrigal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had discussed and approved offline, but might as well give an explicit approval

@lucix-aws lucix-aws changed the title Feat flex checksum [DO NOT MERGE] Feat flex checksum Oct 8, 2024
feature/s3/manager/integ_upload_test.go Show resolved Hide resolved
service/internal/checksum/algorithms.go Show resolved Hide resolved
config/load_options.go Outdated Show resolved Hide resolved
aws/middleware/user_agent.go Show resolved Hide resolved
aws/middleware/user_agent.go Show resolved Hide resolved

// ID provides the middleware identifier
func (m *RequestChecksumMetricsTracking) ID() string {
return "AWSChecksum:RequestMetricsTracking"
Copy link
Contributor

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:yon other middlewares, but I like how you used it here

@@ -0,0 +1,169 @@
//go:build go1.16
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Why do we need to duplicate the user agent test? If we just want to test that it includes the features we're interested in, I wouldn't duplicate the whole test but just check that the user agent includes the features we're interested in
  2. Why do we put this under go:build tags?
  3. If we need to do the above, can we change this to go 1.21?

feature/s3/manager/integ_upload_test.go Outdated Show resolved Hide resolved
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.

3 participants