kleides

Demo · M4

Custody

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 routine rotation. Afterwards, look for the key material everywhere the control plane can see.
$ 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
    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)
==> 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-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)
$ custody-scan <rotation-1>
searched for 2 key value(s) issued during this demo in:
  Temporal history (decoded with the codec key), worker log, CLI output,
  consumer logs, audit file, notifications, OTLP spans, control-plane store
secret values found: 0
envelopes in Temporal history: 7 (old and new)
envelopes that open with the runner's state: 0 (data key destroyed)

Back to the roadmap