Build me a secrets manager, Infisical or Vault, from first principles. What are the hard problems, and how do you solve them for a multi-region bare-metal fleet?
- Bare metal: no cloud metadata service
- Services on a microsecond hot path also need secrets
- A small team runs it
Keep the root key out of the database, prove machines by attestation or one-time enrolment, log every read, and deliver through an agent so the hot path never calls the network.
- Says build or buy, and what they'd build
- A key hierarchy with the root outside the database
- Secret zero on bare metal: attestation or one-time enrolment
- Short-lived credentials rather than long-lived keys
- Delivery through an agent, with the hot path never calling the network
- Behaviour during a control-plane outage, with a chosen number
- Audit of every read, off the box
- Finds the hard problems: Hierarchy, secret zero, access and audit, delivery and outages, each with a decision.
- Fits this environment: TPM or one-time enrolment, agent delivery, and the hot path never touches the network.
- Judgement: Says what they'd run, what they'd build and why, and states the trade-off on outage survival.
- communication: Names the four problems first, then walks them.
Encryption is the easy part, and candidates who spend ten minutes on AES have missed it. The signal is going to secret zero and outage behaviour without being led there, and being honest that you'd run an existing system.
Spending the whole answer on encryption, or designing a service every process calls at runtime.