Add kubernetes auth roles for the puppet compilers
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful

The certmanager and sshsigner approles are bound to the six legacy VM
puppet-master IPs, so the HPA-autoscaled k8s compilers cannot log in and
every catalog compile that issues a cert or signs a host key fails.

- Add k8s auth roles puppet_certmanager and puppet_sshsigner on
  k8s/au/syd1, bound to the default service account in namespace puppet
- Attach the existing pki_int/pki certmanager and sshca signing policies
  to them, matching the approle token TTLs
- Leave the approle roles and their CIDR bindings untouched
This commit is contained in:
2026-09-13 22:48:59 +10:00
parent 9e18627567
commit 8e2595c1a9
6 changed files with 29 additions and 0 deletions
@@ -0,0 +1,11 @@
---
# Kubernetes auth for the puppetserver compilers, which run certmanager
# server-side during catalog compilation. The AppRole equivalent is pinned to
# the legacy VM master IPs and cannot be used from autoscaled compiler pods.
bound_service_account_names:
- default
bound_service_account_namespaces:
- puppet
token_ttl: 30
token_max_ttl: 30
audience: https://kubernetes.default.svc.cluster.local
@@ -0,0 +1,10 @@
---
# Kubernetes auth for the puppetserver compilers, which run sshsignhost
# server-side during catalog compilation.
bound_service_account_names:
- default
bound_service_account_namespaces:
- puppet
token_ttl: 30
token_max_ttl: 30
audience: https://kubernetes.default.svc.cluster.local
+2
View File
@@ -17,3 +17,5 @@ rules:
auth:
approle:
- certmanager
k8s/au/syd1:
- puppet_certmanager
+2
View File
@@ -17,3 +17,5 @@ rules:
auth:
approle:
- certmanager
k8s/au/syd1:
- puppet_certmanager
+2
View File
@@ -9,3 +9,5 @@ rules:
auth:
approle:
- sshsigner
k8s/au/syd1:
- puppet_sshsigner
+2
View File
@@ -9,3 +9,5 @@ rules:
auth:
approle:
- sshsigner
k8s/au/syd1:
- puppet_sshsigner