Reload current rehearsal attestation key at approval checks
ABSDEV Framework CI / framework-ci (push) Successful in 20s

This commit is contained in:
Mark Gregory
2026-11-30 11:57:09 +00:00
parent 2a001b1269
commit 054c546c8f
4 changed files with 70 additions and 28 deletions
+9 -1
View File
@@ -1,6 +1,6 @@
# Trusted rehearsal evidence
Configure `TrustedRehearsal(runner_id, runner, key=..., clock=...)` in trusted
Configure `TrustedRehearsal(runner_id, runner, key_loader=..., clock=...)` in trusted
runtime code and supply it to `SiteOperations(trusted_rehearsal=...)`.
Use a separately managed random key of at least 32 bytes and a stable runner
identifier. Only trusted runtime processes may have access to this key.
@@ -23,3 +23,11 @@ authorise a migration.
The configured runner and protected key provisioning are deployment inputs.
Production execution remains disabled.
The loader must re-read the current key on each call. Use
`FileRehearsalKey(path, group=...)` for a root-owned binary key file (0440)
in a root-owned directory (0750) with the configured reader group. Keep the
ancestors under trusted administrative control. Replace the file atomically.
The runtime rejects missing, unreadable, or unsafe key snapshots and newly
checks the key at both approval issuance and consumption. A rotation
invalidates outstanding attestations under the retired key at the next check.