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

Make minio package support legacy MD5 checksum (#23768) #23770

Merged
merged 2 commits into from
Mar 28, 2023

Conversation

wxiaoguang
Copy link
Contributor

Backport #23768 (no source code conflict, only some unrelated docs/test-ini conflicts)

Some storages like:

They do not support "x-amz-checksum-algorithm" header

But minio recently uses that header with CRC32C by default. So we have to tell minio to use legacy MD5 checksum.

A feedback from discord:
https://discord.com/channels/322538954119184384/561007778139734027/1090185427115319386

Some storages like:

 * https://developers.cloudflare.com/r2/api/s3/api/
 * https://www.backblaze.com/b2/docs/s3_compatible_api.html

They do not support "x-amz-checksum-algorithm" header

But minio recently uses that header with CRC32C by default. So we have
to tell minio to use legacy MD5 checksum.

I guess this needs to be backported because IIRC we 1.19 and 1.20 are
using similar minio package.

The minio package code for SendContentMD5 looks like this:

<details>

<img width="755" alt="image"
src="https://user-images.githubusercontent.com/2114189/228186768-4f2f6f67-62b9-4aee-9251-5af714ad9674.png">

</details>
# Conflicts:
#	custom/conf/app.example.ini
#	tests/pgsql.ini.tmpl
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Mar 28, 2023
@lunny lunny added this to the 1.19.1 milestone Mar 28, 2023
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 28, 2023
@lunny lunny merged commit b73d1ac into go-gitea:release/v1.19 Mar 28, 2023
@wxiaoguang wxiaoguang deleted the fix-minio-checksum-backport branch March 28, 2023 16:19
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants