fix(apps): decode keys before reencode (#5258)

* fix(meshcentral): decode sessionkey before reencode

* fix(netbox): decode key before reencoding and fix UI issues

* couple more fixes
This commit is contained in:
Stavros Kois
2022-12-11 02:07:54 +02:00
committed by GitHub
parent ce33bf8c89
commit 23cadd2fe0
12 changed files with 67 additions and 69 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v2
kubeVersion: ">=1.16.0-0"
name: meshcentral
version: 9.0.11
version: 9.0.12
appVersion: "1.1.1"
description: MeshCentral is a full computer management web site
type: application
@@ -32,7 +32,7 @@
{{- with (lookup "v1" "Secret" .Release.Namespace $secretStorageName) }}
{{- $sessionKey = (index .data "session_key") }}
{{- else }}
{{- $sessionKey = randAlphaNum 32 }}
{{- $sessionKey = randAlphaNum 32 | b64enc}}
{{- end }}
{{/* Inject some values */}}
@@ -44,7 +44,7 @@
{{- $_ := set $config.settings "mongoDB" (.Values.mongodb.url.complete | trimAll "\"") }}
{{- $_ := set $config.settings "mongoDbName" .Values.mongodb.mongodbDatabase }}
{{- $_ := set $config.settings "sessionKey" $sessionKey }}
{{- $_ := set $config.settings "sessionKey" ($sessionKey | b64dec) }}
{{- $_ := set $config.settings "port" .Values.service.main.ports.main.port }}
{{/* Force disable some functions that are not appliable in docker */}}
@@ -77,7 +77,7 @@ metadata:
{{- include "tc.common.labels" . | nindent 4 }}
data:
{{/* Store session_key to reuse */}}
session_key: {{ $sessionKey | b64enc }}
session_key: {{ $sessionKey }}
---
+2 -2
View File
@@ -1,7 +1,7 @@
image:
repository: ghcr.io/ylianst/meshcentral
repository: tccr.io/truecharts/meshcentral
pullPolicy: IfNotPresent
tag: 1.1.1@sha256:fc31e9430fbbbc4cbebb8a008133468d9f2ebde37afe8d67fe47f42038cc687b
tag: 1.1.1@sha256:1719ae34bfec743049d5e415d9a89a472e707fb9dfb1f64c33df70141db09032
command:
- node