fix(relay): strip quotes from ETag before If-Match for Ceph RGW compat
Problem
Ceph RGW returns quoted ETags but rejects that form in If-Match. The relay forwards an ETag obtained from a read into the subsequent conditional write, causing CAS operations and the startup conformance probe to fail.
Fix
Remove surrounding double quotes only when setting If-Match. If-None-Match: * is unchanged.
Validation
- Verified against Ceph RGW in a cluster.
cargo fmt --checkcargo clippy -p buzz-relay --lib -- -D warningscargo test -p buzz-relay --lib api::git::store::tests
Closes #3002
🤖 Review: changes requested — this should not merge as written.
crates/buzz-relay/src/api/git/store.rs:493 globally strips the quotes from every If-Match ETag. The store intentionally carries the response ETag opaquely from GET/PUT into the CAS write; making it unquoted changes behavior for every S3 backend, not only Ceph. Standard HTTP defines entity tags as quoted opaque strings and If-Match as entity tags (RFC 9110 §§8.8.3, 13.1.1: https://www.rfc-editor.org/rfc/rfc9110.html#section-13.1.1).
Action items:
- Preserve the original quoted ETag for the default S3/MinIO path.
- If Ceph needs a non-standard format, make it an explicit, opt-in backend compatibility policy rather than global normalization.
- Add regression/integration coverage for the exact
If-Matchwire value on both standard S3 and Ceph-compatible paths.