theshire/kubernetes/apps/observability/grafana/app/externalsecret.yaml

26 lines
655 B
YAML
Raw Normal View History

---
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
2024-03-01 08:53:43 -06:00
name: grafana-secret
namespace: observability
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: grafana-secret
2024-03-01 08:25:37 -06:00
creationPolicy: Owner
template:
engineVersion: v2
data:
2024-03-01 08:25:37 -06:00
GF_AUTH_GENERIC_OAUTH_CLIENT_SECRET: "{{ .authentik_grafana_oauth_client_secret }}"
dataFrom:
- extract:
2024-03-01 08:25:37 -06:00
key: Authentik
rewrite:
- regexp:
source: "(.*)"
target: "authentik_$1"