Files
DanSandClaude Opus 5.5 79aed5462d feat(security): pin two bootstrap signing keys (automated signer + offline backup) (F5)
The single pinned key CbyBk7... has no secret half on record, so it could never
sign anything. Bootstraps are now built, verified and signed weekly by a
dedicated signer box, and an offline backup key covers loss or revocation of
that key. A signature is accepted if it verifies against either pinned key.

- bootstrap.h: kBootstrapSignaturePublicKeysBase64[] = { hot GHgDNfZV..., cold MZi/rTuQ... }
- bootstrap.cpp: Bootstrap::signatureMatchesPinnedKey() checks every pinned key
  (no network, unit-testable); a present signature matching none stays fatal.
- tests: the known answer is now a real signer-box signature over a real weekly
  checksum (height 3449343); covers tamper, garbage, empty and wrong-key cases,
  the two keys being distinct and valid, and CbyBk7 no longer being pinned.
- sign-bootstrap-release.sh: the key check accepts any pinned key.

kBootstrapRequireSignature stays false until every served bootstrap carries a
signature.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 17:26:52 -06:00
..