Skip to content

fix: honor TLS defaults and accept valid bucket metadata reloads - #164

Merged
Vonng merged 5 commits into
mainfrom
codex/main-consolidation-20260909
Sep 9, 2026
Merged

Vonng merged 5 commits into
mainfrom
codex/main-consolidation-20260909

Conversation

@Vonng

@Vonng Vonng commented Sep 9, 2026

Copy link
Copy Markdown
Member

Go 1.27 applies ML-KEM GODEBUG controls to default curve preferences. Remove explicit Server curve overrides so listener, node, identity-provider, replication, and etcd transports honor those controls, with real handshake regression coverage.

Also remove the bucket metadata reload guard that treated the maximum per-configuration timestamp as a whole-record version. An unrelated policy timestamp could suppress a newer tagging configuration indefinitely. Retain the lifecycle and deletion locking fixes and make their concurrency tests deterministic. Add a peer-handler regression that fails on current main in both erasure layouts and passes under the race detector on this candidate. The existing best-effort cache freshness limit remains documented.

Validation: focused TLS and metadata race tests passed; the new equal-maximum-timestamp regression fails on the pre-fix main and passes after the repair; rebrand compatibility guard reports an unchanged product baseline. CI will exercise the full server and snapshot pipelines.

Refs #105 and #154.

Vonng and others added 5 commits September 8, 2026 16:13
…105 T3)

The #105 T3 change (PR #156) tried to keep the resident metadata cache
monotonic by guarding peer-reload publication on lastUpdate(). But
lastUpdate() is the max of per-config timestamps and cannot order whole
records: a node caching {policy@20, CORS@10} that receives a newer CORS@15
still has lastUpdate()==20, so the guard rejects the legitimately-newer
record and the periodic refresh (same comparator) cannot repair it. A
paused reload could also resurrect deleted resident state.

Per the maintainer decision, revert the reload publication to its original
unconditional (acceptable-until-refresh) behavior:
- remove setReloaded and restore the plain Set plus notification/target
  registry updates in LoadBucketMetadataHandler;
- restore refreshBucketsMetadataLoop's own lastUpdate() staleness check and
  globalEventNotifier.set / globalBucketTargetSys.set publication;
- restore the unconditional GetConfig cache-miss publication;
- document the known freshness limitation at the reload site (the periodic
  refresh is best-effort and cannot repair an equal-maximum-timestamp
  divergence).

The T1 lifecycle merge-under-lock (UpdateExpiryLCConfig) and both T2 fixes
(DeleteBucket takes metadata.lock before deleting; saveMetadata and
loadBucketMetadataParseUnderLock recheck physical bucket existence) are
kept fully intact.

Tests:
- drop the T3 reproductions (overlapping-reload resident-cache test and the
  peer-reload-preserves-current-targets publication test);
- add lockBucketMetadataAcquireHook, a nil-in-production atomic test hook in
  the shared metadata.lock path, so tests can deterministically observe a
  caller (notably DeleteBucket, whose lock is taken through its
  erasureServerPools receiver and is invisible to an injected object layer)
  reaching the lock;
- rewrite the T2 delete-race ghost test to hold metadata.lock MID-SAVE (past
  saveMetadata's existence recheck) and synchronize on the delete's actual
  lock attempt via the hook, so it isolates the lock-before-delete fix:
  removing only DeleteBucket's metadata.lock (recheck kept) now fails it;
- rewrite the cancellation test to observe the delete's actual lock attempt,
  then cancel and await its error while still holding the lock, so a
  scheduling-delayed delete stopped by the canceled context can no longer
  pass on a broken tree.

Refs #105. Follows #156.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Signed-off-by: Feng Ruohang <[email protected]>
Remove the eight explicit curve overrides so Go 1.27 honors tlsmlkem=0
across Server listeners, node links and outbound transports. Remove the
unused shared curve option and add wire-level regression coverage.

Document CA trust and TLS upgrade behavior, retain the investigation
artifacts, and exclude their synthetic routes from the rebrand guard.
The product compatibility baseline remains unchanged.

Validation: focused race tests, HTTP tests, lint, compatibility guard
positive/negative controls, and a fresh Linux build with three isolated
OIDC integration scenarios all pass.

Adversarial review: Claude Code Fable 5.1, max effort.
Final verdict: APPROVE FOR COMMIT.

Signed-off-by: Feng Ruohang <[email protected]>
@Vonng
Vonng merged commit 8a2fe9b into main Sep 9, 2026
9 checks passed
@Vonng
Vonng deleted the codex/main-consolidation-20260909 branch September 9, 2026 11:50
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