policies: allow terraform-git to delete the gitea config seed for taint recovery
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful

Claude-Session: https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv
This commit is contained in:
2026-07-27 23:26:18 +10:00
parent d82580f1af
commit 1f060bd9b0
@@ -7,16 +7,22 @@
# write side for terraform-git's own identity. # write side for terraform-git's own identity.
--- ---
rules: rules:
# delete is required for taint recovery and destroy (the resource got tainted
# by pipeline 107's failed post-create read and replace = delete+create).
# The seed's write-once semantics are enforced by lifecycle ignore_changes in
# terraform-git, not by withholding delete here.
- path: "kv/data/service/vault/au/syd1/secret_backend/gitea/config" - path: "kv/data/service/vault/au/syd1/secret_backend/gitea/config"
capabilities: capabilities:
- create - create
- read - read
- update - update
- delete
# vault_kv_secret_v2 also reads the kv-v2 metadata path on every plan/apply # vault_kv_secret_v2 also reads the kv-v2 metadata path on every plan/apply
# (403 here broke the terraform-git main apply, pipeline 107). # (403 here broke the terraform-git main apply, pipeline 107).
- path: "kv/metadata/service/vault/au/syd1/secret_backend/gitea/config" - path: "kv/metadata/service/vault/au/syd1/secret_backend/gitea/config"
capabilities: capabilities:
- read - read
- delete
auth: auth:
approle: approle: