diff --git a/k8s/apps/ingresses/templates/authentik.yaml b/k8s/apps/ingresses/templates/authentik.yaml index 18b96c5..b96e581 100644 --- a/k8s/apps/ingresses/templates/authentik.yaml +++ b/k8s/apps/ingresses/templates/authentik.yaml @@ -56,4 +56,29 @@ spec: --- {{ if .Values.global.tls.enabled }} {{ include "homelab.ingress.domain.tls" (dict "global" .Values.global "namespace" "chart-authentik" "prefix" "authentik.core.home" "domain" .Values.global.domain ) }} -{{ end }} \ No newline at end of file +--- +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: "authentik-outpost-tls" + namespace: chart-authentik +spec: + refreshInterval: 1h + secretStoreRef: + kind: ClusterSecretStore + name: apps-ingresses + target: + name: tls-{{.prefix}}.{{ .Values.global.domain }} + creationPolicy: Owner + deletionPolicy: Delete + data: + - secretKey: tls.crt + remoteRef: + key: cloudflare-wildcard.{{ .Values.global.domain }} + property: tls.crt + - secretKey: tls.key + remoteRef: + key: cloudflare-wildcard.{{ .Values.global.domain }} + property: tls.key +{{ end }} +