pki: OpenBao API certs with the ADR-0005 names, stage 1 think-03 (iac#50) #48
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/machine-configs!48
Loading…
Reference in a new issue
No description provided.
Delete branch "openbao-api-name-50"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
LoadCredentialinput, so comin's switch restartsopenbao.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-apiand writes the leaves toflux-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.crtOK<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 c1openbao.intrewrite and the snapshot agent keep verifying.scripts/bao-api-cert-reissue.shis superseded by that flow.Unchanged on purpose:
api_addr,retry_joinand 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 subjectAltNameshowssecrets.infra...;curl --cacert pki/root.crt https://10.30.20.23:8200/v1/sys/healthgives 429 (standby, unsealed).