Skip to content

Commit ebd4ca4

Browse files
authored
Merge pull request #639 from element-hq/bbz/synapse-1.135.0
Upgrade to Synapse v1.135.0
2 parents 0013b48 + 23ea475 commit ebd4ca4

File tree

14 files changed

+386
-19
lines changed

14 files changed

+386
-19
lines changed

charts/matrix-stack/ci/fragments/synapse-all-workers-running.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ synapse:
1212
enabled: true
1313
client-reader:
1414
enabled: true
15+
device-lists:
16+
enabled: true
1517
encryption:
1618
enabled: true
1719
event-creator:

charts/matrix-stack/ci/synapse-worker-example-values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ synapse:
2727
enabled: true
2828
client-reader:
2929
enabled: true
30+
device-lists:
31+
enabled: true
3032
encryption:
3133
enabled: true
3234
event-creator:

charts/matrix-stack/configs/matrix-authentication-service/config.yaml.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ We don't want MAS to change data in Synapse
6464
*/}}
6565
{{- if and .syn2mas.enabled .syn2mas.dryRun }}
6666
kind: synapse_read_only
67+
{{- else }}
68+
{{- /* Switch to synapse_modern after a release or 2 so that we're more likely to have a Synapse that supports this API on redeploying MAS. */}}
69+
kind: synapse_legacy
6770
{{- end }}
6871
{{- end }}
6972

charts/matrix-stack/configs/synapse/path_map_file_get.tpl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,4 @@ workers instead if these requests path are under high load.
2626
^/\_matrix/client/(api/v1|r0|v3|unstable)/presence/
2727
*/}}
2828
^/_matrix/client/unstable/org.matrix.msc4140/delayed_events client-reader
29-
^/_matrix/client/(api/v1|r0|v3|unstable)/devices/ client-reader
30-
{{- end }}
31-
{{ if dig "sso-login" "enabled" false $root.Values.synapse.workers }}
32-
{{- if (and $root.Values.matrixAuthenticationService.enabled (not $root.Values.matrixAuthenticationService.preMigrationSynapseHandlesAuth)) }}
33-
^/_synapse/admin/v1/users/[^/]+/devices$ sso-login
34-
{{- end }}
3529
{{- end }}

charts/matrix-stack/source/synapse.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@
199199
"encryption": {
200200
"$ref": "file://synapse/single_worker.json"
201201
},
202+
"device-lists": {
203+
"$ref": "file://synapse/scalable_worker.json"
204+
},
202205
"event-creator": {
203206
"$ref": "file://synapse/scalable_worker.json"
204207
},

charts/matrix-stack/source/synapse.yaml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ workers:
5555
{{- synapse_sub_schema_values.single_worker('appservice') | indent(2) }}
5656
{{- synapse_sub_schema_values.single_worker('background') | indent(2) }}
5757
{{- synapse_sub_schema_values.scalable_worker('client-reader') | indent(2) }}
58+
{{- synapse_sub_schema_values.scalable_worker('device-lists') | indent(2) }}
5859
{{- synapse_sub_schema_values.single_worker('encryption') | indent(2) }}
5960
{{- synapse_sub_schema_values.scalable_worker('event-creator') | indent(2) }}
6061
{{- synapse_sub_schema_values.scalable_worker('event-persister') | indent(2) }}
@@ -83,7 +84,7 @@ logging:
8384
## levelOverrides:
8485
## synapse.util.caches.lrucache: WARNING
8586
levelOverrides: {}
86-
{{- sub_schema_values.image(registry='ghcr.io', repository='element-hq/synapse', tag='v1.134.0') }}
87+
{{- sub_schema_values.image(registry='ghcr.io', repository='element-hq/synapse', tag='v1.135.0') }}
8788
{{- sub_schema_values.ingress() }}
8889
{{- sub_schema_values.labels() }}
8990
{{- sub_schema_values.workloadAnnotations() }}

