khuedoan-homelab/platform/dex/templates/secret.yaml
2022-05-14 12:20:16 +07:00

27 lines
599 B
YAML

apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: dex-secrets
namespace: {{ .Release.Namespace }}
spec:
secretStoreRef:
kind: ClusterSecretStore
name: vault
target:
name: dex-secrets
data:
# Connectors
- secretKey: GITEA_CLIENT_ID
remoteRef:
key: /gitea/dex
property: client_id
- secretKey: GITEA_CLIENT_SECRET
remoteRef:
key: /gitea/dex
property: client_secret
# Clients
- secretKey: GRAFANA_SSO_CLIENT_SECRET
remoteRef:
key: /dex/grafana
property: client_secret