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 <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2025-03-24 16:53:06 +01:00
parent 82c5e5e59d
commit 6abded53e0
2 changed files with 3 additions and 0 deletions

View file

@ -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 }}

View file

@ -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.