Skip to content

Commit 47cc1a7

Browse files
committed
fix config for 1.137
1 parent 627a9e8 commit 47cc1a7

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

charts/synapse/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
name: synapse
3-
version: 0.28.0
3+
version: 0.28.1

charts/synapse/templates/synapse-configmap.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,19 @@ data:
266266
# The maximum allowed duration by which sent events can be delayed, as per MSC4140.
267267
max_event_delay_duration: {{ $.Values.synapse.max_event_delay_duration }}
268268
{{- end }}
269-
{{- if or $.Values.matrixAuthentication.enabled $.Values.experimentalFeatures.msc3266.enabled }}
269+
{{- if or $.Values.matrixAuthentication.enabled }}
270270
# https://matrix-org.github.io/matrix-authentication-service/setup/homeserver.html#configure-the-homeserver-to-delegate-authentication-to-the-service
271+
matrix_authentication_service:
272+
# Enable the MAS integration
273+
enabled: true
274+
# The base URL where Synapse will contact MAS
275+
{{- $defaultMasEndpoint := http://project.{{ .Release.Namespace }} }}
276+
endpoint: {{ $.Values.synapse.matrixAuthenticationServiceEndpoint | default (printf "http://matrix-authentication.%s.svc:%s" $.Release.Namespace $.Values.matrixAuthentication.service.port) }}
277+
# The shared secret used to authenticate MAS requests, must be the same as `matrix.secret` in the MAS configuration
278+
# See https://element-hq.github.io/matrix-authentication-service/reference/configuration.html#matrix
279+
secret: {{ $.Values.experimentalFeatures.msc3861.admin_token }}
280+
{{- end }}
281+
{{- if or $.Values.experimentalFeatures.msc3967.enabled $.Values.experimentalFeatures.msc3266.enabled }}
271282
experimental_features:
272283
{{- if $.Values.experimentalFeatures.msc3266.enabled }}
273284
# MSC3266: Room summary API. Used for knocking over federation
@@ -276,9 +287,6 @@ data:
276287
msc3266:
277288
enabled: {{ $.Values.experimentalFeatures.msc3266.enabled }}
278289
{{- end }}
279-
{{- if $.Values.experimentalFeatures.msc3861.enabled }}
280-
msc3861: {{ $.Values.experimentalFeatures.msc3861 | toYaml | nindent 8 }}
281-
{{- end }}
282290
{{- if $.Values.experimentalFeatures.msc3967.enabled }}
283291
msc3967:
284292
enabled: true

charts/synapse/values.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
synapse:
33
serverName: NOT-CONFIGURED
4+
matrixAuthenticationServiceEndpoint: ''
45
# cfg ++
56
enable_3pid_changes: false
67
allow_profile_lookup_over_federation: false
@@ -234,7 +235,8 @@ experimentalFeatures:
234235
msc3967:
235236
enabled: true
236237
msc3861:
237-
enabled: true
238+
# enabled by matrixAuthentication.enabled, deprecated section
239+
# enabled: true
238240
issuer: NOT-CONFIGURED
239241
client_id: NOT-CONFIGURED
240242
client_auth_method: client_secret_basic
@@ -381,7 +383,7 @@ ingress:
381383
- "/_matrix/client/(r0|v3|unstable)/user_directory/search$"
382384
# experimental_features.msc3861.enabled set to true
383385
# TODO: decide if worker needed
384-
#msc3861Routes:
386+
#msc3861Routes / MAS additional routes:
385387
# - "/_synapse/admin/v2/users/[^/]+$"
386388
# - "/_synapse/admin/v1/username_available$"
387389
# - "/_synapse/admin/v1/users/[^/]+/_allow_cross_signing_replacement_without_uia$"

0 commit comments

Comments
 (0)