From ee8e42728e4aa16149d2f55fbbabbd005e291774 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 17 Jan 2021 23:01:58 +0100 Subject: [PATCH] helm: fix old reference to static secret_key --- helm/templates/secret.yaml | 4 ++-- helm/templates/web-deployment.yaml | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/helm/templates/secret.yaml b/helm/templates/secret.yaml index bf2a5bce6..abb8ae59b 100644 --- a/helm/templates/secret.yaml +++ b/helm/templates/secret.yaml @@ -6,9 +6,9 @@ metadata: data: monitoring_username: bW9uaXRvcg== # monitor in base64 {{- if .Values.config.secretKey }} - secret_key: {{ .Values.config.secretKey | b64enc | quote }} + SECRET_KEY: {{ .Values.config.secretKey | b64enc | quote }} {{- else }} - secret_key: {{ randAlphaNum 50 | b64enc | quote}} + SECRET_KEY: {{ randAlphaNum 50 | b64enc | quote}} {{- end }} {{- if .Values.backup }} POSTGRESQL__S3_BACKUP__SECRET_KEY: "{{ .Values.backup.secretKey }}" diff --git a/helm/templates/web-deployment.yaml b/helm/templates/web-deployment.yaml index 2a77c56bd..cf80508bd 100644 --- a/helm/templates/web-deployment.yaml +++ b/helm/templates/web-deployment.yaml @@ -74,12 +74,10 @@ spec: - configMapRef: name: {{ include "authentik.fullname" . }}-config prefix: AUTHENTIK_ + - secretRef: + name: {{ include "authentik.fullname" . }}-secret-key + prefix: AUTHENTIK_ env: - - name: AUTHENTIK_SECRET_KEY - valueFrom: - secretKeyRef: - name: "{{ include "authentik.fullname" . }}-secret-key" - key: "secret_key" - name: AUTHENTIK_REDIS__PASSWORD valueFrom: secretKeyRef: