Encode base64 CSRF_KEY (#2954)

Signed-off-by: joancafom <jcarmona@bitnami.com>
This commit is contained in:
Jose Antonio Carmona
2020-07-01 16:29:27 +02:00
committed by GitHub
parent bc14dfdc6c
commit 823a198926
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: harbor
version: 6.0.6
version: 6.0.7
appVersion: 2.0.1
description: Harbor is an an open source trusted cloud native registry project that stores, signs, and scans content
keywords:

View File

@@ -15,11 +15,11 @@ data:
_REDIS_URL: {{ include "harbor.redisForCore" . | b64enc | quote }}
_REDIS_URL_REG: {{ include "harbor.redisForGC" . | b64enc | quote }}
REGISTRY_CREDENTIAL_USERNAME: {{ .Values.registry.credentials.username | b64enc | quote }}
REGISTRY_CREDENTIAL_PASSWORD: {{ .Values.registry.credentials.password | b64enc | quote }}
REGISTRY_CREDENTIAL_PASSWORD: {{ .Values.registry.credentials.password | b64enc | quote }}
{{- if .Values.core.csrfKey }}
CSRF_KEY: {{ .Values.core.csrfKey | quote }}
CSRF_KEY: {{ .Values.core.csrfKey | b64enc | quote }}
{{- else }}
CSRF_KEY: {{ randAlphaNum 32 | quote }}
CSRF_KEY: {{ randAlphaNum 32 | b64enc | quote }}
{{- end }}
{{- if .Values.harborAdminPassword }}
HARBOR_ADMIN_PASSWORD: {{ .Values.harborAdminPassword | b64enc | quote }}