Demo · M2
Gate
verified in CI · 2026-11-20 · c06551c
The transcript below is recorded by a test that runs the real command-line tool against a local test setup. Identifiers, times and ports are replaced with numbered placeholders so the transcript is stable from run to run.
## A critical credential: every rotation needs an approval, and the GitHub target is CI-gated.
$ cat inventory.yaml
tenant: default
credentials:
- id: billing
tier: critical
approval: always
rotator: mockvendor
issuer: { principal: billing }
targets:
- { id: app, system: file, ref: <dir>/billing.key }
- { id: gha, system: github-actions, ref: acme/billing/BILLING_KEY, gate_ci: true }
$ rotor import inventory.yaml
imported billing (tier critical, managed, mockvendor, 2 target(s))
## A deploy workflow run is already in progress in acme/billing.
$ rotor rotate billing
rotation <rotation-1> started for billing
==> plan
mode chosen: issuer allows overlapping keys (unlimited) (mode=scheduled)
rollback source: old value read from value-readable target app (source=target:app)
==> approve
approval requested: policy: always
waiting for approval: rotor approve <rotation-1> | rotor deny <rotation-1>
$ rotor approve <rotation-1>
approved <rotation-1>
$ rotor wait <rotation-1>
approved: approved by operator
==> escrow-old
old escrowed: sealed under the rotation data key (envelope=<envelope-1>)
==> mint
minted: key ID journaled before sealing (key=<key-id-1>)
==> validate
validated: read-only call succeeded with the new key (negative_control=passed ok=true)
==> ci-gate
ci gate wait [gha]: run <run-1> (deploy) was in_progress before the write; waiting so it sees one value
ci gate clear: no runs queued or in progress from before the write
==> propagate
write landed [app]: written under lock after fingerprint check (system=file)
write landed [gha]: PUT returned HTTP 204 (system=github-actions)
==> verify
reloaded [app]: reload sighup
confirm live [app]
==> drain
target live [app]: consumer confirmed the new value
drained: all confirmable targets live; max lag 1s passed; no use of the old key in the trailing 3s
==> disable-old
old disabled: reversible disable before revoke (key=<key-id-2>)
==> soak
soak clean: no rejected requests on the disabled old key
==> settle
settled [gha]: updated_at still matches our write (best-effort, 1s)
==> revoke-old
old revoked: point of no return passed (key=<key-id-2>)
==> commit
cleanup: sessions derived from the old key outlive its revocation until they expire
==> destroy-escrow
escrow destroyed: data key deleted in the runner; envelopes unreadable everywhere
result: Done (rotated)