dns (Add): c1 authoritative DNS (primary, secondaries, zones) #1743

Closed
ginjiruu wants to merge 2 commits from c1-dns-auth into main
Owner

Refs #1673. First c1 DNS PR: authoritative servers and zones. Built from the harness sim results (see #1673 "Sim results").

Merge order:

  1. lab/iac PR #162, the OpenBao write grant.
  2. #1742, the generator. This PR is stacked on it, so its commit shows here until #1742 merges.
  3. This PR.

If this lands without the grant, dns-secrets fails its PushSecret and everything after it waits. Nothing else breaks.

Nothing on the network uses these servers yet. Clients only reach DNS through the recursor (next PR) once lab/iac points DHCP at it.

What it adds (clusters/c1/dns/)

Flux Kustomization Contents Waits on
dns-secrets PowerDNS API key: generated once (base64-password), PushSecret IfNotExists / deletionPolicy: None to infra/apps/c1/generated/dns/pdns-api, read back by an ExternalSecret external-secrets-store
dns-auth Hidden primary: StatefulSet, Auth 5.1.5 LMDB on linstor-csi-2r 2Gi, thinks only, fsGroup 953, operator v0.6.0 in the same pod (Auth as native sidecar, operator health on :8082). Two secondaries: StatefulSet, emptyDir, catalog consumers, spread one per node, Ready only with zones loaded, PDB maxUnavailable: 1 + AlwaysAllow. Operator CRDs and manager ClusterRole vendored from the v0.6.0 bundle (sha256 in the header). dns-secrets, piraeus/linstor, cilium-bgp
dns-zones ClusterZones, all soa_edit_api: EPOCH: internal.catalog.invalid (producer), int, caosh.int, 30.10.in-addr.arpa, 0.a.f.2.f.e.8.c.5.d.d.f.ip6.arpa dns-auth

Addresses

Address
Primary (catalog source, API) ClusterIP 10.30.192.53
Secondaries, in-cluster (what the recursor will query) ClusterIP 10.30.192.54
Secondaries, LAN (ns1.int) pinned LB 10.30.100.11 / fdd5:c8ef:2fa0:100::11
Per-pod NOTIFY targets 10.30.192.55 / .56

All fixed ClusterIPs are in the static band (the first 256 addresses of 10.30.192.0/20), which dynamic allocation avoids.

Security: a NetworkPolicy lets only the secondaries (5300) and external-dns (API 8081) reach the primary. allow-axfr-ips limits transfers to c1's pod ranges. TSIG is deferred (#1673).

Not here (separate PRs): recursor on 10.30.100.53, external-dns with the DNSEndpoint records (ns1 etc.), lab/iac DHCP / egress lock / Cloudflare wildcard.

