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

View File

@@ -1,7 +1,7 @@
apiVersion: v2
kubeVersion: ">=1.16.0-0"
name: meshcentral
version: 9.0.24
version: 9.0.25
appVersion: "1.1.2"
description: MeshCentral is a full computer management web site
type: application

View File

@@ -32,7 +32,7 @@
{{- with (lookup "v1" "Secret" .Release.Namespace $secretStorageName) -}}
{{- $sessionKey = (index .data "session_key") | b64dec -}}
{{- else -}}
{{- $sessionKey = randAlphaNum 32 | b64enc -}}
{{- $sessionKey = randAlphaNum 32 -}}
{{- end -}}
{{/* Inject some values */}}
@@ -89,7 +89,7 @@ metadata:
data:
{{/* The actual config */}}
config.json: |
{{- toPrettyJson (fromYaml $config) | b64enc |nindent 4 }}
{{- toPrettyJson (fromYaml $config) | b64enc | nindent 4 }}
{{- end -}}
{{/* Prunes keys that start with _ */}}