You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0beb6d4
Browse filesBrowse the repository at this point in the historyBrowse files
feat(auth): auth verifies the audit chain on its own once no one has for six hours (#415)
The audit chain was only verified when someone asked, so a break went
unnoticed until an operator checked. Now auth verifies it on its own.
A new background job runs on one replica at a time. Every ten minutes it
reads the newest recorded verification. Once that is six hours old,
whoever made it, the job verifies the whole chain with the dashboard's
keys and records the result as the `audit_verification` job. The
dashboard's Audit tab then always shows a recent verification, and
**Verify now** or `audit verify` push the next one back.
- It has its own lock, not the sealer's, and its read-only snapshot
holds no transaction ID, so it never holds sealing back.
- The dashboard, the CLI and the job share how a verification is made
and recorded.
Stacked on #411, which makes `audit_verification` readable first: a
release fails to decode a job name it doesn't know.
Left for later: when verification itself errors rather than finding a
break (say, an event that doesn't canonicalize), the job only logs it
and tries again ten minutes later. The alert PRs further up this stack
bring the signal admins actually see.
**Proof:**
- A focused test: the job verifies when nothing was recorded lately,
records as itself, and skips the next pass.
- The audit and dashboard audit tests pass (12/12). clippy, fmt and
rustdoc are clean.
- On a preview, the job verified the chain on its own at startup: `audit
list --kind audit_chain_verified` shows one event by `job
AuditVerification`, with the server's own (uncommitted) keys.
Reviewed with review-loop: 1 round with 2× GPT-6.1 Sol and Claude Opus
5.5. Verdict: approved
> [!NOTE]
> Written by Claude Opus 5.5 in Claude Code and reviewed by GPT-6.1 Sol
and Claude Opus 5.5 (via T3 Code)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
0 commit comments