From 05c52387b7ceceea98c2a7de1f6fb5ab405fe981 Mon Sep 17 00:00:00 2001 From: Ben Banfield-Zanin Date: Mon, 24 Nov 2025 10:17:03 +0000 Subject: [PATCH] Be clearer about routing the delayed_events GET request --- charts/matrix-stack/configs/synapse/path_map_file_get.tpl | 3 --- charts/matrix-stack/templates/synapse/_synapse_details.tpl | 1 + newsfragments/889.changed.md | 5 +++++ 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 newsfragments/889.changed.md diff --git a/charts/matrix-stack/configs/synapse/path_map_file_get.tpl b/charts/matrix-stack/configs/synapse/path_map_file_get.tpl index 86a113de..922fcdc0 100644 --- a/charts/matrix-stack/configs/synapse/path_map_file_get.tpl +++ b/charts/matrix-stack/configs/synapse/path_map_file_get.tpl @@ -9,7 +9,6 @@ SPDX-License-Identifier: AGPL-3.0-only # A map file that is used in haproxy config to map from matrix paths to the # named backend. The format is: path_regexp backend_name -{{ if dig "client-reader" "enabled" false $root.Values.synapse.workers }} {{- /* The client-reader worker could also support the following GET requests when the related workers are not enabled. To keep things simple, we don't support @@ -26,5 +25,3 @@ workers instead if these requests path are under high load. # presence ^/\_matrix/client/(api/v1|r0|v3|unstable)/presence/ */}} -^/_matrix/client/unstable/org.matrix.msc4140/delayed_events client-reader -{{- end }} diff --git a/charts/matrix-stack/templates/synapse/_synapse_details.tpl b/charts/matrix-stack/templates/synapse/_synapse_details.tpl index 2c4f5abc..154c401b 100644 --- a/charts/matrix-stack/templates/synapse/_synapse_details.tpl +++ b/charts/matrix-stack/templates/synapse/_synapse_details.tpl @@ -228,6 +228,7 @@ responsibleForMedia "^/_matrix/client/(api/v1|r0|v3|unstable)/directory/room/.*$" "^/_matrix/client/(r0|v3|unstable)/capabilities$" "^/_matrix/client/(r0|v3|unstable)/notifications$" + "^/_matrix/client/unstable/org.matrix.msc4140/delayed_events$" "^/_synapse/admin/v1/rooms/[^/]+$" ) }} diff --git a/newsfragments/889.changed.md b/newsfragments/889.changed.md new file mode 100644 index 00000000..2bbc0365 --- /dev/null +++ b/newsfragments/889.changed.md @@ -0,0 +1,5 @@ +Better handle the only worker-capable delayed-events endpoint. + +`^/_matrix/client/unstable/org.matrix.msc4140/delayed_events$` only handles `GET` +so this is clearer rather than relying on `path_map_file_get.tpl`. This is a slight +divergence from the docs for now but should be addressed soon.