fix(authelia): Allow SMTP without username and password (SMTP relay) (#5770)
* SMTP username and password not required for support SMTP relays I have changed the requiredness of the SMTP settings password and username field, to not required. This is necessary to support SMTP relays without authentication. (Like the Exchange Online one I’am using with ip verification) Signed-off-by: StanMar-bit <84271654+StanMar-bit@users.noreply.github.com> * adjust templates to handle smtp without user/pass Signed-off-by: StanMar-bit <84271654+StanMar-bit@users.noreply.github.com> Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
parent
091dfa758f
commit
cec708a968
|
@ -39,7 +39,7 @@ sources:
|
||||||
- https://github.com/authelia/chartrepo
|
- https://github.com/authelia/chartrepo
|
||||||
- https://github.com/authelia/authelia
|
- https://github.com/authelia/authelia
|
||||||
type: application
|
type: application
|
||||||
version: 14.0.17
|
version: 14.0.18
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- security
|
- security
|
||||||
|
|
|
@ -509,13 +509,11 @@ questions:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
required: true
|
|
||||||
- variable: plain_password
|
- variable: plain_password
|
||||||
label: "Password"
|
label: "Password"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
required: true
|
|
||||||
- variable: sender
|
- variable: sender
|
||||||
label: "Sender"
|
label: "Sender"
|
||||||
schema:
|
schema:
|
||||||
|
|
|
@ -173,7 +173,9 @@ data:
|
||||||
host: {{ $notifier.smtp.host }}
|
host: {{ $notifier.smtp.host }}
|
||||||
port: {{ default 25 $notifier.smtp.port }}
|
port: {{ default 25 $notifier.smtp.port }}
|
||||||
timeout: {{ default "5s" $notifier.smtp.timeout }}
|
timeout: {{ default "5s" $notifier.smtp.timeout }}
|
||||||
username: {{ $notifier.smtp.username }}
|
{{- with $notifier.smtp.username }}
|
||||||
|
username: {{ . }}
|
||||||
|
{{- end }}
|
||||||
sender: {{ $notifier.smtp.sender }}
|
sender: {{ $notifier.smtp.sender }}
|
||||||
identifier: {{ $notifier.smtp.identifier }}
|
identifier: {{ $notifier.smtp.identifier }}
|
||||||
subject: {{ $notifier.smtp.subject | quote }}
|
subject: {{ $notifier.smtp.subject | quote }}
|
||||||
|
|
|
@ -36,7 +36,7 @@ data:
|
||||||
LDAP_PASSWORD: {{ .Values.authentication_backend.ldap.plain_password | b64enc | quote }}
|
LDAP_PASSWORD: {{ .Values.authentication_backend.ldap.plain_password | b64enc | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.notifier.smtp.enabled }}
|
{{- if and .Values.notifier.smtp.enabled .Values.notifier.smtp.plain_password }}
|
||||||
SMTP_PASSWORD: {{ .Values.notifier.smtp.plain_password | b64enc | quote }}
|
SMTP_PASSWORD: {{ .Values.notifier.smtp.plain_password | b64enc | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue