v0.6.408: state that cannot be read (bounded 5-minute grace), #742 Wave A (#1011), #944/#945 follow-ups #1175

Merged
Cordy merged 68 commits from b8v07 into main 2026-11-13 16:36:30 +00:00
Owner

Batch 8 of v0.7.

  • Bounded grace when state cannot be read (#1011): 16 (14 to 16) state stores track their last good read; within 5 minutes Cairn answers from its last copy, then grants refuse with 503 state-unreadable (Retry-After 30, never 401, no device pause, no session revoke). Legal holds: background deletes (incl. the #1152 Deleted-forever pass) pause at the first failed read, deletes/renames/overwrites of existing files answer 503 holds-unavailable past the bound; a missing or unreadable holds.json at start starts held (cairnd holds-confirm-empty). Break-glass always works; its names are never revealed by status, body or timing; wrong passwords stay throttled. Licence alerts only. Overview card (amber/red), rail dot, bell summary, sign-in page text, metrics, audit group state, GET /api/v1/admin/state-health.
  • #742 Wave A: 10 s re-reads for OCM trust, peering keys and the licence; the last plain record writers and blind update callbacks decide on the record as stored; guard test extended.
  • #944/#945: missing tests and the s3 copy-refusal remake fix (both issues were fixed in v0.6.401).
  • Test hygiene: two date-bomb tests and one flaky ldapauth test fixed.

Process: research (incl. a decision round on fail-closed, NIST SA-8(24)/IA-5(13)/SC-24/SI-17, OWASP ASVS, Kubernetes, OCSP), decisions, approved mockup, W1-W4 with reviews and fix rounds, two final reviews with adversarial probes through the real main(), fix rounds and a focused re-review. Local: build, vet, gofmt, all Go packages, web suite (2820), a11y files touched.

Batch 8 of v0.7. - **Bounded grace when state cannot be read (#1011):** 16 (14 to 16) state stores track their last good read; within 5 minutes Cairn answers from its last copy, then grants refuse with 503 `state-unreadable` (Retry-After 30, never 401, no device pause, no session revoke). Legal holds: background deletes (incl. the #1152 Deleted-forever pass) pause at the first failed read, deletes/renames/overwrites of existing files answer 503 `holds-unavailable` past the bound; a missing or unreadable holds.json at start starts held (`cairnd holds-confirm-empty`). Break-glass always works; its names are never revealed by status, body or timing; wrong passwords stay throttled. Licence alerts only. Overview card (amber/red), rail dot, bell summary, sign-in page text, metrics, audit group `state`, `GET /api/v1/admin/state-health`. - **#742 Wave A:** 10 s re-reads for OCM trust, peering keys and the licence; the last plain record writers and blind update callbacks decide on the record as stored; guard test extended. - **#944/#945:** missing tests and the s3 copy-refusal remake fix (both issues were fixed in v0.6.401). - Test hygiene: two date-bomb tests and one flaky ldapauth test fixed. Process: research (incl. a decision round on fail-closed, NIST SA-8(24)/IA-5(13)/SC-24/SI-17, OWASP ASVS, Kubernetes, OCSP), decisions, approved mockup, W1-W4 with reviews and fix rounds, two final reviews with adversarial probes through the real main(), fix rounds and a focused re-review. Local: build, vet, gofmt, all Go packages, web suite (2820), a11y files touched.
Cordy merged commit f913ca61f4 into main 2026-11-13 16:36:30 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#1175
No description provided.