OpenBao: host-level DNS for infra.int (secrets.infra.int.animeteamspeak.moe) #50
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/iac#50
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Part of lab/machine-configs#7. Deferred from lab/iac#47, which points tofu at
https://10.10.1.21:8200for now.Problem
OpenBao needs a stable name that resolves before any cluster exists. The routers are out (edge-01 retiring, RB5009s taking over, and they will not serve DNS). The recursor that delegates
think.int/mini.int(lab/clusters#1673) depends on a cluster, so it cannot also serve the names the cluster bootstraps from.Plan
infra.int.animeteamspeak.moe, served below the cluster layer (NixOS service). Where it runs and how it is made redundant is the open question.secrets.infra.int.animeteamspeak.moewith A records for 10.10.1.21-23, andthink-0N.infra.int.animeteamspeak.moeper node.infra.intto it and keep owning<cluster>.int.pki-infrawith the new SANs. Keep the IP SANs as the break-glass path. The Nano is not needed becausepathlen: 0still signs leaves.api_addr/retry_joinand theopenbao-configVAULT_ADDRto the names.docs/pki.md. They currently put bootstrap names directly underint(openbao.int..., already on the 11-07 certs).Done when
secrets.infra.int.animeteamspeak.moeresolves from hosts and from pods on every cluster, with no cluster in the resolution pathpki-infra, and keep their IP SANsopenbao-configuses the name and its plan stays cleandocs/pki.mdnaming matchesNames changed by lab/machine-configs ADR-0005 (2026-11-11): OpenBao is secrets.infra.caosh.int.animeteamspeak.moe (all current machines sit at site caosh, UN/LOCODE Oshawa), per-node think-0N.hosts.caosh.int.animeteamspeak.moe. Scope of the host-level DNS here = infra. and hosts. zones for every site; cluster recursors (lab/clusters#1673) forward them here and stay authoritative only for .. Cert reissue SANs: secrets.infra.caosh..., think-0N.hosts.caosh..., keep IP SANs.
Done 2026-11-21, with one deliberate change of plan: names come from the c1 PowerDNS through external-dns (owner decision), not a host-level server, and the name follows ADR-0005 (
secrets.infra.caosh.int.animeteamspeak.moe, with the site code).secrets.infra.caosh.intA 10.30.20.21-23 (the listener is IPv4-only),think-0N.hosts.caosh.intA/AAAA/PTR. c1 pods resolvecaosh.intthrough a coredns server block to the in-cluster authoritatives. mini already forwards it (#1767)./var/lib/openbao-tls/api.key) through pki-infra roleopenbao-api,auto_renew30 days before expiry. The leaves land influx-system/openbao-config-outputs. SANs: old set +secrets.infra.caosh.int+<host>.hosts.caosh.int. Rolled one node at a time withsystemctl restart openbao(the unit isX-RestartIfChanged=false, so comin never restarts it): think-03, think-02, then think-01 (leader). Quorum held, and each node was unsealed within ~5 s.VAULT_ADDR=https://secrets.infra.caosh.int.animeteamspeak.moe:8200, plan no changes.Kept on IPs on purpose:
api_addr,retry_joinand the host OpenBao agents. The name lives on c1 and node resolvers are public, so the bootstrap path must not need it.Next renewal (2027-10): tofu re-signs, then commit the new leaf +
pki/pki-infra.crtto machine-configspki/openbao/and restart each think in turn.scripts/bao-api-cert-reissue.shis superseded.Incident found on the way: recursor pod
pdns-recursor-...-6482l(think-01) SERVFAILed everycaosh.intname, including*.apps.caosh.int, with outgoing timeouts to its forwarder. A pod restart fixed it. The recursor needs a probe that resolves an internal name.