vault: add ghp k8s auth role + kv read policy
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful

ghp (a GitHub proxy) reads its GitHub App credentials and encryption key from kv/kubernetes/ghp/*; it uses the postgres storage backend so it only needs read access to those kv secrets.

- add k8s/au/syd1 auth role ghp bound to ServiceAccount ghp in namespace ghp (ttl 600s, audience vault)
- add read-only kv policy granting read on kv/data/kubernetes/ghp/* and read+list on kv/metadata/kubernetes/ghp/*
- mirrors the artifactapi / logging_logarchiver per-app pattern (app-SA-bound k8s role + single kv read policy consumed by VSO)
This commit is contained in:
2026-08-13 19:31:46 +10:00
parent 9e7687fccb
commit 1dace21b37
2 changed files with 24 additions and 0 deletions
@@ -0,0 +1,7 @@
bound_service_account_names:
- ghp
bound_service_account_namespaces:
- ghp
token_ttl: 600
token_max_ttl: 600
audience: vault
+17
View File
@@ -0,0 +1,17 @@
# Allow ghp to read its GitHub App credentials and encryption key
#
# kv/kubernetes/ghp/github-app (app_id/client_id/client_secret/private_key)
# kv/kubernetes/ghp/app (encryption_key)
---
rules:
- path: "kv/data/kubernetes/ghp/*"
capabilities:
- read
- path: "kv/metadata/kubernetes/ghp/*"
capabilities:
- read
- list
auth:
k8s/au/syd1:
- ghp