Skip to content

v1.4.0 — S3 client-transparency by default

Choose a tag to compare

@masumi-ryugo masumi-ryugo released this 20 Jun 16:23
· 39 commits to main since this release

S4's compression (and gateway-default encryption) is now invisible to the client by default. This lands the realistic S3-compatibility target: no silent semantic divergences plus a client-transparent data plane, with the remaining gaps explicit (HTTP 501 / documented).

⚠️ Default behaviour change

GET/HEAD now return the logical ETag (MD5(original payload)) and the original Content-Length, and S4's reserved s4-* control metadata is stripped from responses. Existing deployments that relied on the physical (compressed-bytes) view can restore the old behaviour with --physical-passthrough.

Changed

  • ETag = MD5(original) (single-PUT) / AWS composite MD5(concat(part-MD5s))-N (multipart, best-effort) — matches what the client computed before upload.
  • Content-Length reflects the original (decompressed) size on GET/HEAD/range-GET.
  • Reserved s4-* metadata stripped from GET/HEAD/range responses — no codec internals leak; metadata round-trips/copies cleanly.
  • Conditional writes (If-Match/If-None-Match on PUT/CopyObject) evaluated against the logical ETag (412 on failure).
  • Multipart CompleteMultipartUpload reverse-maps part ETags via paginated ListParts (robust across multiple gateways / restarts); the composite-ETag stamp is best-effort (single-gateway) and documented.

Added

  • --physical-passthrough — opt out of client transparency (physical view, pre-1.4 behaviour).
  • --accurate-list-size — opt in to translate ListObjects(V2) Size and ETag to the logical view (default is the hybrid: list stays fast, HEAD/GET are logical).
  • DeleteObjects > 1000 keys → 400 MalformedXML (AWS limit parity).

Fixed

  • The client-transparency strip silently broke the inventory scanner's SSE classifier (gateway-default SSE-S4 is detected via the s4-encrypted marker). It now reads an unstripped internal HEAD, so SSE classification is correct again while the client view is unchanged.

Hardened over five Codex review rounds. s3-tests (Ceph conformance): S4-introduced regressions cut 21 → 11; the remaining 11 are the documented known limitations (mostly upstream s3s). See docs/compatibility.md.

Install

  • crates.io: s4-server / s4-codec / s4-config / s4-codec-py 1.4.0
  • PyPI: pip install s4fs==1.4.0 · pip install s4-codec==1.4.0
  • Image: ghcr.io/abyo-software/s4:1.4.0 (multi-arch; built by the release workflow)

🤖 Generated with Claude Code