Grant terraform-incus approle read on encapi environment secret #97
Reference in New Issue
Block a user
Delete Branch "benvin/terraform-incus-encapi-token"
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?
Why
terraform-incus dual-writes ENC (external node classifier) data to encapi via the new encapi Terraform provider. At
make applytime the CI runner needs the encapi write token (ENCAPI_WRITE_TOKEN), which lives in Vault atkv/kubernetes/namespace/encapi/default/environment(the same secret the encapi deployment reads via its VaultStaticSecret). The terraform-incus approle currently has no grant for it.This is a prerequisite for terraform-incus PR #39 (unkin/terraform-incus#39).
Changes
policies/kv/service/terraform/incus-encapi-environment.yamlgranting theterraform_incusapprolereadonkv/data/kubernetes/namespace/encapi/default/environment, following the existing rancher/puppetca policy conventions (data-path read, no metadata grant).Closing: superseded by the new dedicated
terragrunt-encrepo (all encapi ENC data managed there; no changes to terraform-incus). Replacement PRs incoming.Pull request closed