diff --git a/config/auth_kubernetes_role/k8s/au/syd1/ghp.yaml b/config/auth_kubernetes_role/k8s/au/syd1/ghp.yaml new file mode 100644 index 0000000..ff5d493 --- /dev/null +++ b/config/auth_kubernetes_role/k8s/au/syd1/ghp.yaml @@ -0,0 +1,7 @@ +bound_service_account_names: + - ghp +bound_service_account_namespaces: + - ghp +token_ttl: 600 +token_max_ttl: 600 +audience: vault diff --git a/policies/kv/kubernetes/ghp/read.yaml b/policies/kv/kubernetes/ghp/read.yaml new file mode 100644 index 0000000..4430c84 --- /dev/null +++ b/policies/kv/kubernetes/ghp/read.yaml @@ -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