This repository has been archived on 2024-02-11. You can view files and clone it, but cannot push or open issues or pull requests.
valinor/archive/security/authentik/app/externalsecret.yaml

35 lines
908 B
YAML
Raw Normal View History

2023-10-06 15:40:53 -05:00
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: authentik
namespace: security
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: authentik-secret
creationPolicy: Owner
template:
engineVersion: v2
data:
authentik_secret_key: "{{ .authentik_secret_key }}"
authentik_email_host: "{{ .authentik_email_host }}"
authentik_email_username: "{{ .authentik_email_username }}"
authentik_email_password: "{{ .mailgun_authentik_smtp_password }}"
authentik_email_from: "{{ .authentik_email_from }}"
dataFrom:
- extract:
key: Authentik
rewrite:
- regexp:
source: "(.*)"
target: "authentik_$1"
- extract:
key: mailgun
rewrite:
- regexp:
source: "(.*)"
target: "mailgun_$1"