feat: major restructuring in migration to terragrunt

- migrate from individual terraform files to config-driven terragrunt module structure
- add vault_cluster module with config discovery system
- replace individual .tf files with centralized config.hcl
- restructure auth and secret backends as configurable modules
- move auth roles and secret backends to yaml-based configuration
- convert policies from .hcl to .yaml format, add rules/auth definition
- add pre-commit hooks for yaml formatting and file cleanup
- add terragrunt cache to gitignore
- update makefile with terragrunt commands and format target
This commit is contained in:
2026-01-04 23:31:42 +11:00
parent bd112181f5
commit 8070b6f66b
245 changed files with 3943 additions and 985 deletions
+19
View File
@@ -0,0 +1,19 @@
# Allow cert-manager to issue and manage certificates
# used by the puppet autossl role
---
rules:
- path: "pki/au/syd1/issue/*"
capabilities:
- create
- update
- read
- path: "pki/au/syd1/renew/*"
capabilities:
- update
- path: "pki/au/syd1/cert/*"
capabilities:
- read
auth:
approle:
- certmanager
@@ -0,0 +1,11 @@
# Allow issuing server certificates from servers_default role
---
rules:
- path: "pki/au/syd1/issue/servers_default"
capabilities:
- update
auth:
k8s/au/syd1:
- huntarr-default
- cert_manager_issuer
+14
View File
@@ -0,0 +1,14 @@
# Allow administration of PKI roles
---
rules:
- path: "pki/au/syd1/roles/*"
capabilities:
- create
- update
- read
- delete
- list
auth:
approle:
- tf_vault
@@ -0,0 +1,11 @@
# Allow signing server certificates with servers_default role
---
rules:
- path: "pki/au/syd1/sign/servers_default"
capabilities:
- update
auth:
k8s/au/syd1:
- huntarr-default
- cert_manager_issuer