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 S3 send_content_md5 config and default to use MD5 #5870

Merged
merged 4 commits into from
Apr 19, 2024

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Apr 19, 2024

What this PR does:

This PR adds a new config in S3 bucket client send_content_md5 to specify the checksum algorithm to use when put objects. If true, use MD5. Otherwise use CRC32C.

Previously, bucket client uses CRC32C, which got an issue reported in #5829 when using non Amazon S3 object storage like Cloudflare R2. With the change in this pr, it should work out of the box. Thanos sets this value to true by default as well

If users want to stick with using CRC32C, they can turn off this flag.

Which issue(s) this PR fixes:
Fixes #5829

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

yeya24 added 2 commits April 18, 2024 22:52
Signed-off-by: Ben Ye <benye@amazon.com>
yeya24 added 2 commits April 18, 2024 22:59
Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
@alanprot
Copy link
Member

LGTM

@alanprot alanprot merged commit 44a5d25 into cortexproject:master Apr 19, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cloudflare R2 Header 'x-amz-checksum-algorithm' with value 'CRC32C' not implemented
2 participants