Demo · M5
Assisted
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.
## This vendor has no API to create keys: a person must create one in its console.
$ cat inventory.yaml
tenant: default
credentials:
- id: billing
tier: medium
approval: never
rotator: mockvendor
issuer: { principal: billing }
targets:
- { id: file, system: file, ref: <dir>/billing.key }
- { id: gha, system: github-actions, ref: acme/billing/BILLING_KEY }
$ rotor import inventory.yaml
imported billing (tier medium, managed, mockvendor, 2 target(s))
$ rotor plan billing
plan for billing (tier medium)
mode: scheduled (issuer allows overlapping keys (unlimited))
action: rotate
stages: plan -> escrow-old -> mint -> validate -> propagate -> verify -> drain -> disable-old -> soak -> settle -> revoke-old -> commit -> destroy-escrow
current: <key-id-1>
targets:
- file file <dir>/billing.key
caps: value-readable, concurrency cas, versioned rollback false, reload confirmable
drift detection: fingerprint compare, exact
- gha github-actions acme/billing/BILLING_KEY
caps: metadata-only, concurrency none, versioned rollback false, reload none
drift detection: updated_at compare, best-effort, 1s
rollback: target:file (old value read from value-readable target file)
reversible disable: true
downtime: none expected (keys overlap)
approval: not required (policy: never, tier medium)
assisted: a person performs: mint
blockers: none
$ 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 file (source=target:file)
==> escrow-old
old escrowed: sealed under the rotation data key (envelope=<envelope-1>)
==> mint
assist requested: mint needs a person (step=mint vendor=mockvendor)
waiting for a person: see the assist_requested notification; on the runner host: rotor-runner assist submit <rotation-1>
## notification to the operator: Action needed: create a key for billing
rotation <rotation-1>, vendor mockvendor. Open the mockvendor console, page Keys > Create. Name the key "rotor-billing" for principal "billing". Then run on the runner host: rotor-runner assist submit <rotation-1> Deadline: <time>.
## The person creates the key in the console, then hands it to the runner on the runner host.
$ rotor-runner assist submit <rotation-1>
rotation <rotation-1>, credential billing (mockvendor)
key ID shown in the console: <key-id-2>
secret (input hidden):
key <key-id-2> sealed on this host and handed to rotation <rotation-1>
$ rotor wait <rotation-1>
assist done: a person created the key; the runner sealed it (key=<key-id-2> step=mint)
==> validate
validated: read-only call succeeded with the new key (negative_control=passed ok=true)
==> propagate
write landed [file]: written under lock after fingerprint check (system=file)
write landed [gha]: PUT returned HTTP 204 (system=github-actions)
==> verify
reloaded [file]: reload sighup
confirm live [file]
==> drain
target live [file]: 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-1>)
==> 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-1>)
==> 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)