Skip to content

Commit cd49a16

Browse files
committed
Merge tag 'v1.50.0rc2'
Synapse 1.50.0rc2 (2022-01-14) ============================== This release candidate fixes a federation-breaking regression introduced in Synapse 1.50.0rc1. Please note that we now only support Python 3.7+ and PostgreSQL 10+ (if applicable), because Python 3.6 and PostgreSQL 9.6 have reached end-of-life. Bugfixes -------- - Fix a bug introduced in Synapse v1.0.0 whereby some device list updates would not be sent to remote homeservers if there were too many to send at once. ([\matrix-org#11729](matrix-org#11729)) - Fix a bug introduced in Synapse v1.50.0rc1 whereby outbound federation could fail because too many EDUs were produced for device updates. ([\matrix-org#11730](matrix-org#11730)) Improved Documentation ---------------------- - Document that now the minimum supported PostgreSQL version is 10. ([\matrix-org#11725](matrix-org#11725)) Internal Changes ---------------- - Fix a typechecker problem related to our (ab)use of `nacl.signing.SigningKey`s. ([\matrix-org#11714](matrix-org#11714))
2 parents 44f1a05 + 422e33f commit cd49a16

File tree

208 files changed

+5186
-2767
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+5186
-2767
lines changed

.github/workflows/tests.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
runs-on: ubuntu-latest
7777
strategy:
7878
matrix:
79-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
79+
python-version: ["3.7", "3.8", "3.9", "3.10"]
8080
database: ["sqlite"]
8181
toxenv: ["py"]
8282
include:
@@ -85,9 +85,9 @@ jobs:
8585
toxenv: "py-noextras"
8686

8787
# Oldest Python with PostgreSQL
88-
- python-version: "3.6"
88+
- python-version: "3.7"
8989
database: "postgres"
90-
postgres-version: "9.6"
90+
postgres-version: "10"
9191
toxenv: "py"
9292

9393
# Newest Python with newest PostgreSQL
@@ -167,7 +167,7 @@ jobs:
167167
runs-on: ubuntu-latest
168168
strategy:
169169
matrix:
170-
python-version: ["pypy-3.6"]
170+
python-version: ["pypy-3.7"]
171171

172172
steps:
173173
- uses: actions/checkout@v2
@@ -291,8 +291,8 @@ jobs:
291291
strategy:
292292
matrix:
293293
include:
294-
- python-version: "3.6"
295-
postgres-version: "9.6"
294+
- python-version: "3.7"
295+
postgres-version: "10"
296296

297297
- python-version: "3.10"
298298
postgres-version: "14"

CHANGES.md

+114
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,117 @@
1+
Synapse 1.50.0rc2 (2022-01-14)
2+
==============================
3+
4+
This release candidate fixes a federation-breaking regression introduced in Synapse 1.50.0rc1.
5+
6+
Please note that we now only support Python 3.7+ and PostgreSQL 10+ (if applicable), because Python 3.6 and PostgreSQL 9.6 have reached end-of-life.
7+
8+
9+
Bugfixes
10+
--------
11+
12+
- Fix a bug introduced in Synapse v1.0.0 whereby some device list updates would not be sent to remote homeservers if there were too many to send at once. ([\#11729](https://github.com/matrix-org/synapse/issues/11729))
13+
- Fix a bug introduced in Synapse v1.50.0rc1 whereby outbound federation could fail because too many EDUs were produced for device updates. ([\#11730](https://github.com/matrix-org/synapse/issues/11730))
14+
15+
16+
Improved Documentation
17+
----------------------
18+
19+
- Document that now the minimum supported PostgreSQL version is 10. ([\#11725](https://github.com/matrix-org/synapse/issues/11725))
20+
21+
22+
Internal Changes
23+
----------------
24+
25+
- Fix a typechecker problem related to our (ab)use of `nacl.signing.SigningKey`s. ([\#11714](https://github.com/matrix-org/synapse/issues/11714))
26+
27+
28+
Synapse 1.50.0rc1 (2022-01-05)
29+
==============================
30+
31+
32+
Features
33+
--------
34+
35+
- Allow guests to send state events per [MSC3419](https://github.com/matrix-org/matrix-doc/pull/3419). ([\#11378](https://github.com/matrix-org/synapse/issues/11378))
36+
- Add experimental support for part of [MSC3202](https://github.com/matrix-org/matrix-doc/pull/3202): allowing application services to masquerade as specific devices. ([\#11538](https://github.com/matrix-org/synapse/issues/11538))
37+
- Add admin API to get users' account data. ([\#11664](https://github.com/matrix-org/synapse/issues/11664))
38+
- Include the room topic in the stripped state included with invites and knocking. ([\#11666](https://github.com/matrix-org/synapse/issues/11666))
39+
- Send and handle cross-signing messages using the stable prefix. ([\#10520](https://github.com/matrix-org/synapse/issues/10520))
40+
- Support unprefixed versions of fallback key property names. ([\#11541](https://github.com/matrix-org/synapse/issues/11541))
41+
42+
43+
Bugfixes
44+
--------
45+
46+
- Fix a long-standing bug where relations from other rooms could be included in the bundled aggregations of an event. ([\#11516](https://github.com/matrix-org/synapse/issues/11516))
47+
- Fix a long-standing bug which could cause `AssertionError`s to be written to the log when Synapse was restarted after purging events from the database. ([\#11536](https://github.com/matrix-org/synapse/issues/11536), [\#11642](https://github.com/matrix-org/synapse/issues/11642))
48+
- Fix a bug introduced in Synapse 1.17.0 where a pusher created for an email with capital letters would fail to be created. ([\#11547](https://github.com/matrix-org/synapse/issues/11547))
49+
- Fix a long-standing bug where responses included bundled aggregations when they should not, per [MSC2675](https://github.com/matrix-org/matrix-doc/pull/2675). ([\#11592](https://github.com/matrix-org/synapse/issues/11592), [\#11623](https://github.com/matrix-org/synapse/issues/11623))
50+
- Fix a long-standing bug that some unknown endpoints would return HTML error pages instead of JSON `M_UNRECOGNIZED` errors. ([\#11602](https://github.com/matrix-org/synapse/issues/11602))
51+
- Fix a bug introduced in Synapse 1.19.3 which could sometimes cause `AssertionError`s when backfilling rooms over federation. ([\#11632](https://github.com/matrix-org/synapse/issues/11632))
52+
53+
54+
Improved Documentation
55+
----------------------
56+
57+
- Update Synapse install command for FreeBSD as the package is now prefixed with `py38`. Contributed by @itchychips. ([\#11267](https://github.com/matrix-org/synapse/issues/11267))
58+
- Document the usage of refresh tokens. ([\#11427](https://github.com/matrix-org/synapse/issues/11427))
59+
- Add details for how to configure a TURN server when behind a NAT. Contibuted by @AndrewFerr. ([\#11553](https://github.com/matrix-org/synapse/issues/11553))
60+
- Add references for using Postgres to the Docker documentation. ([\#11640](https://github.com/matrix-org/synapse/issues/11640))
61+
- Fix the documentation link in newly-generated configuration files. ([\#11678](https://github.com/matrix-org/synapse/issues/11678))
62+
- Correct the documentation for `nginx` to use a case-sensitive url pattern. Fixes an error introduced in v1.21.0. ([\#11680](https://github.com/matrix-org/synapse/issues/11680))
63+
- Clarify SSO mapping provider documentation by writing `def` or `async def` before the names of methods, as appropriate. ([\#11681](https://github.com/matrix-org/synapse/issues/11681))
64+
65+
66+
Deprecations and Removals
67+
-------------------------
68+
69+
- Replace `mock` package by its standard library version. ([\#11588](https://github.com/matrix-org/synapse/issues/11588))
70+
- Drop support for Python 3.6 and Ubuntu 18.04. ([\#11633](https://github.com/matrix-org/synapse/issues/11633))
71+
72+
73+
Internal Changes
74+
----------------
75+
76+
- Allow specific, experimental events to be created without `prev_events`. Used by [MSC2716](https://github.com/matrix-org/matrix-doc/pull/2716). ([\#11243](https://github.com/matrix-org/synapse/issues/11243))
77+
- A test helper (`wait_for_background_updates`) no longer depends on classes defining a `store` property. ([\#11331](https://github.com/matrix-org/synapse/issues/11331))
78+
- Add type hints to `synapse.appservice`. ([\#11360](https://github.com/matrix-org/synapse/issues/11360))
79+
- Add missing type hints to `synapse.config` module. ([\#11480](https://github.com/matrix-org/synapse/issues/11480))
80+
- Add test to ensure we share the same `state_group` across the whole historical batch when using the [MSC2716](https://github.com/matrix-org/matrix-doc/pull/2716) `/batch_send` endpoint. ([\#11487](https://github.com/matrix-org/synapse/issues/11487))
81+
- Refactor `tests.util.setup_test_homeserver` and `tests.server.setup_test_homeserver`. ([\#11503](https://github.com/matrix-org/synapse/issues/11503))
82+
- Move `glob_to_regex` and `re_word_boundary` to `matrix-python-common`. ([\#11505](https://github.com/matrix-org/synapse/issues/11505), [\#11687](https://github.com/matrix-org/synapse/issues/11687))
83+
- Use `HTTPStatus` constants in place of literals in `tests.rest.client.test_auth`. ([\#11520](https://github.com/matrix-org/synapse/issues/11520))
84+
- Add a receipt types constant for `m.read`. ([\#11531](https://github.com/matrix-org/synapse/issues/11531))
85+
- Clean up `synapse.rest.admin`. ([\#11535](https://github.com/matrix-org/synapse/issues/11535))
86+
- Add missing `errcode` to `parse_string` and `parse_boolean`. ([\#11542](https://github.com/matrix-org/synapse/issues/11542))
87+
- Use `HTTPStatus` constants in place of literals in `synapse.http`. ([\#11543](https://github.com/matrix-org/synapse/issues/11543))
88+
- Add missing type hints to storage classes. ([\#11546](https://github.com/matrix-org/synapse/issues/11546), [\#11549](https://github.com/matrix-org/synapse/issues/11549), [\#11551](https://github.com/matrix-org/synapse/issues/11551), [\#11555](https://github.com/matrix-org/synapse/issues/11555), [\#11575](https://github.com/matrix-org/synapse/issues/11575), [\#11589](https://github.com/matrix-org/synapse/issues/11589), [\#11594](https://github.com/matrix-org/synapse/issues/11594), [\#11652](https://github.com/matrix-org/synapse/issues/11652), [\#11653](https://github.com/matrix-org/synapse/issues/11653), [\#11654](https://github.com/matrix-org/synapse/issues/11654), [\#11657](https://github.com/matrix-org/synapse/issues/11657))
89+
- Fix an inaccurate and misleading comment in the `/sync` code. ([\#11550](https://github.com/matrix-org/synapse/issues/11550))
90+
- Add missing type hints to `synapse.logging.context`. ([\#11556](https://github.com/matrix-org/synapse/issues/11556))
91+
- Stop populating unused database column `state_events.prev_state`. ([\#11558](https://github.com/matrix-org/synapse/issues/11558))
92+
- Minor efficiency improvements in event persistence. ([\#11560](https://github.com/matrix-org/synapse/issues/11560))
93+
- Add some safety checks that storage functions are used correctly. ([\#11564](https://github.com/matrix-org/synapse/issues/11564), [\#11580](https://github.com/matrix-org/synapse/issues/11580))
94+
- Make `get_device` return `None` if the device doesn't exist rather than raising an exception. ([\#11565](https://github.com/matrix-org/synapse/issues/11565))
95+
- Split the HTML parsing code from the URL preview resource code. ([\#11566](https://github.com/matrix-org/synapse/issues/11566))
96+
- Remove redundant `COALESCE()`s around `COUNT()`s in database queries. ([\#11570](https://github.com/matrix-org/synapse/issues/11570))
97+
- Add missing type hints to `synapse.http`. ([\#11571](https://github.com/matrix-org/synapse/issues/11571))
98+
- Add [MSC2716](https://github.com/matrix-org/matrix-doc/pull/2716) and [MSC3030](https://github.com/matrix-org/matrix-doc/pull/3030) to `/versions` -> `unstable_features` to detect server support. ([\#11582](https://github.com/matrix-org/synapse/issues/11582))
99+
- Add type hints to `synapse/tests/rest/admin`. ([\#11590](https://github.com/matrix-org/synapse/issues/11590))
100+
- Drop end-of-life Python 3.6 and Postgres 9.6 from CI. ([\#11595](https://github.com/matrix-org/synapse/issues/11595))
101+
- Update black version and run it on all the files. ([\#11596](https://github.com/matrix-org/synapse/issues/11596))
102+
- Add opentracing type stubs and fix associated mypy errors. ([\#11603](https://github.com/matrix-org/synapse/issues/11603), [\#11622](https://github.com/matrix-org/synapse/issues/11622))
103+
- Improve OpenTracing support for requests which use a `ResponseCache`. ([\#11607](https://github.com/matrix-org/synapse/issues/11607))
104+
- Improve OpenTracing support for incoming HTTP requests. ([\#11618](https://github.com/matrix-org/synapse/issues/11618))
105+
- A number of improvements to opentracing support. ([\#11619](https://github.com/matrix-org/synapse/issues/11619))
106+
- Refactor the way that the `outlier` flag is set on events received over federation. ([\#11634](https://github.com/matrix-org/synapse/issues/11634))
107+
- Improve the error messages from `get_create_event_for_room`. ([\#11638](https://github.com/matrix-org/synapse/issues/11638))
108+
- Remove redundant `get_current_events_token` method. ([\#11643](https://github.com/matrix-org/synapse/issues/11643))
109+
- Convert `namedtuples` to `attrs`. ([\#11665](https://github.com/matrix-org/synapse/issues/11665), [\#11574](https://github.com/matrix-org/synapse/issues/11574))
110+
- Update the `/capabilities` response to include whether support for [MSC3440](https://github.com/matrix-org/matrix-doc/pull/3440) is available. ([\#11690](https://github.com/matrix-org/synapse/issues/11690))
111+
- Send the `Accept` header in HTTP requests made using `SimpleHttpClient.get_json`. ([\#11677](https://github.com/matrix-org/synapse/issues/11677))
112+
- Work around Mjolnir compatibility issue by adding an import for `glob_to_regex` in `synapse.util`, where it moved from. ([\#11696](https://github.com/matrix-org/synapse/issues/11696))
113+
114+
1115
Synapse 1.49.2 (2021-12-21)
2116
===========================
3117

contrib/docker/docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ services:
1414
# failure
1515
restart: unless-stopped
1616
# See the readme for a full documentation of the environment settings
17+
# NOTE: You must edit homeserver.yaml to use postgres, it defaults to sqlite
1718
environment:
1819
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
1920
volumes:

debian/changelog

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
matrix-synapse-py3 (1.50.0~rc2) stable; urgency=medium
2+
3+
* New synapse release 1.50.0~rc2.
4+
5+
-- Synapse Packaging team <[email protected]> Fri, 14 Jan 2022 11:18:06 +0000
6+
7+
matrix-synapse-py3 (1.50.0~rc1) stable; urgency=medium
8+
9+
* New synapse release 1.50.0~rc1.
10+
11+
-- Synapse Packaging team <[email protected]> Wed, 05 Jan 2022 12:36:17 +0000
12+
113
matrix-synapse-py3 (1.49.2) stable; urgency=medium
214

315
* New synapse release 1.49.2.

docker/Dockerfile-dhvirtualenv

+4-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ARG distro=""
1616
### Stage 0: build a dh-virtualenv
1717
###
1818

19-
# This is only really needed on bionic and focal, since other distributions we
19+
# This is only really needed on focal, since other distributions we
2020
# care about have a recent version of dh-virtualenv by default. Unfortunately,
2121
# it looks like focal is going to be with us for a while.
2222
#
@@ -36,9 +36,8 @@ RUN env DEBIAN_FRONTEND=noninteractive apt-get install \
3636
wget
3737

3838
# fetch and unpack the package
39-
# TODO: Upgrade to 1.2.2 once bionic is dropped (1.2.2 requires debhelper 12; bionic has only 11)
4039
RUN mkdir /dh-virtualenv
41-
RUN wget -q -O /dh-virtualenv.tar.gz https://github.com/spotify/dh-virtualenv/archive/ac6e1b1.tar.gz
40+
RUN wget -q -O /dh-virtualenv.tar.gz https://github.com/spotify/dh-virtualenv/archive/refs/tags/1.2.2.tar.gz
4241
RUN tar -xv --strip-components=1 -C /dh-virtualenv -f /dh-virtualenv.tar.gz
4342

4443
# install its build deps. We do another apt-cache-update here, because we might
@@ -86,12 +85,12 @@ RUN apt-get update -qq -o Acquire::Languages=none \
8685
libpq-dev \
8786
xmlsec1
8887

89-
COPY --from=builder /dh-virtualenv_1.2~dev-1_all.deb /
88+
COPY --from=builder /dh-virtualenv_1.2.2-1_all.deb /
9089

9190
# install dhvirtualenv. Update the apt cache again first, in case we got a
9291
# cached cache from docker the first time.
9392
RUN apt-get update -qq -o Acquire::Languages=none \
94-
&& apt-get install -yq /dh-virtualenv_1.2~dev-1_all.deb
93+
&& apt-get install -yq /dh-virtualenv_1.2.2-1_all.deb
9594

9695
WORKDIR /synapse/source
9796
ENTRYPOINT ["bash","/synapse/source/docker/build_debian.sh"]

docker/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ The following environment variables are supported in `generate` mode:
6868
directories. If unset, and no user is set via `docker run --user`, defaults
6969
to `991`, `991`.
7070

71+
## Postgres
72+
73+
By default the config will use SQLite. See the [docs on using Postgres](https://github.com/matrix-org/synapse/blob/develop/docs/postgres.md) for more info on how to use Postgres. Until this section is improved [this issue](https://github.com/matrix-org/synapse/issues/8304) may provide useful information.
74+
7175
## Running synapse
7276

7377
Once you have a valid configuration file, you can start synapse as follows:

docs/SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
- [SSO Mapping Providers](sso_mapping_providers.md)
3131
- [Password Auth Providers](password_auth_providers.md)
3232
- [JSON Web Tokens](jwt.md)
33+
- [Refresh Tokens](usage/configuration/user_authentication/refresh_tokens.md)
3334
- [Registration Captcha](CAPTCHA_SETUP.md)
3435
- [Application Services](application_services.md)
3536
- [Server Notices](server_notices.md)

docs/admin_api/user_admin_api.md

+75
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,81 @@ The following fields are returned in the JSON response body:
480480
- `joined_rooms` - An array of `room_id`.
481481
- `total` - Number of rooms.
482482

483+
## Account Data
484+
Gets information about account data for a specific `user_id`.
485+
486+
The API is:
487+
488+
```
489+
GET /_synapse/admin/v1/users/<user_id>/accountdata
490+
```
491+
492+
A response body like the following is returned:
493+
494+
```json
495+
{
496+
"account_data": {
497+
"global": {
498+
"m.secret_storage.key.LmIGHTg5W": {
499+
"algorithm": "m.secret_storage.v1.aes-hmac-sha2",
500+
"iv": "fwjNZatxg==",
501+
"mac": "eWh9kNnLWZUNOgnc="
502+
},
503+
"im.vector.hide_profile": {
504+
"hide_profile": true
505+
},
506+
"org.matrix.preview_urls": {
507+
"disable": false
508+
},
509+
"im.vector.riot.breadcrumb_rooms": {
510+
"rooms": [
511+
"!LxcBDAsDUVAfJDEo:matrix.org",
512+
"!MAhRxqasbItjOqxu:matrix.org"
513+
]
514+
},
515+
"m.accepted_terms": {
516+
"accepted": [
517+
"https://example.org/somewhere/privacy-1.2-en.html",
518+
"https://example.org/somewhere/terms-2.0-en.html"
519+
]
520+
},
521+
"im.vector.setting.breadcrumbs": {
522+
"recent_rooms": [
523+
"!MAhRxqasbItqxuEt:matrix.org",
524+
"!ZtSaPCawyWtxiImy:matrix.org"
525+
]
526+
}
527+
},
528+
"rooms": {
529+
"!GUdfZSHUJibpiVqHYd:matrix.org": {
530+
"m.fully_read": {
531+
"event_id": "$156334540fYIhZ:matrix.org"
532+
}
533+
},
534+
"!tOZwOOiqwCYQkLhV:matrix.org": {
535+
"m.fully_read": {
536+
"event_id": "$xjsIyp4_NaVl2yPvIZs_k1Jl8tsC_Sp23wjqXPno"
537+
}
538+
}
539+
}
540+
}
541+
}
542+
```
543+
544+
**Parameters**
545+
546+
The following parameters should be set in the URL:
547+
548+
- `user_id` - fully qualified: for example, `@user:server.com`.
549+
550+
**Response**
551+
552+
The following fields are returned in the JSON response body:
553+
554+
- `account_data` - A map containing the account data for the user
555+
- `global` - A map containing the global account data for the user
556+
- `rooms` - A map containing the account data per room for the user
557+
483558
## User media
484559

485560
### List media uploaded by a user

docs/postgres.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Using Postgres
22

3-
Synapse supports PostgreSQL versions 9.6 or later.
3+
Synapse supports PostgreSQL versions 10 or later.
44

55
## Install postgres client libraries
66

docs/reverse_proxy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ server {
6363
6464
server_name matrix.example.com;
6565
66-
location ~* ^(\/_matrix|\/_synapse\/client) {
66+
location ~ ^(/_matrix|/_synapse/client) {
6767
# note: do not add a path (even a single /) after the port in `proxy_pass`,
6868
# otherwise nginx will canonicalise the URI and cause signature verification
6969
# errors.

docs/sample_config.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
# Server admins can expand Synapse's functionality with external modules.
3939
#
40-
# See https://matrix-org.github.io/synapse/latest/modules.html for more
40+
# See https://matrix-org.github.io/synapse/latest/modules/index.html for more
4141
# documentation on how to configure or create custom modules for Synapse.
4242
#
4343
modules:
@@ -1488,6 +1488,7 @@ room_prejoin_state:
14881488
# - m.room.encryption
14891489
# - m.room.name
14901490
# - m.room.create
1491+
# - m.room.topic
14911492
#
14921493
# Uncomment the following to disable these defaults (so that only the event
14931494
# types listed in 'additional_event_types' are shared). Defaults to 'false'.

docs/setup/installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ xbps-install -S synapse
164164
Synapse can be installed via FreeBSD Ports or Packages contributed by Brendan Molloy from:
165165

166166
- Ports: `cd /usr/ports/net-im/py-matrix-synapse && make install clean`
167-
- Packages: `pkg install py37-matrix-synapse`
167+
- Packages: `pkg install py38-matrix-synapse`
168168

169169
#### OpenBSD
170170

0 commit comments

Comments
 (0)