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

add flag to enable MD5 checksum for S3 upload #790

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

akloss-cibo
Copy link
Contributor

This checksum is required if a bucket has Object Lock enabled by default.

addresses argoproj/argo-workflows#11182

@akloss-cibo akloss-cibo force-pushed the add-content-md5-header branch from d002fe1 to d2ac3e6 Compare January 21, 2025 16:20
s3/s3.go Outdated
@@ -91,6 +91,7 @@ type S3ClientOpts struct {
RoleSessionName string
UseSDKCreds bool
EncryptOpts EncryptOpts
EnableMD5 bool
Copy link
Member

@tczhao tczhao Jan 23, 2025

Choose a reason for hiding this comment

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

Since the api description in minio is

Specify if you’d like to send content-md5 header with PutObject operation. Note that setting this flag will cause higher memory usage because of in-memory md5sum calculation.

I probably keep this variable as SendContentMd5, it describe what the variable is doing more accurately.

Other variables in S3ClientOpts struct uses the same name if they also present in MinIO

This checksum is required if a bucket has Object Lock enabled by
default.

addresses argoproj/argo-workflows#11182

Signed-off-by: Alec Kloss <[email protected]>
@akloss-cibo akloss-cibo force-pushed the add-content-md5-header branch from d2ac3e6 to a422af0 Compare January 23, 2025 03:26
@akloss-cibo akloss-cibo requested a review from tczhao January 23, 2025 03:26
@tczhao tczhao enabled auto-merge (squash) January 23, 2025 03:33
@tczhao tczhao merged commit 65f2d47 into argoproj:master Jan 23, 2025
6 checks passed
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