Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Work package 41: catalog key delegation

Status: designed and decided (D-141), to code. Branches: one per repository. Started: 2026-11-29.

Goal

A key stolen from CI can no longer sign the catalog beyond a bounded time, without a release. No trusted key of Bonk is ever online.

Design

  1. Roots: only the keys of trusted-keys.txt, all offline. They sign certificates only; as a last resort, the catalog itself.
  2. Publication key: an Ed25519 pair made by the maintainer, private in the catalog environment, public in a certificate.
  3. Certificate: catalog.cert, canonical JSON with schema_version, key, not_before and not_after, and catalog.cert.sig, signed by a root. Published next to the catalog and versioned in bonk-catalog.
  4. Check in Bonk, one implementation for every interface: catalog.json.sig signed by a root is accepted; otherwise catalog.json.dsig signed by the publication key is accepted when the certificate is signed by a root, valid now, and at most 90 days long. Expiry, sequence and entries are checked as today.
  5. Publishing signs with the publication key, checks the whole chain, and raises an alarm 14 days before the certificate expires.
  6. Renewal: an offline script makes the new key and signs its certificate with a root read from offline media; the maintainer types the passphrase.
  7. Leak of the publication key: new key and certificate at once. The stolen key stays valid until its certificate expires; the lifetime is the exposure window.

Transition

  • Release N: Bonk understands delegation; trusted-keys.txt holds the backup root and a new offline root; the current online key is no longer trusted by Bonk N.
  • For three months, two signatures: the old key for older Bonk, the publication key for Bonk N.
  • Cut date: CI stops signing with the old key. Older Bonk stop reading the catalog at most 14 days later and must be updated; the release notes and the download page say so.

Cost

Chain check in Rust, on the site (JavaScript, same test vectors) and in bonk-catalog; one maintainer action per renewal; one release and a cut for older Bonk.

Done when

The catalog is accepted by Bonk N through the delegated key, refused with an expired or unsigned certificate (tests), and the site checks the same chain.