[DNM] Synapse Matrix Fixes (#2582)

* Attempting to fix issues with synapse that prevent registration using the homeserver.

1. Incorrect references for mail values in _secret.tpl
2. The shared secret question was nested under enable registration, however it's purpose is to bypass normal registration.
3. Coturn shared secret was missing from questions

* Update charts/stable/synapse/questions.yaml

* Update charts/stable/synapse/questions.yaml

* Update charts/stable/synapse/templates/_secret.tpl

* PR #2582 Synapse configuration

Updates according to PR comments

* PR #2582 Synapse configuration

Fix trailing whitespace

* Update charts/stable/synapse/Chart.yaml

* Update Chart.yaml

* Update questions.yaml

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
Ben Tilford
2022-05-01 23:37:52 +03:00
committed by GitHub
co-authored by Stavros Kois Kjeld Schouten-Lebbing
parent 6127f1d6c9
commit 2404eb6810
4 changed files with 39 additions and 26 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ maintainers:
name: synapse name: synapse
sources: [] sources: []
type: application type: application
version: 2.0.24 version: 2.0.25
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- cloud - cloud
+25 -18
View File
@@ -120,6 +120,15 @@ questions:
schema: schema:
type: string type: string
default: "matrix.example.com" default: "matrix.example.com"
- variable: clientBaseUrl
label: Client Base URL
# Assigned to `client_base_url` formerly called `riot_base_url`
description: |
Custom URL for links within email notifications. If not set links will be
based on https://matrix.to
schema:
type: string
default: ""
- variable: presence - variable: presence
label: "Presence" label: "Presence"
schema: schema:
@@ -199,6 +208,11 @@ questions:
# TODO: blacklist: # TODO: blacklist:
- variable: registration - variable: registration
label: "Registration Configuration" label: "Registration Configuration"
# Enabling captcha instead of mail is also an option but currently only
# mail is configurable.
description: |
Enable registration. If enabled requires this will require enabling
and configuring mail for SMTP.
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -208,19 +222,16 @@ questions:
schema: schema:
type: boolean type: boolean
default: false default: false
show_subquestions_if: true - variable: sharedSecret
subquestions: label: "Shared Secret"
- variable: maxPixels description: |
label: "Max Pixels" If set, allows registration of standard or admin accounts by anyone who has the shared secret, even
schema: if registration is otherwise disabled
type: string schema:
default: "32M" type: string
- variable: sharedSecret default: ""
label: "Shared Secret" private: true
schema: required: true
type: string
default: ""
private: true
# TODO: required3PIDs # TODO: required3PIDs
# TODO: autoJoinRooms # TODO: autoJoinRooms
- variable: security - variable: security
@@ -310,11 +321,6 @@ questions:
schema: schema:
type: string type: string
default: "Matrix <matrix@example.com>" default: "Matrix <matrix@example.com>"
- variable: riotUrl
label: "Riot URL"
schema:
type: string
default: ""
- variable: host - variable: host
label: "Host" label: "Host"
schema: schema:
@@ -718,6 +724,7 @@ questions:
schema: schema:
type: int type: int
default: 568 default: 568
# Include{podSecurityContextAdvanced} # Include{podSecurityContextAdvanced}
# Include{resources} # Include{resources}
@@ -14,6 +14,12 @@ data:
server_name: {{ .Values.matrix.serverName }} server_name: {{ .Values.matrix.serverName }}
pid_file: /data/homeserver.pid pid_file: /data/homeserver.pid
public_baseurl: {{ include "matrix.baseUrl" . | quote }} public_baseurl: {{ include "matrix.baseUrl" . | quote }}
{{- if .Values.matrix.clientBaseURL -}}
# Client Base URL, Formerly riot_base_url
client_base_url: {{ .Values.matrix.clientBaseURL }}
{{- end}}
use_presence: {{ .Values.matrix.presence }} use_presence: {{ .Values.matrix.presence }}
allow_public_rooms_over_federation: {{ and .Values.matrix.federation.enabled .Values.matrix.federation.allowPublicRooms }} allow_public_rooms_over_federation: {{ and .Values.matrix.federation.enabled .Values.matrix.federation.allowPublicRooms }}
+7 -7
View File
@@ -31,11 +31,11 @@ stringData:
email: email:
enable_notifs: {{ .Values.mail.enabled }} enable_notifs: {{ .Values.mail.enabled }}
notif_from: {{ .Values.mail.from }} notif_from: {{ .Values.mail.from }}
smtp_host: {{ .Values.mail.external.host }} smtp_host: {{ .Values.mail.host }}
smtp_port: {{ .Values.mail.external.port }} smtp_port: {{ .Values.mail.port }}
smtp_user: {{ .Values.mail.external.username }} smtp_user: {{ .Values.mail.username }}
smtp_pass: {{ .Values.mail.external.password }} smtp_pass: {{ .Values.mail.password }}
require_transport_security: {{ .Values.mail.external.requireTransportSecurity }} require_transport_security: {{ .Values.mail.requireTransportSecurity }}
{{- end }} {{- end }}
database: database:
@@ -50,8 +50,8 @@ stringData:
cp_max: 10 cp_max: 10
sslmode: "disable" sslmode: "disable"
{{- if .Values.matrix.registration.sharedSecret }} {{- if .Values.matrix.sharedSecret }}
registration_shared_secret: {{ .Values.matrix.registration.sharedSecret }} registration_shared_secret: {{ .Values.matrix.sharedSecret }}
{{- end }} {{- end }}
macaroon_secret_key: {{ $msk }} macaroon_secret_key: {{ $msk }}