pki: OpenBao API certs with the ADR-0005 names, stage 1 think-03 (iac#50) #48

Merged
ginjiruu merged 1 commit from openbao-api-name-50 into main 2026-11-21 01:54:07 +00:00
Owner

lab/iac#50 part 3 of 3: the thinks serve OpenBao API certs that carry the ADR-0005 names.

Stage 1 (this PR): think-03 only, a standby (leader is think-01). The cert path is a LoadCredential input, so comin's switch restarts openbao.service. Doing one voter at a time keeps Raft quorum. Stage 2 (second PR) swaps think-01 and think-02 once think-03 is back unsealed and serving the new cert.

Where the certs came from: lab/iac#182. The openbao-config tofu root signs each think's CSR through pki-infra role openbao-api and writes the leaves to flux-system/openbao-config-outputs (openbao_api_certs). The CSRs were generated on the hosts from the existing /var/lib/openbao-tls/api.key; no key moved. Each file here = leaf + pki/pki-infra.crt, the same 2-cert shape as before.

Verified before commit (all three):

  • openssl verify -CAfile pki/root.crt -untrusted pki/pki-infra.crt OK
  • cert public key == CSR public key == the key the host serves today
  • SANs exactly: <host>, <host>.int, <host>.hosts.caosh.int, openbao.int, secrets.infra.caosh.int.animeteamspeak.moe, localhost, host IP, 127.0.0.1. A superset of the old set, so retry_join, mini ESO (by IP), the c1 openbao.int rewrite and the snapshot agent keep verifying.
  • valid until 2027-11-21. tofu re-signs 30 days before expiry, and the new leaf then has to be committed here again: scripts/bao-api-cert-reissue.sh is superseded by that flow.

Unchanged on purpose: api_addr, retry_join and the host OpenBao agents stay on IPs. The name is served by the c1 PowerDNS, and node resolvers are public, so the bootstrap path must not depend on it (the 10.10.1.53 lesson, docs/bringup-2026-11-01.md).

Check after deploy: echo | openssl s_client -connect 10.30.20.23:8200 | openssl x509 -noout -ext subjectAltName shows secrets.infra...; curl --cacert pki/root.crt https://10.30.20.23:8200/v1/sys/health gives 429 (standby, unsealed).

lab/iac#50 part 3 of 3: the thinks serve OpenBao API certs that carry the ADR-0005 names. **Stage 1 (this PR): think-03 only**, a standby (leader is think-01). The cert path is a `LoadCredential` input, so comin's switch restarts `openbao.service`. Doing one voter at a time keeps Raft quorum. **Stage 2** (second PR) swaps think-01 and think-02 once think-03 is back unsealed and serving the new cert. **Where the certs came from:** lab/iac#182. The openbao-config tofu root signs each think's CSR through pki-infra role `openbao-api` and writes the leaves to `flux-system/openbao-config-outputs` (`openbao_api_certs`). The CSRs were generated on the hosts from the existing `/var/lib/openbao-tls/api.key`; no key moved. Each file here = leaf + `pki/pki-infra.crt`, the same 2-cert shape as before. **Verified before commit (all three):** - `openssl verify -CAfile pki/root.crt -untrusted pki/pki-infra.crt` OK - cert public key == CSR public key == the key the host serves today - SANs exactly: `<host>`, `<host>.int`, `<host>.hosts.caosh.int`, `openbao.int`, `secrets.infra.caosh.int.animeteamspeak.moe`, `localhost`, host IP, `127.0.0.1`. A superset of the old set, so retry_join, mini ESO (by IP), the c1 `openbao.int` rewrite and the snapshot agent keep verifying. - valid until 2027-11-21. tofu re-signs 30 days before expiry, and the new leaf then has to be committed here again: `scripts/bao-api-cert-reissue.sh` is superseded by that flow. **Unchanged on purpose:** `api_addr`, `retry_join` and the host OpenBao agents stay on IPs. The name is served by the c1 PowerDNS, and node resolvers are public, so the bootstrap path must not depend on it (the 10.10.1.53 lesson, docs/bringup-2026-11-01.md). **Check after deploy:** `echo | openssl s_client -connect 10.30.20.23:8200 | openssl x509 -noout -ext subjectAltName` shows `secrets.infra...`; `curl --cacert pki/root.crt https://10.30.20.23:8200/v1/sys/health` gives 429 (standby, unsealed).
Sign in to join this conversation.
No reviewers
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!48
No description provided.