vault: add arrstack policies (deployer + KV read + creds) (2/3) #126
Reference in New Issue
Block a user
Delete Branch "benvin/arrstack-policy"
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
Grants the Vault access the arrstack engine needs, before any engine resources exist. PR 2 of 3 (policy), stacked on #125 (register). Keeping policy separate from resources honours the never-bundle / sequential-apply rule.
Change
policies/arrstack/admin.yaml: the terraform-vault deployer (tf_vaultapprole +woodpecker_terraform_vaultk8s role) may create/read/update/deletearrstack/configand managearrstack/roles/*.policies/kv/kubernetes/namespace/arrstack/default/arrproxy-admin-token/read.yaml: the deployer may read the KV-seeded arrproxy admin token (bothkv/data/...andkv/metadata/...) that the engine config sources. The existingsecret_backends_readpolicy does not cover thiskubernetes/namespaceKV path.policies/arrstack/creds/{sonarr,radarr,prowlarr}.yaml: eachterraform-<app>run may read its ownarrstack/creds/<app>to mint a scoped key.policies/policies.hcl, so no wiring changes are needed.Apply order
Apply after PR #125 (register). Safe to apply before the engine exists — these only grant capabilities on paths.
Stack
benvin/arrstack-policyoffbenvin/arrstack-registerbenvin/arrstack-resourcesSupersedes #124.
Grant the Vault access the arrstack engine needs, before any engine resources exist. Second of three stacked steps (register -> policy -> resources). Adds: - policies/arrstack/admin.yaml: the terraform-vault deployer may create/read/update/delete arrstack/config and manage arrstack/roles/*. - policies/kv/.../arrproxy-admin-token/read.yaml: the deployer may read the KV-seeded arrproxy admin token (data + metadata paths) that the engine config sources; the existing secret_backends_read policy does not cover this kubernetes/namespace KV path. - policies/arrstack/creds/{sonarr,radarr,prowlarr}.yaml: each terraform- <app> run may read its own arrstack/creds/<app> to mint a scoped key. Policy YAMLs are auto-discovered by policies/policies.hcl, so no wiring changes are needed. Apply order: after PR-1 (register). Safe to apply before the engine exists since these only grant capabilities on paths.