Skip to content

feat(services/s3): support Garage write checksums - #9239

Closed
Xuanwo wants to merge 4 commits into
mainfrom
xuanwo/garage-write-checksum-9182
Closed

Xuanwo wants to merge 4 commits into
mainfrom
xuanwo/garage-write-checksum-9182

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Which issue does this PR close?

Part of #9182.

Rationale for this change

Garage verifies full-object CRCs on signed single PUT and multipart writes. OpenDAL can expose that support on the named garage preset after handling two response differences in Garage 2.1.0.

What changes are included in this PR?

  • Advertise write_with_checksum for the Garage preset and record support in the generated capability catalog.
  • Recognize the Garage ChecksumCR64NVME multipart completion field for CRC-64/NVME. The writer prefers the canonical field and still checks the completion response and returned digest.
  • Report ChecksumMismatch for the observed HTTP 400 InvalidDigest responses to signed Garage PUT, part upload and multipart completion requests with explicit CRCs. Keep the original service diagnostic. The writer can retry a rejected computed PUT or part with its retained buffer.

Are there any user-facing changes?

Choose a checksum with the write intent on the Garage operator. Any and Fast use CRC-64/NVME. Algo and Expected support CRC-32C and CRC-64/NVME. Successful checksum writes return the confirmed digest in Metadata::checksum(). For a presigned PUT, provide an Expected digest and send its signed checksum header. Ordinary writes without a checksum intent omit checksum headers.

Verified on a digest-pinned Garage 2.1.0 fixture using signed path-style requests. Single PUT and unequal multipart writes returned the independent reference digests. Invalid expected digests preserved the previous bytes or target absence before and after abort. Actual presigned PUT and replay after a rejected computed CRC were also verified.

Breaking changes

AI Usage Statement

  • Pi via T3, magpie/codex/gpt-6.2-sol, max effort. Implemented the Garage protocol handling, revised capability advertisement, regenerated the catalog and ran the live and shared tests.
  • Pi via T3, magpie/codex/gpt-6.2-sol, high effort. Independently reviewed the protocol handling and live evidence on the earlier head.
  • Pi via T3, magpie/codex/gpt-6.2-astra, high effort. Coordinated the accepted Garage scope and the shared preset change.

@github-actions github-actions Bot added bindings/dotnet bindings/java bindings/python releases-note/feat The PR implements a new feature or has a title that begins with "feat" services/garage OpenDAL garage service. size:L This PR changes 100-499 lines, ignoring generated files. website labels Nov 27, 2026
@Xuanwo Xuanwo closed this Nov 27, 2026
@Xuanwo Xuanwo changed the title feat(services/s3): opt in to Garage write checksums feat(services/s3): support Garage write checksums Nov 27, 2026
@Xuanwo Xuanwo reopened this Nov 27, 2026
@Xuanwo

Xuanwo commented Nov 27, 2026

Copy link
Copy Markdown
Member Author

Tracking Garage write-checksum compatibility in #9243. (AI-assisted)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bindings/dotnet bindings/java bindings/python releases-note/feat The PR implements a new feature or has a title that begins with "feat" services/garage OpenDAL garage service. size:L This PR changes 100-499 lines, ignoring generated files. website

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants