* add test * add question * clean up * fix * add salt * add end * fix * secrets * test * lint * low * test * bump * Update _secrets.tpl * Let users fill in their own encryption salt * Let users fill in their own encryption salt * make some changes * some typos * some typos * update questions * rofs * updatequestions * see users * 1001 * rofs * update questions Co-authored-by: Stavros kois <s.kois@outlook.com>
24 lines
584 B
Smarty
24 lines
584 B
Smarty
{{/* Define the secret */}}
|
|
{{- define "umami.secret" -}}
|
|
|
|
{{- $secretName := printf "%s-secret" (include "tc.common.names.fullname" .) }}
|
|
|
|
---
|
|
|
|
{{/* This secrets are loaded on both main authentik container and worker */}}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
type: Opaque
|
|
metadata:
|
|
name: {{ $secretName }}
|
|
labels:
|
|
{{- include "tc.common.labels" . | nindent 4 }}
|
|
data:
|
|
{{/* Secret Key */}}
|
|
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
|
|
HASH_SALT: {{ index .data "HASH_SALT" }}
|
|
{{- else }}
|
|
HASH_SALT: {{ randAlphaNum 32 | b64enc }}
|
|
{{- end }}
|
|
{{- end }}
|