vault (Add): OpenBao API certs with the ADR-0005 names, signed by tofu (#50) #182
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/iac!182
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?
Closes #50 (part 1 of 3: signing).
What: tofu signs each think's OpenBao API CSR through a scoped
pki-infrarole (openbao-api) and exports the leaves as outputopenbao_api_certs. The CSRs invault/openbao-api/were generated on each think from its existing/var/lib/openbao-tls/api.key. Their public keys match the certs each think serves today, and the private keys never left the hosts.auto_renewre-signs 30 days before expiry.SANs:
<host>,<host>.int,<host>.hosts.caosh.int,openbao.int,secrets.infra.caosh.int.animeteamspeak.moe(machine-configs ADR-0005),localhost, the host IP,127.0.0.1. They're a superset of today's SANs, so swapping the certs breaks no client.Deviation from the #50 plan (on purpose): names come from the c1 PowerDNS through external-dns, as you asked, not from a host-level server. So the bootstrap paths stay on IPs: OpenBao
api_addr/retry_join, the host OpenBao agents, and the IP SANs. A resolver that runs on c1 can't sit in their path, and the node resolvers are public anyway. The name is for clients: tofu runners, ESO, browsers, people.Sequence:
openbao-api-name-50: DNS records, c1 coredns forward forcaosh.int, output published toopenbao-config-outputspki/pki-infra.crtcommitted topki/openbao/, comin rolls the thinksVAULT_ADDR→https://secrets.infra.caosh.int.animeteamspeak.moe:8200; the plan must stay cleantf-controller plan output:
To apply this plan, please merge this pull request.