vault+routeros: internal-app PKI (pki-apps-caosh) and internal gateway access #167
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!167
Loading…
Reference in a new issue
No description provided.
Delete branch "internal-apps-pki"
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?
OpenBao and router groundwork for internal app names (
<app>.apps.caosh.int.animeteamspeak.moe, machine-configs ADR-0005 amendment). No user-visible change; it pairs with the clusters PR that adds mini's internal Gateway, issuer and internal external-dns.OpenBao (
vault/)modules/openbao-platform: a new optionalpki_appsinput. It creates the mountpki-apps-<site>, signed online bypki-issuewith pathlen 0 and a DNS constraint onapps.<site>.int..., the same shape aspki-net. It adds rolecert-manager(server certs for subdomains of that zone, 90 d) and policypki-apps-<site>-cert-manager(sign/cert-manageronly). Unset means no change, sovault/simand other callers are unaffected unless they set it.platform.tf:pki_appsfor caosh,apps.caosh.int.animeteamspeak.moe.cert-manager-mini.tf: JWT rolecert-manageronauth/kubernetes-miniforsystem:serviceaccount:cert-manager:openbao-apps-issuer, audience = mini's ServiceAccount issuer (cert-manager adds it viaserviceAccountRef.audiences).eso-mini.tf: mini's ESO may readinfra/.../apps/c1/generated/dns/pdns-api. mini's internal external-dns uses c1's PowerDNS API key.Routers (
routeros/)modules/siteinternal_gateways = ["10.10.6.40"]: mini's internal Gateway, never port-forwarded.modules/routerfirewall.tf: the servers zone (c1) may reach it on tcp 80/443, placed with the recursor allows. c1 nodes pull from harbor, which moves to the internal Gateway. Trusted clients already reach everything; mgmt, iot and guest do not.Sim (harness OpenBao, this branch via
IAC_REF)vault/simapplied withpki_apps. The mount and role exist, and the policy is exactlysign/cert-managerupdate.grafana.apps.caosh.int.animeteamspeak.moe: the leaf verifies against the lab root through the 3-cert chain. The CA carriesName Constraints: critical, Permitted: DNS:apps.caosh.int.animeteamspeak.moe.vault.animeteamspeak.moe: refused (400).task routeros:validate(3 roots),routeros:guard, andtofu validateforvaultandvault/simpass. The firewall rule is not simmed on the CHR pair; it is one accept of the existing rule shape.Order
Merge before the clusters PR's internal issuer goes live, otherwise the ClusterIssuer stays not-Ready until it can log in. The router change re-arms all three roots; the arm lock serializes them.
tf-controller plan output:
To apply this plan, please merge this pull request.