Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Learn
Start
Guides
Domain packs
Participants
Security and privacy
Pilot kits
Operations
Ecosystem

Key rotation and compromise recovery

Source docs/ops/key-rotation.md

On this page
  1. The keys
  2. Routine rotation of a signing key (OIP-0008)
  3. Rotation of plan keys (OIP-0003)
  4. Compromise

Every key the deployment touches, who should hold it, how it is rotated and what to do when it is exposed. The signature envelope, key records and algorithm register are those of the draft proposal OIP-0008; signed plans and their roles are those of the draft OIP-0003. Both are drafts: the steps below follow them as written today and change with them. Who holds each key is an owner decision (OD-04); nothing here generates a key.

The keys

Key Used for Where it lives Rotation Holder (to decide)
Node signing key OIP-0008 envelopes on observations, key records, receipts the node (file, TPM or HSM per custody) yearly, or on hardware change node operator
Plan root keys sign the OIP-0003 root metadata (threshold of the trusted root and of the new root) offline, split between holders on holder change; never online owner’s key ceremony
Targets, snapshot, timestamp keys sign plans and their metadata (thresholds per role) targets and snapshot offline or in an HSM; timestamp online timestamp often (short expiry is the freeze defence); others yearly plan issuer
Verifier key the gateway’s 0.2 verification reports (--verifier-key) secret store, mounted read-only yearly gateway operator
Runner report key signs conformance reports secret store (runner-key) yearly runner operator
Federation keys the federation bindings and leases of draft OIP-0004 secret store (federation-keys); the reference service takes test keys only (OPS-GAP-04) with the binding each federation party
Release key signs release bundles offline (OD-04; today releases carry SHA-256 sums only) per policy the steward’s secretariat
TLS keys ingress certificates the cluster (issued by ACME or the owner’s PKI) automatic (ACME) or before expiry operator
Backup credentials write and list on the backup bucket secret store (backup-credentials) every 90 days operator

Routine rotation of a signing key (OIP-0008)

  1. The holder generates the new key where it will live (custody), never on an operator workstation.
  2. Publish a new key record: same controller, new keyUni, status: ACTIVE, validFrom now (or slightly ahead to let verifiers fetch it), the objectClasses it may sign.
  3. Switch the signer to the new kid. For a node: the new key file in the node’s configuration, then a restart; the node publishes the key record once, before its next batch.
  4. Re-publish the old key record with status: ROTATED and validUntil set. Objects signed before stay valid: a verifier checks a signature against the key record in force when the object was signed.
  5. Behind a gateway with several replicas, send the new key record to every replica a node may reach (OPS-GAP-01: key records are per replica), or the replica without it refuses the node’s events with OBS-SIG-0003.

Rotation of plan keys (OIP-0003)

  • Role keys (targets, snapshot, timestamp): issue a new root, version = trusted version + 1, listing the new keys and thresholds; it must be signed by the root threshold of the trusted root and of the new root (ORCH-6). Nodes accept it only in that order; a node that missed a version needs each root in between.
  • Root keys: the same, at a ceremony with enough holders of both the old and the new root keys present.
  • Keep the timestamp expiry within the site cells’ offline window (ORCH-5); a node that cannot get fresh timestamp metadata keeps running the plan it applied last.

Compromise

First hour, for any key:

  1. Open an incident (severity 1 for a plan root, targets or snapshot key; severity 2 otherwise) (incident-response.md).
  2. Contain: take the key out of use (remove the secret, stop the signer). For secret-store keys, rotate the secret and restart the workload; the ExternalSecret refreshes within its interval (one hour) or at once on a forced sync.
  3. Revoke: publish the key record with status: REVOKED and revokedAt set to the earliest time the key may have been exposed, not the time of discovery. Verifiers reject envelopes under a revoked key (OBS-SIG-0003).
  4. Record which objects were signed with the key after revokedAt: they are suspect. For observations, issue correction notices for any that were acted on; for conformance reports, re-run and re-sign.

Specific cases:

Exposed Also do
Node key Re-enrol the node (POST /join) with a new manifest and key record; check its outbox for events signed after revokedAt
Timestamp key Issue a new root without it (role rotation above); until then nodes freeze on the last plan when the timestamp expires, which is the intended safe state
Targets or snapshot key As timestamp, and review every plan signed since revokedAt; a forged plan still needs the other roles’ thresholds, so check which were met
Root key below threshold New root signed by the remaining trusted root threshold and the new root’s keys
Root threshold lost or exposed The trust chain cannot be repaired in band: every node needs a new first root from a new bootstrap bundle, delivered out of band. Plan this ceremony before it is needed
Verifier or runner key Revoke; re-issue the reports signed since revokedAt; tell recipients which report digests to distrust
Backup credentials Rotate; list the bucket for objects written or deleted since exposure; compare each backup’s SHA-256 with its manifest and the live store’s prefix
TLS key Revoke the certificate with its issuer; re-issue; the private key never leaves the cluster

The test keys in the repository (for example reference/rust/obsp-node/tests/data/node-key.hex, the federation service’s --seed) are derived from public labels: they are compromised by design and are refused in staging and production by the rendered manifests and the tests.