Mission 06 Signing & security Advanced
Guard the keys
Your keys are your money. Protect them like a fund does.
Build a secrets manager from first principles, issue short-lived certificates, put a policy in front of every signature, threat-model a signing path, and know the order of moves when a key leaks.
Start lesson 1 8 lessons 45 drills About 24 min of reading
- A secrets manager from first principles: key hierarchy, secret zero, access, delivery Four hard problems: the key hierarchy, how a machine first proves who it is, access and audit, and delivery that survives an outage. I'd run an existing one before building one, and build the last mile: a client library with the right defaults. 6 drills · 3 min read
- PKI and workload identity: mTLS, short-lived certificates and rotation without heroics An offline root, an online intermediate, short-lived leaves that renew by themselves. Short lifetimes replace revocation, and overlap plus reload makes rotation routine. mTLS only means something if identity names the workload. 5 drills · 3 min read
- Production access: RBAC, short-lived credentials, four eyes and break-glass Keep the speed of direct access and add the record: short-lived credentials tied to a person, least privilege by role, two people for anything touching keys, and a break-glass that's logged and rehearsed. 5 drills · 3 min read
- When a key leaks: the order of moves, the evidence, and what past incidents teach Contain, move value, rotate, notify, investigate, in that order, because you may be racing someone on-chain. Decide who has authority before it happens, and learn from the public incidents: logs leak keys, packages steal them, and signed intent can sit in reserve. 5 drills · 3 min read
- Rust for platform libraries: crate APIs people adopt, secrets in types, hot-path overhead A platform crate succeeds on defaults, a one-line common case and cheap migration. Rust's types can make misuse a compile error. On a hot path nothing allocates, locks or formats on the critical thread. 6 drills · 3 min read
- The signing policy proxy: decide, sign, record, and fail safely on a latency budget Parse the exact bytes, deny by default per key, write the record before the signature leaves, and decide in advance how each key fails. Keep it cheap by doing no network, no locks and no allocation on the path. 7 drills · 3 min read
- Threat-modelling a signing path: assets, actors, boundaries and what's left over Start from what you're protecting and who's coming for it, say what each control stops and what it doesn't, and end with what's left over. On a signing path, the attacker usually wants to use the key, not steal it. 6 drills · 3 min read
- Trust on bare metal: first credentials, measured boot, BMCs and the provider On rented bare metal you start with less than you think: no metadata service, a BMC you don't fully control, a provider with physical access. Attest what you can, isolate what you can't, encrypt with keys they don't hold, and keep the most valuable keys elsewhere. 5 drills · 3 min read