From d136e364258c436f250460b36f60b25b80123232 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Thu, 5 Jan 2023 23:05:04 +0000
Subject: [PATCH] fix(mastodon): Fix base64 encoding in secret

---
 charts/mastodon/templates/secrets.yaml | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/charts/mastodon/templates/secrets.yaml b/charts/mastodon/templates/secrets.yaml
index 0daf1b62d..84d7fcc06 100644
--- a/charts/mastodon/templates/secrets.yaml
+++ b/charts/mastodon/templates/secrets.yaml
@@ -41,16 +41,19 @@ data:
   {{- end }}
   {{- end }}
   {{- if .Values.externalAuth.oidc.enabled }}
-  OIDC_CLIENT_SECRET: {{ .Values.externalAuth.oidc.client_secret }}
+  OIDC_CLIENT_SECRET: {{ .Values.externalAuth.oidc.client_secret  | b64enc }}
   {{- end }}
   {{- if .Values.externalAuth.saml.enabled }}
   {{- with .Values.externalAuth.saml.private_key }}
-  SAML_PRIVATE_KEY: {{ . | quote }}
+  SAML_PRIVATE_KEY: {{ .  | b64enc | quote }}
   {{- end }}
   {{- end }}
   {{- if .Values.externalAuth.ldap.enabled }}
   {{- with .Values.externalAuth.ldap.password }}
-  LDAP_PASSWORD: {{ . }}
+  LDAP_PASSWORD: {{ .  | b64enc }}
   {{- end }}
   {{- end }}
+  {{- with .Values.mastodon.smtp.password }}
+  SMTP_PASSWORD: {{ . | b64enc }}
+  {{- end }}
 {{- end }}
-- 
GitLab