Skip to content

fix(config): set MD5 checksums for DigitalOcean and GCS flavors since they don't support CRC32C, and explicitly set CRC32C for MinIO#6487

Open
fulmicoton-dd wants to merge 1 commit into
mainfrom
paul-masurel/fix-checksum-flavors
Open

fix(config): set MD5 checksums for DigitalOcean and GCS flavors since they don't support CRC32C, and explicitly set CRC32C for MinIO#6487
fulmicoton-dd wants to merge 1 commit into
mainfrom
paul-masurel/fix-checksum-flavors

Conversation

@fulmicoton-dd
Copy link
Copy Markdown
Collaborator

Summary

  • DigitalOcean does not support CRC32C: explicitly set Md5 now that Crc32c is the default
  • GCS was previously Disabled (which predated the CRC32C default); switch to Md5 since it also lacks CRC32C S3 SDK support
  • MinIO: explicitly set Crc32c for clarity (previously fell through to the new default)
  • Add checksum-related assertions to the per-flavor serde tests

Follows up on #6442 which made CRC32C the default checksum algorithm.

Test plan

  • cargo nextest run -p quickwit-config passes
  • Clippy and fmt clean

@fulmicoton fulmicoton requested a review from fmassot June 3, 2026 07:54
@fulmicoton fulmicoton marked this pull request as ready for review June 3, 2026 07:54
@fulmicoton fulmicoton requested a review from a team as a code owner June 3, 2026 07:54
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 52a5238847

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread quickwit/quickwit-config/src/storage_config.rs
… they don't support CRC32C, and explicitly set CRC32C for MinIO
@fulmicoton-dd fulmicoton-dd force-pushed the paul-masurel/fix-checksum-flavors branch from 52a5238 to 87d802c Compare June 3, 2026 08:24
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 87d802ccbd

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

self.force_path_style_access = true;
self.disable_multi_object_delete = true;
// doesn't support CRC32C
self.checksum_algorithm = ChecksumAlgorithm::Md5;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve explicit checksum_algorithm with flavors

When an S3 config uses a flavor and also sets checksum_algorithm: disabled (or md5 for MinIO/Garage), apply_flavor() runs after deserialization and this unconditional assignment replaces the user-provided value; docs/configuration/storage-config.md documents checksum_algorithm as the supported control while disable_checksums is deprecated. For example, a DigitalOcean or GCS user disabling checksums to work around provider/proxy failures will still send Content-MD5, and MinIO/Garage users who choose disabled will get CRC32C. Please apply these flavor values only as defaults when the field was omitted, or otherwise keep honoring explicit config.

Useful? React with 👍 / 👎.

@guilload
Copy link
Copy Markdown
Member

guilload commented Jun 3, 2026

I remember Nadav mentioning that DO supports crc32c:
#6442 (comment)

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.

2 participants