policies: let terraform-git seed the gitea engine admin credential to KV #102
Reference in New Issue
Block a user
Delete Branch "benvin/gitea-kv-writer"
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-git now provisions the
gitea-vault-adminsite-admin bot and writes its generated password tokv/service/vault/au/syd1/secret_backend/gitea/config(asadmin_username+admin_password) so the gitea secrets engine can consume it at creation time. Thewoodpecker_terraform_git/terraform_gitidentity has no write access to that KV path, so its apply would 403 without this grant.The deployer that reads the seed already has read access via
policies/kv/service/vault/secret_backends_read.yaml(kv/data/service/vault/+/+/secret_backend/*), so only the write side is added here.Change
policies/kv/service/vault/au/syd1/secret_backend/gitea/config_write.yamlgrantingcreate/read/updateon the gitea config KV path to theterraform_gitapprole andwoodpecker_terraform_gitk8s role.Ordering
Merge + apply this before the terraform-git
benvin/gitea-vault-adminPR applies (which performs the write). Files are disjoint from the other gitea terraform-vault PRs (#100, #101).https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv