increase recipes key secret length to 64

This commit is contained in:
James 2024-01-29 14:33:58 +00:00
parent 3dc9e88dde
commit 89432db555
Signed by: thumbscrw
GPG Key ID: 4A3BB8AF7D9C2B46
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,6 @@ type: Opaque
data:
{{- $secretObj := (lookup "v1" "Secret" .Release.Namespace "recipes-secret-key") | default dict }}
{{- $secretData := (get $secretObj "data") | default dict }}
{{- $secretKey := (get $secretData "recipes-secret-key") | default (randAlphaNum 32 | b64enc) }}
{{- $secretKey := (get $secretData "recipes-secret-key") | default (randAlphaNum 64 | b64enc) }}
password: {{ $secretKey | quote }}
{{- end }}

View File

@ -47,6 +47,8 @@ externalPostgresql:
database: recipes
username: recipes
# password: recipes
# existingSecret: recipes
# existingSecretPasswordKey: password
postgresql:
enabled: true