From 7c1c8326e7ccd87c3224a15358d549faff4dd742 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Wed, 17 Jul 2024 18:01:10 -0400 Subject: [PATCH] authentik-outpost-tls --- k8s/apps/ingresses/templates/authentik.yaml | 27 ++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) 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 }} +