charts/matrix-stack/templates/synapse/_synapse_details.tpl

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
1010
{{ $hasHttp := (list "main"
1111
"account-data"
1212
"client-reader"
13+
"device-lists"
1314
"encryption"
1415
"event-creator"
1516
"federation-inbound"
@@ -35,6 +36,7 @@ hasHttp
3536
{{- with required "element-io.synapse.process.hasReplication missing context" .context -}}
3637
{{- $hasReplication := (list "main"
3738
"account-data"
39+
"device-lists"
3840
"encryption"
3941
"event-persister"
4042
"push-rules"
@@ -134,6 +136,8 @@ responsibleForMedia
134136
{{- with required "element-io.synapse.process.streamWriters missing context" .context -}}
135137
{{- if eq . "account-data" }}
136138
{{ list "account_data" | toJson }}
139+
{{- else if eq . "device-lists" }}
140+
{{ list "device_lists" | toJson }}
137141
{{- else if eq . "encryption" }}
138142
{{ list "to_device" | toJson }}
139143
{{- else if eq . "event-persister" }}
@@ -257,6 +261,7 @@ responsibleForMedia
257261
"^/_matrix/client/unstable/im.nheko.summary/summary/.*$"
258262
"^/_matrix/client/(r0|v3|unstable)/account/3pid$"
259263
"^/_matrix/client/(r0|v3|unstable)/account/whoami$"
264+
"^/_matrix/client/(r0|v3|unstable)/account/deactivate$"
260265
"^/_matrix/client/(r0|v3|unstable)/devices$"
261266
"^/_matrix/client/versions$"
262267
"^/_matrix/client/(api/v1|r0|v3|unstable)/voip/turnServer$"
@@ -293,14 +298,23 @@ responsibleForMedia
293298
{{ $workerPaths = concat $workerPaths (list
294299
"^/_matrix/client/(r0|v3|unstable)/keys/claim$"
295300
"^/_matrix/client/(r0|v3|unstable)/room_keys/"
301+
) }}
302+
{{- end }}
303+
304+
{{- if eq .workerType "device-lists" }}
305+
{{ $workerPaths = concat $workerPaths (list
306+
"^/_matrix/client/(r0|v3)/delete_devices$"
307+
"^/_matrix/client/(api/v1|r0|v3|unstable)/devices(/|$)"
296308
"^/_matrix/client/(r0|v3|unstable)/keys/upload"
309+
"^/_matrix/client/(api/v1|r0|v3|unstable)/keys/device_signing/upload$"
310+
"^/_matrix/client/(api/v1|r0|v3|unstable)/keys/signatures/upload$"
297311
) }}
298312
{{- end }}
299313
300314
{{- if eq .workerType "encryption" }}
301-
{{ $workerPaths = append $workerPaths
315+
{{ $workerPaths = concat $workerPaths (list
302316
"^/_matrix/client/(r0|v3|unstable)/sendToDevice/"
303-
}}
317+
) }}
304318
{{- end }}
305319
306320
{{- if eq .workerType "event-creator" }}
@@ -373,9 +387,9 @@ responsibleForMedia
373387
{{- end }}
374388
375389
{{- if eq .workerType "presence-writer" }}
376-
{{ $workerPaths = append $workerPaths
390+
{{ $workerPaths = concat $workerPaths (list
377391
"^/_matrix/client/(api/v1|r0|v3|unstable)/presence/"
378-
}}
392+
) }}
379393
{{- end }}
380394
381395
{{- if eq .workerType "push-rules" }}
@@ -392,9 +406,9 @@ responsibleForMedia
392406
{{- end }}
393407
394408
{{- if eq .workerType "sliding-sync" }}
395-
{{ $workerPaths = append $workerPaths
409+
{{ $workerPaths = concat $workerPaths (list
396410
"^/_matrix/client/unstable/org.matrix.simplified_msc3575/.*"
397-
}}
411+
) }}
398412
{{- end }}
399413
400414
{{- if eq .workerType "sso-login" }}
@@ -408,11 +422,12 @@ responsibleForMedia
408422
"^/_synapse/client/saml2/authn_response$"
409423
"^/_matrix/client/(api/v1|r0|v3|unstable)/login/cas/ticket$"
410424
) }}
411-
{{- if (and $root.Values.matrixAuthenticationService.enabled (not $root.Values.matrixAuthenticationService.preMigrationSynapseHandlesAuth)) }}
425+
{{- if include "element-io.matrix-authentication-service.readyToHandleAuth" (dict "root" $root) }}
412426
{{ $workerPaths = concat $workerPaths (list
413427
"^/_synapse/admin/v2/users/[^/]+$"
414428
"^/_synapse/admin/v1/username_available$"
415429
"^/_synapse/admin/v1/users/[^/]+/_allow_cross_signing_replacement_without_uia$"
430+
"^/_synapse/admin/v1/users/[^/]+/devices$"
416431
) }}
417432
{{- end }}
418433
{{- end }}
@@ -428,15 +443,15 @@ responsibleForMedia
428443
{{- end }}
429444
430445
{{- if eq .workerType "typing-persister" }}
431-
{{ $workerPaths = append $workerPaths
446+
{{ $workerPaths = concat $workerPaths (list
432447
"^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/typing"
433-
}}
448+
) }}
434449
{{- end }}
435450
436451
{{- if eq .workerType "user-dir" }}
437-
{{ $workerPaths = append $workerPaths
452+
{{ $workerPaths = concat $workerPaths (list
438453
"^/_matrix/client/(r0|v3|unstable)/user_directory/search$"
439-
}}
454+
) }}
440455
{{- end }}
441456
{{ $workerPaths | toJson }}
442457
{{- end }}

0 commit comments

Comments
 (0)