diff --git a/charts/stable/anonaddy/Chart.yaml b/charts/stable/anonaddy/Chart.yaml index 0fc5f7f2e57..5ce0087ce67 100644 --- a/charts/stable/anonaddy/Chart.yaml +++ b/charts/stable/anonaddy/Chart.yaml @@ -26,7 +26,7 @@ name: anonaddy sources: - https://github.com/truecharts/charts/tree/master/charts/stable/anonaddy - https://github.com/anonaddy/docker -version: 15.0.5 +version: 15.0.6 annotations: truecharts.org/catagories: | - email diff --git a/charts/stable/anonaddy/templates/_secrets.tpl b/charts/stable/anonaddy/templates/_secrets.tpl index 3d55859df05..715d7875d8a 100644 --- a/charts/stable/anonaddy/templates/_secrets.tpl +++ b/charts/stable/anonaddy/templates/_secrets.tpl @@ -2,7 +2,9 @@ {{- define "anonaddy.secrets" -}} {{- $secretName := (printf "%s-anonaddy-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) }} -{{- $appKey := randAlphaNum 32 -}} +# Anonaddy requires APP_KEY to be in base 64 format presented in the container, so this b64enc here is intentional +# https://github.com/anonaddy/docker/blob/master/README.md#app +{{- $appKey := (printf "base64:%v" (randAlphaNum 32 | b64enc)) -}} {{- $secretKey := randAlphaNum 32 -}} {{- with lookup "v1" "Secret" .Release.Namespace $secretName -}} @@ -11,9 +13,7 @@ {{- end }} enabled: true data: - # Anonaddy requires APP_KEY to be in base 64 format presented in the container, so this b64enc here is intentional - # https://github.com/anonaddy/docker/blob/master/README.md#app - APP_KEY: {{ printf "base64:%v" ($appKey | b64enc) }} + APP_KEY: {{ $appKey }} # Anonaddy requires ANONADDY_SECRET to be a long string ANONADDY_SECRET: {{ $secretKey }} {{- end -}}