fix(meshcentral): don't double encode new generated keys (#5917)

This commit is contained in:
Stavros Kois
2023-01-01 00:10:33 +02:00
committed by GitHub
parent de754ab16b
commit bbb1fe6345
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v2 apiVersion: v2
kubeVersion: ">=1.16.0-0" kubeVersion: ">=1.16.0-0"
name: meshcentral name: meshcentral
version: 9.0.24 version: 9.0.25
appVersion: "1.1.2" appVersion: "1.1.2"
description: MeshCentral is a full computer management web site description: MeshCentral is a full computer management web site
type: application type: application
@@ -32,7 +32,7 @@
{{- with (lookup "v1" "Secret" .Release.Namespace $secretStorageName) -}} {{- with (lookup "v1" "Secret" .Release.Namespace $secretStorageName) -}}
{{- $sessionKey = (index .data "session_key") | b64dec -}} {{- $sessionKey = (index .data "session_key") | b64dec -}}
{{- else -}} {{- else -}}
{{- $sessionKey = randAlphaNum 32 | b64enc -}} {{- $sessionKey = randAlphaNum 32 -}}
{{- end -}} {{- end -}}
{{/* Inject some values */}} {{/* Inject some values */}}
@@ -89,7 +89,7 @@ metadata:
data: data:
{{/* The actual config */}} {{/* The actual config */}}
config.json: | config.json: |
{{- toPrettyJson (fromYaml $config) | b64enc |nindent 4 }} {{- toPrettyJson (fromYaml $config) | b64enc | nindent 4 }}
{{- end -}} {{- end -}}
{{/* Prunes keys that start with _ */}} {{/* Prunes keys that start with _ */}}