diff --git a/policies/kv/service/terraform/authentik.yaml b/policies/kv/service/terraform/authentik.yaml index 29adda4..466d4a6 100644 --- a/policies/kv/service/terraform/authentik.yaml +++ b/policies/kv/service/terraform/authentik.yaml @@ -1,9 +1,12 @@ -# Allow the Terraform Authentik runner to read OAuth2/OIDC client secrets that -# back authentik providers. Secrets live under each target service's kv -# namespace path (kv/kubernetes/namespace//default/oauth-credentials) and -# are read by the module's data.vault_kv_secret_v2 lookups. +# Allow the Terraform Authentik runner to read: +# - its own Authentik API token (provider auth), and +# - OAuth2/OIDC client secrets that back authentik providers (per target +# service's kv namespace path, via the module's data.vault_kv_secret_v2). --- rules: + - path: "kv/data/service/terraform/authentik" + capabilities: + - read - path: "kv/data/kubernetes/namespace/+/default/oauth-credentials" capabilities: - read