Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions charts/seq/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,27 @@ spec:
- name: "SEQ_FIRSTRUN_ADMINUSERNAME"
value: "{{ .Values.firstRunAdminUsername }}"
{{- end }}
{{- if .Values.firstRunAdminPassword }}
{{- if or .Values.firstRunAdminPassword .Values.firstRunAdminPasswordSecret }}
- name: "SEQ_FIRSTRUN_ADMINPASSWORD"
{{- if .Values.firstRunAdminPassword }}
value: "{{ .Values.firstRunAdminPassword }}"
{{- else }}
valueFrom:
secretKeyRef:
name: {{ required "A valud .Values.firstRunAdminPasswordSecret.name is required" .Values.firstRunAdminPasswordSecret.name | quote }}
key: {{ required "A valud .Values.firstRunAdminPasswordSecret.key is required" .Values.firstRunAdminPasswordSecret.key | quote }}
{{- end }}
{{- if .Values.firstRunAdminPasswordHash }}
{{- end }}
{{- if or .Values.firstRunAdminPasswordHash .Values.firstRunAdminPasswordHashSecret }}
- name: "SEQ_FIRSTRUN_ADMINPASSWORDHASH"
{{- if .Values.firstRunAdminPasswordHash }}
value: "{{ .Values.firstRunAdminPasswordHash }}"
{{- else }}
valueFrom:
secretKeyRef:
name: {{ required "A valud .Values.firstRunAdminPasswordHashSecret.name is required" .Values.firstRunAdminPasswordHashSecret.name | quote }}
key: {{ required "A valud .Values.firstRunAdminPasswordHashSecret.key is required" .Values.firstRunAdminPasswordHashSecret.key | quote }}
{{- end }}
{{- end }}
{{- if .Values.firstRunRequireAuthenticationForHttpIngestion }}
- name: "SEQ_FIRSTRUN_REQUIREAUTHENTICATIONFORHTTPINGESTION"
Expand Down Expand Up @@ -180,6 +194,6 @@ spec:

# At least one of the default password variables must be set; note that this ignores SEQ_PASSWORD, but
# that variable is just a convenience alias for SEQ_FIRSTRUN_ADMINPASSWORD anyway.
{{- if not (or .Values.firstRunNoAuthentication .Values.firstRunAdminPassword .Values.firstRunAdminPasswordHash) }}
{{- fail "One of firstRunAdminPassword or firstRunAdminPasswordHash must be specified." }}
{{- if not (or .Values.firstRunNoAuthentication .Values.firstRunAdminPassword .Values.firstRunAdminPasswordHash .Values.firstRunAdminPasswordSecret .Values.firstRunAdminPasswordHashSecret) }}
{{- fail "One of firstRunAdminPassword or firstRunAdminPasswordHash or firstRunAdminPasswordSecret or firstRunAdminPasswordHashSecret must be specified." }}
{{- end }}
10 changes: 10 additions & 0 deletions charts/seq/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,22 @@ acceptEULA: "Y"
# deployment). See the `firstRunAdminPasswordHash` variant below for better confidentiality.
firstRunNoAuthentication: false
# firstRunAdminPassword: ""
#
# Alternatively, a default admin password can be provided from Kubernetes secret:
# firstRunAdminPasswordSecret:
# name: "seq-admin-password-secret"
# key: "password"

# Further customization of the default security settings.
# See here for docs on how to create a password hash: https://blog.datalust.co/setting-an-initial-password-when-deploying-seq-to-docker/
# firstRunAdminUsername: "admin"
# firstRunAdminPasswordHash: ""
# firstRunRequireAuthenticationForHttpIngestion: true
#
# Alternatively, a password hash can be provided from Kubernetes secret:
# firstRunAdminPasswordHashSecret:
# name: "seq-admin-password-hash-secret"
# key: "password"

# Set this URL if you enable ingress and/or AAD authentication.
# Without this URL set to include HTTPS, Seq will try to set a login redirect
Expand Down
Loading