1.4 KiB
Trusted rehearsal evidence
Configure TrustedRehearsal(runner_id, runner, key=..., 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.
This is a symmetric attestation shared by the runner and approval runtime.
Keep it separate from the operator approval sealing key.
The configured runner receives a copy of the exact rehearsal context. It must verify the candidate inventory, restore the verified backup into an isolated database, run the approved migrations, observe migration history and application checks, and clean up before returning execution evidence. The runner and clock come from trusted composition, and callers cannot supply either per rehearsal.
Call run(context) to obtain evidence, then derive the approval context with
approval_context(evidence, context, now=...) and pass the same evidence as
rehearsal when saving the approval and attempting execution. The approval
store and migration coordinator independently verify the attestation. The
underlying structural rehearsal format remains readable for audit. Unsigned
historical evidence must be rerun under the trusted adapter before it can
authorise a migration.
The configured runner and protected key provisioning are deployment inputs. Production execution remains disabled.