From 6abded53e0c5de56257c5d7c4afc5e079e6d3bfc Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Mon, 24 Mar 2025 16:53:06 +0100 Subject: [PATCH] feat(helm): add TOKEN_SECRET environment variable Add TOKEN_SECRET environment variable to HTTP service deployment and generate a random value for it in vars.yaml. Signed-off-by: rjshrjndrn --- .../helmcharts/openreplay/charts/http/templates/deployment.yaml | 2 ++ scripts/helmcharts/vars.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/scripts/helmcharts/openreplay/charts/http/templates/deployment.yaml b/scripts/helmcharts/openreplay/charts/http/templates/deployment.yaml index 4ecc87dd7..a7eb11693 100644 --- a/scripts/helmcharts/openreplay/charts/http/templates/deployment.yaml +++ b/scripts/helmcharts/openreplay/charts/http/templates/deployment.yaml @@ -95,6 +95,8 @@ spec: value: {{ .Values.global.jwtSecret }} - name: JWT_SPOT_SECRET value: {{ .Values.global.jwtSpotSecret }} + - name: TOKEN_SECRET + value: {{ .Values.global.tokenSecret }} ports: {{- range $key, $val := .Values.service.ports }} - name: {{ $key }} diff --git a/scripts/helmcharts/vars.yaml b/scripts/helmcharts/vars.yaml index 43c1375dd..8872068d8 100644 --- a/scripts/helmcharts/vars.yaml +++ b/scripts/helmcharts/vars.yaml @@ -124,6 +124,7 @@ global: assistJWTSecret: "{{ randAlphaNum 20}}" jwtSecret: "{{ randAlphaNum 20}}" jwtSpotSecret: "{{ randAlphaNum 20}}" + tokenSecret: "{{randAlphaNum 20}}" # In case of multiple nodes in the kubernetes cluster, # we'll have to create an RWX PVC for shared components. # If it's a single node, we'll use hostVolume, which is the default for the community/oss edition.