fix(apps): Removed some double b64enc on autogenerated secrets, also some quotes off them. (#1937)

* fix(anonaddy): only b64enc once

* fix(pydio-cells): trim `"` from dbPass

* chore(paperless-ng): don't quote secret

* fix(linkace): don't quote secret

* chore(librephotos): don't quote secret

* chore(leantime): don't quote secret

* chore(fireflyiii): don't quote secret

* chore(authelia): dont quote secret
This commit is contained in:
Stavros Kois
2022-02-23 00:10:13 +01:00
committed by GitHub
parent bee3228738
commit d1dd5c4660
16 changed files with 26 additions and 26 deletions
+7 -7
View File
@@ -5,6 +5,7 @@ This template generates a random password and ensures it persists across updates
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
labels:
{{- include "common.labels" . | nindent 4 }}
@@ -14,15 +15,14 @@ metadata:
{{- $secret := "" }}
data:
{{- if $keyprevious }}
{{- $appkey = ( index $keyprevious.data "appkey" ) | b64dec }}
{{- $secret = ( index $keyprevious.data "secret" ) | b64dec }}
{{- $appkey = ( index $keyprevious.data "appkey" ) }}
{{- $secret = ( index $keyprevious.data "secret" ) }}
appkey: {{ ( index $keyprevious.data "appkey" ) }}
secret: {{ ( index $keyprevious.data "secret" ) }}
{{- else }}
{{- $appkey = randAlphaNum 32 | b64enc }}
{{- $secret = randAlphaNum 32 | b64enc }}
appkey: {{ $appkey | b64enc | quote }}
secret: {{ $secret | b64enc | quote }}
{{- $appkey = randAlphaNum 32 }}
{{- $secret = randAlphaNum 32 }}
appkey: {{ $appkey | b64enc }}
secret: {{ $secret | b64enc }}
{{- end }}
type: Opaque
{{- end -}}