Skip to content

fix(storage): address review findings for named S3 backends#2

Merged
papaharry merged 1 commit into
mainfrom
fix/s3-named-review-findings
Jun 17, 2026
Merged

fix(storage): address review findings for named S3 backends#2
papaharry merged 1 commit into
mainfrom
fix/s3-named-review-findings

Conversation

@papaharry

Copy link
Copy Markdown
Collaborator

Addresses the six Codex review findings on the s3+<name> named-backend feature.

Findings fixed

# Sev Fix
1 P1 Uri::path() now slices at the real :// separator; parent()/file_name() preserve the s3+<name> scheme (was corrupting s3+alt://bucket/key to t://bucket/key).
2 P1 Removed the process-wide OnceLock for force_path_style_access; each backend honors its own value.
4 P1 QW_S3_ENDPOINT / QW_S3_FORCE_PATH_STYLE_ACCESS apply to the primary backend only; named backends are self-contained (is_named_backend marker).
3 P2 as_s3_config() applies flavor expansion to named backends.
5 P2 Named struct accepts the disable_multi_object_delete_requests alias.
6 P2 Named struct accepts/passes through disable_checksums and the stalled-stream protection toggles (were denied + hard-coded false).

Tests

  • uri::tests::test_uri_named_s3_scheme
  • storage_config::tests::test_storage_s3_named_backends_field_parity
  • storage_config::tests::test_storage_s3_named_backend_applies_flavor
  • storage_config::tests::test_storage_s3_named_backend_uses_own_endpoint

Local: clippy clean, cargo +nightly fmt --check clean, all unit tests pass.

Note: none of these were triggered by the current staging config (uniform path-style, per-backend endpoints, no flavors/legacy keys) — they become load-bearing as the topology changes.

Six issues from the Codex review of the s3+<name> named-backend feature:

- uri: slice path at the real `://` separator and preserve the `s3+<name>`
  scheme in parent()/file_name() (was corrupting paths to `t://bucket`).
- config: env overrides (QW_S3_ENDPOINT, QW_S3_FORCE_PATH_STYLE_ACCESS) now
  apply to the primary backend only; named backends are self-contained.
  Removed the process-wide OnceLock that cached the first client's path-style.
- config: as_s3_config() applies flavor expansion for named backends.
- config: accept the disable_multi_object_delete_requests alias on named.
- config: accept and pass through disable_checksums and the stalled-stream
  protection toggles on named backends (were denied and hard-coded false).

Adds unit tests for URI scheme preservation, field parity, flavor expansion,
and named-backend endpoint isolation. Updates storage-config docs.
@papaharry papaharry merged commit c37ced7 into main Jun 17, 2026
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.

1 participant