Epic: Security module — OpenBao, internal PKI, node bootstrap identity, sops removal #7

Open
opened 2026-11-05 16:59:31 +00:00 by ginjiruu · 0 comments
Owner

Security module. Decided in the 2026-11-05 design session.

Decisions

  • OpenBao replaces the mini single-node Vault. It runs as a NixOS host service on think-01..03 (3-node Raft on tank), outside Kubernetes, so secrets exist before k3s does.
  • Auto-unseal via PKCS#11 with a YubiKey 5 per think (prove with SoftHSM2, then the existing 5C Nano).
  • Offline root CA on hardware; OpenBao intermediates per purpose and per cluster: pki-infra, pki-k3s-<cluster>, pki-services (name-constrained to int.animeteamspeak.moe).
  • Node identity: AppRole per host, response-wrapped SecretID minted at image build (~24h, single-use images); thinks later move to YubiKey PIV cert auth.
  • OpenBao Agent on every host renders the same /run/secrets paths; sops is removed from every repo.
  • k3s clusters start on OpenBao-issued custom CAs with a pre-generated join token.
  • Fleet bring-up from zero is a scripted day-0 ceremony; the harness gets a throwaway OpenBao.
  • Every host in scope.
  • The think k3s cluster is rebuilt once OpenBao is up (CAs, dual-stack, cluster identity, cluster domain).

Children

lab/clusters#1532 (hub plan), lab/iac#29 (Vault Kubernetes auth), lab/clusters#1524 (VSO), Vault IaC milestone in lab/clusters, lab/machine-configs#6.

Blocks: lab/clusters#1668.

Security module. Decided in the 2026-11-05 design session. ## Decisions - OpenBao replaces the mini single-node Vault. It runs as a **NixOS host service** on think-01..03 (3-node Raft on `tank`), outside Kubernetes, so secrets exist before k3s does. - Auto-unseal via **PKCS#11 with a YubiKey 5 per think** (prove with SoftHSM2, then the existing 5C Nano). - **Offline root CA on hardware**; OpenBao intermediates per purpose and per cluster: `pki-infra`, `pki-k3s-<cluster>`, `pki-services` (name-constrained to `int.animeteamspeak.moe`). - **Node identity**: AppRole per host, response-wrapped SecretID minted at image build (~24h, single-use images); thinks later move to YubiKey PIV cert auth. - **OpenBao Agent** on every host renders the same `/run/secrets` paths; **sops is removed from every repo**. - k3s clusters start on **OpenBao-issued custom CAs** with a pre-generated join token. - Fleet bring-up from zero is a **scripted day-0 ceremony**; the harness gets a throwaway OpenBao. - **Every host** in scope. - The think k3s cluster is **rebuilt** once OpenBao is up (CAs, dual-stack, cluster identity, cluster domain). ## Children - [ ] lab/machine-configs#3 — Node bootstrap identity: AppRole + response-wrapped SecretID minted at image build - [x] lab/machine-configs#8 — OpenBao as a NixOS host service on the thinks (3-node Raft, PKCS#11 auto-unseal) - [ ] lab/machine-configs#9 — Internal PKI: offline root on hardware + per-purpose / per-cluster intermediates - [ ] lab/machine-configs#10 — OpenBao Agent on every host; remove sops-nix from machine-configs - [ ] lab/machine-configs#11 — k3s custom CAs from OpenBao + pre-generated join token - [ ] lab/machine-configs#12 — Day-0 ceremony runbook: bring the fleet up from zero - [ ] lab/machine-configs#13 — vm:e2e harness: throwaway OpenBao (SoftHSM) for test-01 - [ ] lab/machine-configs#14 — Planned think cluster rebuild: OpenBao-issued CAs, dual-stack, unique cluster identity, cluster domain - [ ] lab/machine-configs#15 — Later: move think node identity from AppRole SecretID to YubiKey PIV certificate auth - [ ] lab/clusters#1669 — Retire mini single-node Vault; External Secrets on both clusters -> OpenBao with Kubernetes auth - [ ] lab/clusters#1670 — Remove SOPS from the clusters repo (Flux SOPS secrets -> ExternalSecrets) ## Related lab/clusters#1532 (hub plan), lab/iac#29 (Vault Kubernetes auth), lab/clusters#1524 (VSO), Vault IaC milestone in lab/clusters, lab/machine-configs#6. Blocks: lab/clusters#1668.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/machine-configs#7
No description provided.