authentik/helm/templates/secret.yaml

17 lines
512 B
YAML
Raw Normal View History

apiVersion: v1
kind: Secret
type: Opaque
metadata:
2020-12-05 21:08:42 +00:00
name: {{ include "authentik.fullname" . }}-secret-key
data:
monitoring_username: bW9uaXRvcg== # monitor in base64
{{- if .Values.config.secretKey }}
SECRET_KEY: {{ .Values.config.secretKey | b64enc | quote }}
{{- else }}
SECRET_KEY: {{ randAlphaNum 50 | b64enc | quote}}
{{- end }}
{{- if .Values.backup }}
POSTGRESQL__S3_BACKUP__SECRET_KEY: "{{ .Values.backup.secretKey }}"
{{- end}}
EMAIL__PASSWOR: "{{ .Values.config.email.password }}"