Add terraform-enc Vault/Consul plumbing + encapi token grant #98
Reference in New Issue
Block a user
Delete Branch "benvin/terragrunt-enc-vault"
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?
The new terragrunt-enc repo manages all encapi ENC data (statuses, roles, node classifications) via Terraform/Terragrunt and needs its own Vault/Consul plumbing, mirroring terraform-git and terraform-incus. This supersedes the dual-write approach in terraform-incus PR #39; the equivalent terraform-incus grant (PR #97) is being closed, so the encapi-token grant is created fresh here for the new approle.
Changes:
terraform_encand k8s auth rolewoodpecker_terraform_enc(bound to theterraform-encServiceAccount in thewoodpeckernamespace) for CI auth.terraform-encplus its ACL rules grantingwriteoninfra/terraform/enc/(its terragrunt state prefix), and a policy letting both auth roles readconsul_root/au/syd1/creds/terraform-enc.kv/data/kubernetes/namespace/encapi/default/environment(the ENCAPI_WRITE_TOKEN) somake applycan write to encapi via the encapi provider.