generate random jwtSecret

Signed-off-by: Roland.Ma <rolandma@yunify.com>
This commit is contained in:
Roland.Ma
2021-05-20 02:42:15 +00:00
parent 2a258c4530
commit 7b565e2412
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ data:
maximumClockSkew: {{ .Values.config.authentication.maximumClockSkew | default "10s" }}
multipleLogin: {{ .Values.console.enableMultiLogin | default true }}
kubectlImage: {{ .Values.image.ks_kubectl_repo }}:{{ .Values.image.ks_kubectl_tag | default "latest" }}
jwtSecret: "{{ .Values.jwtSecret }}"
jwtSecret: "{{ .Values.config.jwtSecret | default (randAlphaNum 32 ) }}"
{{- if .Values.config.authentication.oauthOptions }}
{{- with .Values.config.authentication.oauthOptions }}
oauthOptions:

View File

@@ -39,7 +39,7 @@ config:
# Specifies whether the kubesphere-config configmap should be created
create: true
authentication: {}
# Jwt Secret is required
# Jwt Secret is required by ks-apiserver, a random string would be generated if it's empty
jwtSecret: ""
multicluster: {}
monitoring: {}