On this page

0243. Staged signing off the critical path

Context

ADR-0200 proposed from-scratch RFC 8032 Ed25519 and SHA-512, direct OS entropy, an offline root with delegated keys, and publisher plus human reviewer signatures on every release, with the maintainer's crypto review blocking publishing. In the v1 plan that work (R3a, size L, plus R3b) sat before the resolver and fetch. Hash pinning already protects locked graphs: Zig, go.sum and Nix rely on it. TUF adds expiry against freeze attacks; Go's sumdb closes trust-on-first-use; Hex signs a static registry with a key pinned by clients.

Decision

Security ships in stages, none of which blocks installing:

Signing and verification use openssl pkeyutl (OpenSSL 3) or an audited library chosen in Phase 3 with a one-line crate justification. No from-scratch Ed25519 or SHA-512 on any path. Keys come from config, never from a registry or release. Provenance fields (agent, model, reviewer) are unsigned claims until v3.

Alternatives considered

Consequences

Phases 0–2 need no crypto review. First fetch without a pinned key trusts HTTPS and the index. Registries that pin a key need OpenSSL 3 (or the chosen library) on clients. Hosting's need for OS entropy (v1 plan H3 depended on R3b) moves to the hosting track. If accepted, 0200 is superseded for the default path; its envelope design can inform v3.