Skip to content

safekeys/token-revocation [built] ​

Revocation invalidates a capability token immediately, without waiting for its TTL to expire. A jti denylist checked on every resolve provides the kill switch; short TTL bounds the residual window for anything already in flight. Later phases add device binding, so a lost hardware token is revoked by serial.

Status: built

Why this exists ​

Short TTLs alone leave an unacceptable window when a token is known to be leaked — minutes to hours of live authority. A denylist gives an operator the immediate kill switch that incident response requires, and the two mechanisms together cover both the slow case (expiry) and the urgent one (revocation).

Design decisions ​

denylist-plus-ttl [accepted] ​

Decision: Use a jti denylist alongside short TTLs rather than one or the other.

Rationale: TTL handles the unattended case cheaply and bounds worst-case exposure; the denylist handles the attended, urgent case. Neither alone is sufficient — long TTLs make leaks linger, and denylists alone still require knowing about the leak.

authoritative-check-at-resolve [accepted] ​

Decision: Check revocation at resolve time in the sidecar rather than trusting token validity alone.

Rationale: The sidecar is the enforcement point; if revocation is not checked there, a revoked token still works wherever it is presented.

How it works ​

Revoke a capability token (revoke-token) ​

An operator invalidates a specific token by its unique id.

  1. Receive — Operator issues a revoke request for a jti or object id.
  2. Validate — Control plane checks the operator's authority to revoke that object or token.
  3. Record — The jti is added to the denylist and the revoke is recorded in the audit log.
  4. Observe — Every subsequent resolve attempt with that jti is denied.

Revoke a device-bound token (later phase) (revoke-device) ​

A lost hardware token is revoked by serial.

  1. Receive — Operator revokes a device serial or its associated binding.
  2. Record — The device binding is invalidated at the authority.
  3. Observe — Attestation fails for that device on the next unwrap attempt.