vault: ghp engine config-write + consumer policies (apply before #121) #122
Reference in New Issue
Block a user
Delete Branch "benvin/ghp-vault-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: step 2 of the ordered ghp plugin add (install via puppet -> this policy -> resources). The terraform apply identities (tf_vault / woodpecker_terraform_vault) need create/update on ghp/config + ghp/roles/* BEFORE the engine resources are applied — an approle token capability set is fixed at login, so the grant must be effective in a prior apply or writing ghp/config is permission-denied.
How: split out of #121 — policies/ghp/admin.yaml (deployer: ghp/config + ghp/roles/*) and policies/ghp/creds/agent.yaml (agents approle: read ghp/creds/agent).
Order: puppet-prod#520 (install plugin) -> this -> #121 (resources).