first commit

This commit is contained in:
Stéphane Tailland
2026-08-19 18:55:06 +02:00
parent 63cc5e1c89
commit 8c812d4098
6 changed files with 96 additions and 21 deletions
+27
View File
@@ -0,0 +1,27 @@
# Replaces the manually-applied secret.yaml — the real PAT now lives only
# in Vault (secrets/kong-v2/catalog/dev/konnect-pat), never in git, never
# manually kubectl-applied again. refreshInterval controls how often ESO
# re-checks Vault and re-syncs the K8s Secret if the value changed there —
# rotation becomes "update Vault", nothing to touch in the cluster.
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: catalog-dev-konnect-auth
namespace: catalog
spec:
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: vault-kong-v2
target:
name: catalog-dev-konnect-auth
template:
metadata:
labels:
konghq.com/credential: konnect
konghq.com/secret: "true"
data:
- secretKey: token
remoteRef:
key: kong-v2/catalog/dev/konnect-pat
property: token