Checked

  • Server-side dry-run on c1: CRDs and ClusterRole as-is; namespaced objects rewritten into default (the dns namespace doesn't exist yet). Everything validates, including the fixed ClusterIPs and the dual-stack LB Service.
  • task release:check CLUSTER=c1 CONTEXT=c1: 26 Flux Kustomizations, every dependsOn resolves, no FAIL rule, transition render OK.

Differences from the sim

  • LMDB on a PVC with fsGroup 953, where the sim used emptyDir.
  • The primary is a StatefulSet pinned to the thinks.
  • The LB address is real.
  • The NetworkPolicy is new.
  • c1 address ranges.

Not merged: waiting for review.

Refs #1673. First c1 DNS PR: authoritative servers and zones. Built from the harness sim results (see #1673 "Sim results"). **Merge order:** 1. lab/iac PR #162, the OpenBao write grant. 2. #1742, the generator. This PR is stacked on it, so its commit shows here until #1742 merges. 3. This PR. If this lands without the grant, `dns-secrets` fails its PushSecret and everything after it waits. Nothing else breaks. **Nothing on the network uses these servers yet.** Clients only reach DNS through the recursor (next PR) once lab/iac points DHCP at it. ### What it adds (`clusters/c1/dns/`) | Flux Kustomization | Contents | Waits on | |---|---|---| | `dns-secrets` | PowerDNS API key: generated once (`base64-password`), PushSecret `IfNotExists` / `deletionPolicy: None` to `infra/apps/c1/generated/dns/pdns-api`, read back by an ExternalSecret | `external-secrets-store` | | `dns-auth` | Hidden primary: StatefulSet, Auth 5.1.5 LMDB on `linstor-csi-2r` 2Gi, thinks only, `fsGroup` 953, operator v0.6.0 in the same pod (Auth as native sidecar, operator health on :8082). Two secondaries: StatefulSet, emptyDir, catalog consumers, spread one per node, Ready only with zones loaded, PDB `maxUnavailable: 1` + `AlwaysAllow`. Operator CRDs and manager ClusterRole vendored from the v0.6.0 bundle (sha256 in the header). | `dns-secrets`, `piraeus/linstor`, `cilium-bgp` | | `dns-zones` | ClusterZones, all `soa_edit_api: EPOCH`: `internal.catalog.invalid` (producer), `int`, `caosh.int`, `30.10.in-addr.arpa`, `0.a.f.2.f.e.8.c.5.d.d.f.ip6.arpa` | `dns-auth` | **Addresses** | | Address | |---|---| | Primary (catalog source, API) | ClusterIP `10.30.192.53` | | Secondaries, in-cluster (what the recursor will query) | ClusterIP `10.30.192.54` | | Secondaries, LAN (`ns1.int`) | pinned LB `10.30.100.11` / `fdd5:c8ef:2fa0:100::11` | | Per-pod NOTIFY targets | `10.30.192.55` / `.56` | All fixed ClusterIPs are in the static band (the first 256 addresses of `10.30.192.0/20`), which dynamic allocation avoids. **Security:** a NetworkPolicy lets only the secondaries (5300) and external-dns (API 8081) reach the primary. `allow-axfr-ips` limits transfers to c1's pod ranges. TSIG is deferred (#1673). **Not here (separate PRs):** recursor on `10.30.100.53`, external-dns with the `DNSEndpoint` records (`ns1` etc.), lab/iac DHCP / egress lock / Cloudflare wildcard. ### Checked - Server-side dry-run on c1: CRDs and ClusterRole as-is; namespaced objects rewritten into `default` (the `dns` namespace doesn't exist yet). Everything validates, including the fixed ClusterIPs and the dual-stack LB Service. - `task release:check CLUSTER=c1 CONTEXT=c1`: 26 Flux Kustomizations, every dependsOn resolves, no FAIL rule, transition render OK. ### Differences from the sim - LMDB on a PVC with `fsGroup` 953, where the sim used emptyDir. - The primary is a StatefulSet pinned to the thinks. - The LB address is real. - The NetworkPolicy is new. - c1 address ranges. Not merged: waiting for review.
base64-password, same name and spec as mini's, for credentials c1 apps
mint themselves (PowerDNS API key, UniFi passwords). generators.yaml
documents the generate -> PushSecret IfNotExists -> read-back pattern with
OpenBao as source of truth (write grant: lab/iac#161 / PR #162).
PowerDNS Auth 5.1.5 LMDB primary on linstor-csi-2r with the PowerDNS
Operator v0.6.0 in its pod (zones only), two catalog-fed secondaries,
EPOCH-serial zones (int, caosh.int, 10.30 and site-ULA reverse), and the
API key generated once via ESO and kept in OpenBao. Design and every
safeguard come from the harness sim in lab/clusters#1673.
Author
Owner

Superseded by #1744: the generator and the whole DNS stack as one change (Flux orders the rollout).

Superseded by #1744: the generator and the whole DNS stack as one change (Flux orders the rollout).
ginjiruu closed this pull request 2026-11-19 04:30:52 +00:00

Pull request closed

Sign in to join this conversation.
No description provided.