Skip to content

fix: fail closed on object lock preflight reads - #235

Merged
Vonng merged 1 commit into
mainfrom
codex/retention-preflight-hardening
Oct 14, 2026
Merged

Vonng merged 1 commit into
mainfrom
codex/retention-preflight-hardening

Conversation

@Vonng

@Vonng Vonng commented Oct 14, 2026

Copy link
Copy Markdown
Member

Object Lock preflight currently ignores metadata read failures and can accept the full request body before the storage write-lock guard rejects the overwrite. Return read failures immediately, while retaining the existing null-version lock checks and multipart UUID existence checks under the destination write lock.

Add four adversarial regressions for a paused directory PUT, a preflight read-quorum failure, a legacy upload targeting a locked version, and a recovered upload colliding with a replicated COMPLIANCE version. Run these and the existing Object Lock regressions in the CI race job. No multipart origin-marker exemption or storage-format change is introduced.

Validation on main 14042b5aa plus this exact patch:

  • make test: passed; lint reports 0 issues, generated files and compatibility baseline are unchanged, build and 51 test packages pass.
  • Object Lock race gate: all 14 test groups pass on Go 1.27.2.
  • The new preflight regression fails as expected with the unmodified preflight implementation.

This supplements #234 and preserves the Go 1.27.2, x/net and linter updates already on main. English and Chinese design documentation are updated separately in pgsty/silo.pgsty.com. Commits carry the author's DCO sign-off.

Return storage read failures before accepting an object overwrite. Keep the null-version and multipart target checks under the destination write lock, and add slow-body, read-fault, legacy-upload and recovery-collision regressions to the Object Lock race gate.

Signed-off-by: Feng Ruohang <[email protected]>
@Vonng
Vonng merged commit 0d3ba5d into main Oct 14, 2026
8 checks passed
@Vonng Vonng added this to the 20261018 milestone Oct 19, 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