From 43f0c6fd627c27bd64c22bc6afcba50f47f6482f Mon Sep 17 00:00:00 2001 From: Devon Hudson Date: Tue, 5 Aug 2025 08:16:26 -0600 Subject: [PATCH] 1.136.0rc1 --- CHANGES.md | 64 +++++++++++++++++++++++++++++++ changelog.d/18474.misc | 1 - changelog.d/18514.feature | 1 - changelog.d/18540.feature | 1 - changelog.d/18574.misc | 1 - changelog.d/18580.misc | 1 - changelog.d/18585.feature | 1 - changelog.d/18656.misc | 1 - changelog.d/18670.misc | 1 - changelog.d/18686.feature | 1 - changelog.d/18696.bugfix | 1 - changelog.d/18700.doc | 1 - changelog.d/18714.misc | 1 - changelog.d/18715.misc | 1 - changelog.d/18718.misc | 1 - changelog.d/18722.feature | 1 - changelog.d/18723.misc | 1 - changelog.d/18724.misc | 1 - changelog.d/18725.misc | 1 - changelog.d/18726.bugfix | 1 - changelog.d/18727.misc | 1 - changelog.d/18728.misc | 1 - changelog.d/18729.misc | 1 - changelog.d/18730.misc | 1 - changelog.d/18733.misc | 1 - changelog.d/18736.misc | 1 - changelog.d/18737.removal | 1 - changelog.d/18748.misc | 1 - changelog.d/18750.bugfix | 1 - changelog.d/18753.misc | 1 - changelog.d/18755.misc | 1 - changelog.d/18757.misc | 1 - changelog.d/18759.feature | 1 - changelog.d/18760.doc.md | 1 - changelog.d/18761.doc.md | 1 - changelog.d/18763.bugfix | 1 - changelog.d/18772.misc | 1 - debian/changelog | 6 +++ pyproject.toml | 2 +- schema/synapse-config.schema.yaml | 2 +- 40 files changed, 72 insertions(+), 38 deletions(-) delete mode 100644 changelog.d/18474.misc delete mode 100644 changelog.d/18514.feature delete mode 100644 changelog.d/18540.feature delete mode 100644 changelog.d/18574.misc delete mode 100644 changelog.d/18580.misc delete mode 100644 changelog.d/18585.feature delete mode 100644 changelog.d/18656.misc delete mode 100644 changelog.d/18670.misc delete mode 100644 changelog.d/18686.feature delete mode 100644 changelog.d/18696.bugfix delete mode 100644 changelog.d/18700.doc delete mode 100644 changelog.d/18714.misc delete mode 100644 changelog.d/18715.misc delete mode 100644 changelog.d/18718.misc delete mode 100644 changelog.d/18722.feature delete mode 100644 changelog.d/18723.misc delete mode 100644 changelog.d/18724.misc delete mode 100644 changelog.d/18725.misc delete mode 100644 changelog.d/18726.bugfix delete mode 100644 changelog.d/18727.misc delete mode 100644 changelog.d/18728.misc delete mode 100644 changelog.d/18729.misc delete mode 100644 changelog.d/18730.misc delete mode 100644 changelog.d/18733.misc delete mode 100644 changelog.d/18736.misc delete mode 100644 changelog.d/18737.removal delete mode 100644 changelog.d/18748.misc delete mode 100644 changelog.d/18750.bugfix delete mode 100644 changelog.d/18753.misc delete mode 100644 changelog.d/18755.misc delete mode 100644 changelog.d/18757.misc delete mode 100644 changelog.d/18759.feature delete mode 100644 changelog.d/18760.doc.md delete mode 100644 changelog.d/18761.doc.md delete mode 100644 changelog.d/18763.bugfix delete mode 100644 changelog.d/18772.misc diff --git a/CHANGES.md b/CHANGES.md index 4b59032a88..9b2ed1026b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,67 @@ +# Synapse 1.136.0rc1 (2025-08-05) + +### Features + +- Add configurable rate limiting for the creation of rooms. ([\#18514](https://github.com/element-hq/synapse/issues/18514)) +- Add support for [MSC4293](https://github.com/matrix-org/matrix-spec-proposals/pull/4293) - Redact on Kick/Ban. ([\#18540](https://github.com/element-hq/synapse/issues/18540)) +- When admins enable themselves to see soft-failed events, they will also see if the cause is due to the policy server flagging them as spam via `unsigned`. ([\#18585](https://github.com/element-hq/synapse/issues/18585)) +- Add ability to configure forward/outbound proxy via homeserver config instead of environment variables. See `http_proxy`, `https_proxy`, `no_proxy_hosts`. ([\#18686](https://github.com/element-hq/synapse/issues/18686)) +- Advertise experimental support for [MSC4306](https://github.com/matrix-org/matrix-spec-proposals/pull/4306) (Thread Subscriptions) through `/_matrix/clients/versions` if enabled. ([\#18722](https://github.com/element-hq/synapse/issues/18722)) +- Stable support for delegating authentication to [Matrix Authentication Service](https://github.com/element-hq/matrix-authentication-service/). ([\#18759](https://github.com/element-hq/synapse/issues/18759)) + +### Bugfixes + +- Allow return code 403 (allowed by C2S Spec since v1.2) when fetching profiles via federation. ([\#18696](https://github.com/element-hq/synapse/issues/18696)) +- Register the MSC4306 (Thread Subscriptions) endpoints in the CS API when the experimental feature is enabled. ([\#18726](https://github.com/element-hq/synapse/issues/18726)) +- Fix a long-standing bug where suspended users could not have server notices sent to them (a 403 was returned to the admin). ([\#18750](https://github.com/element-hq/synapse/issues/18750)) +- Fix an issue that could cause logcontexts to be lost on rate-limited requests. Found by @realtyem. ([\#18763](https://github.com/element-hq/synapse/issues/18763)) + +### Improved Documentation + +- Minor improvements to README. ([\#18700](https://github.com/element-hq/synapse/issues/18700)) +- Document that there can be multiple workers handling the `receipts` stream. ([\#18760](https://github.com/element-hq/synapse/issues/18760)) +- Improve worker documentation for some device paths. ([\#18761](https://github.com/element-hq/synapse/issues/18761)) + +### Deprecations and Removals + +- Deprecate `run_as_background_process` exported as part of the module API interface in favor of `ModuleApi.run_as_background_process`. See the relevant section in the upgrade notes for more information. ([\#18737](https://github.com/element-hq/synapse/issues/18737)) + +### Internal Changes + +- Add debug logging for HMAC digest verification failures when using the admin API to register users. ([\#18474](https://github.com/element-hq/synapse/issues/18474)) +- Speed up upgrading a room with large numbers of banned users. ([\#18574](https://github.com/element-hq/synapse/issues/18574)) +- Fix config documentation generation script on Windows by enforcing UTF-8. ([\#18580](https://github.com/element-hq/synapse/issues/18580)) +- Refactor `Counter` metrics to be homeserver-scoped. ([\#18656](https://github.com/element-hq/synapse/issues/18656)) +- Refactor background process metrics to be homeserver-scoped. ([\#18670](https://github.com/element-hq/synapse/issues/18670)) +- Refactor `LaterGauge` metrics to be homeserver-scoped. ([\#18714](https://github.com/element-hq/synapse/issues/18714)) +- Refactor `GaugeBucketCollector` metrics to be homeserver-scoped. ([\#18715](https://github.com/element-hq/synapse/issues/18715)) +- Reduce database usage in Sliding Sync by not querying for background update completion after the update is known to be complete. ([\#18718](https://github.com/element-hq/synapse/issues/18718)) +- Improve order of validation and ratelimiting in room creation. ([\#18723](https://github.com/element-hq/synapse/issues/18723)) +- Refactor `Histogram` metrics to be homeserver-scoped. ([\#18724](https://github.com/element-hq/synapse/issues/18724), [\#18753](https://github.com/element-hq/synapse/issues/18753)) +- Refactor `Gauge` metrics to be homeserver-scoped. ([\#18725](https://github.com/element-hq/synapse/issues/18725)) +- Bump minimum version bound on Twisted to 21.2.0. ([\#18727](https://github.com/element-hq/synapse/issues/18727), [\#18729](https://github.com/element-hq/synapse/issues/18729)) +- Use `twisted.internet.testing` module in tests instead of deprecated `twisted.test.proto_helpers`. ([\#18728](https://github.com/element-hq/synapse/issues/18728)) +- Remove obsolete `/send_event` replication endpoint. ([\#18730](https://github.com/element-hq/synapse/issues/18730)) +- Update metrics linting to be able to handle custom metrics. ([\#18733](https://github.com/element-hq/synapse/issues/18733)) +- Work around `twisted.protocols.amp.TooLong` error by reducing logging in some tests. ([\#18736](https://github.com/element-hq/synapse/issues/18736)) +- Refactor cache metrics to be homeserver-scoped. ([\#18748](https://github.com/element-hq/synapse/issues/18748)) +- Prevent "Move labelled issues to correct projects" GitHub Actions workflow from failing when an issue is already on the project board. ([\#18755](https://github.com/element-hq/synapse/issues/18755)) +- Bump minimum supported Rust version (MSRV) to 1.82.0. Missed in [#18553](https://github.com/element-hq/synapse/pull/18553) (released in Synapse 1.134.0). ([\#18757](https://github.com/element-hq/synapse/issues/18757)) +- Make `Clock.sleep(..)` return a coroutine, so that mypy can catch places where we don't await on it. ([\#18772](https://github.com/element-hq/synapse/issues/18772)) + + + +### Updates to locked dependencies + +* Bump gitpython from 3.1.44 to 3.1.45. ([\#18743](https://github.com/element-hq/synapse/issues/18743)) +* Bump mypy-zope from 1.0.12 to 1.0.13. ([\#18744](https://github.com/element-hq/synapse/issues/18744)) +* Bump phonenumbers from 9.0.9 to 9.0.10. ([\#18741](https://github.com/element-hq/synapse/issues/18741)) +* Bump ruff from 0.12.4 to 0.12.5. ([\#18742](https://github.com/element-hq/synapse/issues/18742)) +* Bump sentry-sdk from 2.32.0 to 2.33.2. ([\#18745](https://github.com/element-hq/synapse/issues/18745)) +* Bump tokio from 1.46.1 to 1.47.0. ([\#18740](https://github.com/element-hq/synapse/issues/18740)) +* Bump types-jsonschema from 4.24.0.20250708 to 4.25.0.20250720. ([\#18703](https://github.com/element-hq/synapse/issues/18703)) +* Bump types-psycopg2 from 2.9.21.20250516 to 2.9.21.20250718. ([\#18706](https://github.com/element-hq/synapse/issues/18706)) + # Synapse 1.135.0 (2025-08-01) No significant changes since 1.135.0rc2. diff --git a/changelog.d/18474.misc b/changelog.d/18474.misc deleted file mode 100644 index b5897e1360..0000000000 --- a/changelog.d/18474.misc +++ /dev/null @@ -1 +0,0 @@ -Add debug logging for HMAC digest verification failures when using the admin API to register users. diff --git a/changelog.d/18514.feature b/changelog.d/18514.feature deleted file mode 100644 index 2bdac2d076..0000000000 --- a/changelog.d/18514.feature +++ /dev/null @@ -1 +0,0 @@ -Add configurable rate limiting for the creation of rooms. \ No newline at end of file diff --git a/changelog.d/18540.feature b/changelog.d/18540.feature deleted file mode 100644 index 2f1910c9e3..0000000000 --- a/changelog.d/18540.feature +++ /dev/null @@ -1 +0,0 @@ -Add support for [MSC4293](https://github.com/matrix-org/matrix-spec-proposals/pull/4293) - Redact on Kick/Ban. \ No newline at end of file diff --git a/changelog.d/18574.misc b/changelog.d/18574.misc deleted file mode 100644 index 5b223f5a93..0000000000 --- a/changelog.d/18574.misc +++ /dev/null @@ -1 +0,0 @@ -Speed up upgrading a room with large numbers of banned users. diff --git a/changelog.d/18580.misc b/changelog.d/18580.misc deleted file mode 100644 index 8a36cd5e5e..0000000000 --- a/changelog.d/18580.misc +++ /dev/null @@ -1 +0,0 @@ -Fix config documentation generation script on Windows by enforcing UTF-8. \ No newline at end of file diff --git a/changelog.d/18585.feature b/changelog.d/18585.feature deleted file mode 100644 index 18be189ab0..0000000000 --- a/changelog.d/18585.feature +++ /dev/null @@ -1 +0,0 @@ -When admins enable themselves to see soft-failed events, they will also see if the cause is due to the policy server flagging them as spam via `unsigned`. \ No newline at end of file diff --git a/changelog.d/18656.misc b/changelog.d/18656.misc deleted file mode 100644 index 44323a3a81..0000000000 --- a/changelog.d/18656.misc +++ /dev/null @@ -1 +0,0 @@ -Refactor `Counter` metrics to be homeserver-scoped. diff --git a/changelog.d/18670.misc b/changelog.d/18670.misc deleted file mode 100644 index 58b140a76e..0000000000 --- a/changelog.d/18670.misc +++ /dev/null @@ -1 +0,0 @@ -Refactor background process metrics to be homeserver-scoped. diff --git a/changelog.d/18686.feature b/changelog.d/18686.feature deleted file mode 100644 index 648529d6d4..0000000000 --- a/changelog.d/18686.feature +++ /dev/null @@ -1 +0,0 @@ -Add ability to configure forward/outbound proxy via homeserver config instead of environment variables. See `http_proxy`, `https_proxy`, `no_proxy_hosts`. diff --git a/changelog.d/18696.bugfix b/changelog.d/18696.bugfix deleted file mode 100644 index 8a6ec2814c..0000000000 --- a/changelog.d/18696.bugfix +++ /dev/null @@ -1 +0,0 @@ -Allow return code 403 (allowed by C2S Spec since v1.2) when fetching profiles via federation. diff --git a/changelog.d/18700.doc b/changelog.d/18700.doc deleted file mode 100644 index 4b1f868c84..0000000000 --- a/changelog.d/18700.doc +++ /dev/null @@ -1 +0,0 @@ -Minor improvements to README. diff --git a/changelog.d/18714.misc b/changelog.d/18714.misc deleted file mode 100644 index 0421264655..0000000000 --- a/changelog.d/18714.misc +++ /dev/null @@ -1 +0,0 @@ -Refactor `LaterGauge` metrics to be homeserver-scoped. diff --git a/changelog.d/18715.misc b/changelog.d/18715.misc deleted file mode 100644 index afb85ef014..0000000000 --- a/changelog.d/18715.misc +++ /dev/null @@ -1 +0,0 @@ -Refactor `GaugeBucketCollector` metrics to be homeserver-scoped. diff --git a/changelog.d/18718.misc b/changelog.d/18718.misc deleted file mode 100644 index 609e05b127..0000000000 --- a/changelog.d/18718.misc +++ /dev/null @@ -1 +0,0 @@ -Reduce database usage in Sliding Sync by not querying for background update completion after the update is known to be complete. \ No newline at end of file diff --git a/changelog.d/18722.feature b/changelog.d/18722.feature deleted file mode 100644 index 4a3cf4839a..0000000000 --- a/changelog.d/18722.feature +++ /dev/null @@ -1 +0,0 @@ -Advertise experimental support for [MSC4306](https://github.com/matrix-org/matrix-spec-proposals/pull/4306) through `/_matrix/clients/versions` if enabled. diff --git a/changelog.d/18723.misc b/changelog.d/18723.misc deleted file mode 100644 index 90d9ad0716..0000000000 --- a/changelog.d/18723.misc +++ /dev/null @@ -1 +0,0 @@ -Improve order of validation and ratelimiting in room creation. diff --git a/changelog.d/18724.misc b/changelog.d/18724.misc deleted file mode 100644 index 21465b19fe..0000000000 --- a/changelog.d/18724.misc +++ /dev/null @@ -1 +0,0 @@ -Refactor `Histogram` metrics to be homeserver-scoped. diff --git a/changelog.d/18725.misc b/changelog.d/18725.misc deleted file mode 100644 index 7fa5b47b89..0000000000 --- a/changelog.d/18725.misc +++ /dev/null @@ -1 +0,0 @@ -Refactor `Gauge` metrics to be homeserver-scoped. diff --git a/changelog.d/18726.bugfix b/changelog.d/18726.bugfix deleted file mode 100644 index 6195467482..0000000000 --- a/changelog.d/18726.bugfix +++ /dev/null @@ -1 +0,0 @@ -Register the MSC4306 endpoints in the CS API when the experimental feature is enabled. diff --git a/changelog.d/18727.misc b/changelog.d/18727.misc deleted file mode 100644 index 884ec72a2f..0000000000 --- a/changelog.d/18727.misc +++ /dev/null @@ -1 +0,0 @@ -Bump minimum version bound on Twisted to 21.2.0. \ No newline at end of file diff --git a/changelog.d/18728.misc b/changelog.d/18728.misc deleted file mode 100644 index 5901ab4b41..0000000000 --- a/changelog.d/18728.misc +++ /dev/null @@ -1 +0,0 @@ -Use `twisted.internet.testing` module in tests instead of deprecated `twisted.test.proto_helpers`. \ No newline at end of file diff --git a/changelog.d/18729.misc b/changelog.d/18729.misc deleted file mode 100644 index 884ec72a2f..0000000000 --- a/changelog.d/18729.misc +++ /dev/null @@ -1 +0,0 @@ -Bump minimum version bound on Twisted to 21.2.0. \ No newline at end of file diff --git a/changelog.d/18730.misc b/changelog.d/18730.misc deleted file mode 100644 index 2b64d073cc..0000000000 --- a/changelog.d/18730.misc +++ /dev/null @@ -1 +0,0 @@ -Remove obsolete `/send_event` replication endpoint. \ No newline at end of file diff --git a/changelog.d/18733.misc b/changelog.d/18733.misc deleted file mode 100644 index f38647d4c6..0000000000 --- a/changelog.d/18733.misc +++ /dev/null @@ -1 +0,0 @@ -Update metrics linting to be able to handle custom metrics. diff --git a/changelog.d/18736.misc b/changelog.d/18736.misc deleted file mode 100644 index f9a66d4652..0000000000 --- a/changelog.d/18736.misc +++ /dev/null @@ -1 +0,0 @@ -Work around `twisted.protocols.amp.TooLong` error by reducing logging in some tests. diff --git a/changelog.d/18737.removal b/changelog.d/18737.removal deleted file mode 100644 index 7b45600c3a..0000000000 --- a/changelog.d/18737.removal +++ /dev/null @@ -1 +0,0 @@ -Deprecate `run_as_background_process` exported as part of the module API interface in favor of `ModuleApi.run_as_background_process`. See the relevant section in the upgrade notes for more information. diff --git a/changelog.d/18748.misc b/changelog.d/18748.misc deleted file mode 100644 index c06fb23af5..0000000000 --- a/changelog.d/18748.misc +++ /dev/null @@ -1 +0,0 @@ -Refactor cache metrics to be homeserver-scoped. diff --git a/changelog.d/18750.bugfix b/changelog.d/18750.bugfix deleted file mode 100644 index d1543fa3f4..0000000000 --- a/changelog.d/18750.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix a long-standing bug where suspended users could not have server notices sent to them (a 403 was returned to the admin). \ No newline at end of file diff --git a/changelog.d/18753.misc b/changelog.d/18753.misc deleted file mode 100644 index 21465b19fe..0000000000 --- a/changelog.d/18753.misc +++ /dev/null @@ -1 +0,0 @@ -Refactor `Histogram` metrics to be homeserver-scoped. diff --git a/changelog.d/18755.misc b/changelog.d/18755.misc deleted file mode 100644 index bbbc753d7b..0000000000 --- a/changelog.d/18755.misc +++ /dev/null @@ -1 +0,0 @@ -Prevent "Move labelled issues to correct projects" GitHub Actions workflow from failing when an issue is already on the project board. \ No newline at end of file diff --git a/changelog.d/18757.misc b/changelog.d/18757.misc deleted file mode 100644 index 287f32dbc1..0000000000 --- a/changelog.d/18757.misc +++ /dev/null @@ -1 +0,0 @@ -Bump minimum supported Rust version (MSRV) to 1.82.0. Missed in [#18553](https://github.com/element-hq/synapse/pull/18553) (released in Synapse 1.134.0). \ No newline at end of file diff --git a/changelog.d/18759.feature b/changelog.d/18759.feature deleted file mode 100644 index 07d6c255fc..0000000000 --- a/changelog.d/18759.feature +++ /dev/null @@ -1 +0,0 @@ -Stable support for delegating authentication to [Matrix Authentication Service](https://github.com/element-hq/matrix-authentication-service/). diff --git a/changelog.d/18760.doc.md b/changelog.d/18760.doc.md deleted file mode 100644 index b2d505bcb6..0000000000 --- a/changelog.d/18760.doc.md +++ /dev/null @@ -1 +0,0 @@ -Document that there can be multiple workers handling the `receipts` stream. diff --git a/changelog.d/18761.doc.md b/changelog.d/18761.doc.md deleted file mode 100644 index 0e34e8404b..0000000000 --- a/changelog.d/18761.doc.md +++ /dev/null @@ -1 +0,0 @@ -Improve worker documentation for some device paths. diff --git a/changelog.d/18763.bugfix b/changelog.d/18763.bugfix deleted file mode 100644 index 97bb50376a..0000000000 --- a/changelog.d/18763.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix an issue that could cause logcontexts to be lost on rate-limited requests. Found by @realtyem. \ No newline at end of file diff --git a/changelog.d/18772.misc b/changelog.d/18772.misc deleted file mode 100644 index 39ceacfd7c..0000000000 --- a/changelog.d/18772.misc +++ /dev/null @@ -1 +0,0 @@ -Make `Clock.sleep(..)` return a coroutine, so that mypy can catch places where we don't await on it. diff --git a/debian/changelog b/debian/changelog index cf2840ed1e..3a6b5b212d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +matrix-synapse-py3 (1.136.0~rc1) stable; urgency=medium + + * New Synapse release 1.136.0rc1. + + -- Synapse Packaging team Tue, 05 Aug 2025 08:13:30 -0600 + matrix-synapse-py3 (1.135.0) stable; urgency=medium * New Synapse release 1.135.0. diff --git a/pyproject.toml b/pyproject.toml index 7b8df01e40..b270edb6be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -101,7 +101,7 @@ module-name = "synapse.synapse_rust" [tool.poetry] name = "matrix-synapse" -version = "1.135.0" +version = "1.136.0rc1" description = "Homeserver for the Matrix decentralised comms protocol" authors = ["Matrix.org Team and Contributors "] license = "AGPL-3.0-or-later" diff --git a/schema/synapse-config.schema.yaml b/schema/synapse-config.schema.yaml index 865c85fdbe..af59ec17e7 100644 --- a/schema/synapse-config.schema.yaml +++ b/schema/synapse-config.schema.yaml @@ -1,5 +1,5 @@ $schema: https://element-hq.github.io/synapse/latest/schema/v1/meta.schema.json -$id: https://element-hq.github.io/synapse/schema/synapse/v1.135/synapse-config.schema.json +$id: https://element-hq.github.io/synapse/schema/synapse/v1.136/synapse-config.schema.json type: object properties: modules: