OpenBao: host-level DNS for infra.int (secrets.infra.int.animeteamspeak.moe) #50

Closed
opened 2026-11-11 16:39:13 +00:00 by ginjiruu · 2 comments
Owner

Part of lab/machine-configs#7. Deferred from lab/iac#47, which points tofu at https://10.10.1.21:8200 for 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

  • Host-level DNS for infra.int.animeteamspeak.moe, served below the cluster layer (NixOS service). Where it runs and how it is made redundant is the open question.
  • Names: secrets.infra.int.animeteamspeak.moe with A records for 10.10.1.21-23, and think-0N.infra.int.animeteamspeak.moe per node.
  • Cluster recursors forward infra.int to it and keep owning <cluster>.int.
  • Reissue the think API certs from pki-infra with the new SANs. Keep the IP SANs as the break-glass path. The Nano is not needed because pathlen: 0 still signs leaves.
  • Switch api_addr / retry_join and the openbao-config VAULT_ADDR to the names.
  • Align lab/machine-configs#9 and docs/pki.md. They currently put bootstrap names directly under int (openbao.int..., already on the 11-07 certs).

Done when

  • secrets.infra.int.animeteamspeak.moe resolves from hosts and from pods on every cluster, with no cluster in the resolution path
  • Think API certs carry the new SANs, chain to pki-infra, and keep their IP SANs
  • openbao-config uses the name and its plan stays clean
  • #9 / docs/pki.md naming matches
Part of lab/machine-configs#7. Deferred from lab/iac#47, which points tofu at `https://10.10.1.21:8200` for 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 - Host-level DNS for `infra.int.animeteamspeak.moe`, served below the cluster layer (NixOS service). Where it runs and how it is made redundant is the open question. - Names: `secrets.infra.int.animeteamspeak.moe` with A records for 10.10.1.21-23, and `think-0N.infra.int.animeteamspeak.moe` per node. - Cluster recursors forward `infra.int` to it and keep owning `<cluster>.int`. - Reissue the think API certs from `pki-infra` with the new SANs. Keep the IP SANs as the break-glass path. The Nano is not needed because `pathlen: 0` still signs leaves. - Switch `api_addr` / `retry_join` and the `openbao-config` `VAULT_ADDR` to the names. - Align lab/machine-configs#9 and `docs/pki.md`. They currently put bootstrap names directly under `int` (`openbao.int...`, already on the 11-07 certs). ## Done when - [ ] `secrets.infra.int.animeteamspeak.moe` resolves from hosts and from pods on every cluster, with no cluster in the resolution path - [ ] Think API certs carry the new SANs, chain to `pki-infra`, and keep their IP SANs - [ ] `openbao-config` uses the name and its plan stays clean - [ ] #9 / `docs/pki.md` naming matches
Author
Owner

Names 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.

Names 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.<site> and hosts.<site> zones for every site; cluster recursors (lab/clusters#1673) forward them here and stay authoritative only for <cluster>.<site>. Cert reissue SANs: secrets.infra.caosh..., think-0N.hosts.caosh..., keep IP SANs.
Author
Owner

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).

  • DNS (lab/clusters#1773): secrets.infra.caosh.int A 10.30.20.21-23 (the listener is IPv4-only), think-0N.hosts.caosh.int A/AAAA/PTR. c1 pods resolve caosh.int through a coredns server block to the in-cluster authoritatives. mini already forwards it (#1767).
  • Certs (#182 + machine-configs #48/#49): tofu signs each think's CSR (made on the host from /var/lib/openbao-tls/api.key) through pki-infra role openbao-api, auto_renew 30 days before expiry. The leaves land in flux-system/openbao-config-outputs. SANs: old set + secrets.infra.caosh.int + <host>.hosts.caosh.int. Rolled one node at a time with systemctl restart openbao (the unit is X-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.
  • openbao-config (lab/clusters#1775): VAULT_ADDR=https://secrets.infra.caosh.int.animeteamspeak.moe:8200, plan no changes.

Kept on IPs on purpose: api_addr, retry_join and 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.crt to machine-configs pki/openbao/ and restart each think in turn. scripts/bao-api-cert-reissue.sh is superseded.

Incident found on the way: recursor pod pdns-recursor-...-6482l (think-01) SERVFAILed every caosh.int name, 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.

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). - **DNS** (lab/clusters#1773): `secrets.infra.caosh.int` A 10.30.20.21-23 (the listener is IPv4-only), `think-0N.hosts.caosh.int` A/AAAA/PTR. c1 pods resolve `caosh.int` through a coredns server block to the in-cluster authoritatives. mini already forwards it (#1767). - **Certs** (#182 + machine-configs #48/#49): tofu signs each think's CSR (made on the host from `/var/lib/openbao-tls/api.key`) through pki-infra role `openbao-api`, `auto_renew` 30 days before expiry. The leaves land in `flux-system/openbao-config-outputs`. SANs: old set + `secrets.infra.caosh.int` + `<host>.hosts.caosh.int`. Rolled one node at a time with `systemctl restart openbao` (the unit is `X-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. - **openbao-config** (lab/clusters#1775): `VAULT_ADDR=https://secrets.infra.caosh.int.animeteamspeak.moe:8200`, plan no changes. **Kept on IPs on purpose:** `api_addr`, `retry_join` and 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.crt` to machine-configs `pki/openbao/` and restart each think in turn. `scripts/bao-api-cert-reissue.sh` is superseded. Incident found on the way: recursor pod `pdns-recursor-...-6482l` (think-01) SERVFAILed every `caosh.int` name, 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.
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/iac#50
No description provided.