Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit ac3ce89

Browse files
committed
Merge tag 'v1.50.0' into dinsic
Synapse 1.50.0 (2022-01-18) =========================== 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. No significant changes since 1.50.0rc2. Synapse 1.50.0rc2 (2022-01-14) ============================== This release candidate fixes a federation-breaking regression introduced in Synapse 1.50.0rc1. 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. ([\#11729](matrix-org/synapse#11729)) - Fix a bug introduced in Synapse v1.50.0rc1 whereby outbound federation could fail because too many EDUs were produced for device updates. ([\#11730](matrix-org/synapse#11730)) Improved Documentation ---------------------- - Document that now the minimum supported PostgreSQL version is 10. ([\#11725](matrix-org/synapse#11725)) Internal Changes ---------------- - Fix a typechecker problem related to our (ab)use of `nacl.signing.SigningKey`s. ([\#11714](matrix-org/synapse#11714)) Synapse 1.50.0rc1 (2022-01-05) ============================== Features -------- - Allow guests to send state events per [MSC3419](matrix-org/matrix-spec-proposals#3419). ([\#11378](matrix-org/synapse#11378)) - Add experimental support for part of [MSC3202](matrix-org/matrix-spec-proposals#3202): allowing application services to masquerade as specific devices. ([\#11538](matrix-org/synapse#11538)) - Add admin API to get users' account data. ([\#11664](matrix-org/synapse#11664)) - Include the room topic in the stripped state included with invites and knocking. ([\#11666](matrix-org/synapse#11666)) - Send and handle cross-signing messages using the stable prefix. ([\#10520](matrix-org/synapse#10520)) - Support unprefixed versions of fallback key property names. ([\#11541](matrix-org/synapse#11541)) Bugfixes -------- - Fix a long-standing bug where relations from other rooms could be included in the bundled aggregations of an event. ([\#11516](matrix-org/synapse#11516)) - 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](matrix-org/synapse#11536), [\#11642](matrix-org/synapse#11642)) - 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](matrix-org/synapse#11547)) - Fix a long-standing bug where responses included bundled aggregations when they should not, per [MSC2675](matrix-org/matrix-spec-proposals#2675). ([\#11592](matrix-org/synapse#11592), [\#11623](matrix-org/synapse#11623)) - Fix a long-standing bug that some unknown endpoints would return HTML error pages instead of JSON `M_UNRECOGNIZED` errors. ([\#11602](matrix-org/synapse#11602)) - Fix a bug introduced in Synapse 1.19.3 which could sometimes cause `AssertionError`s when backfilling rooms over federation. ([\#11632](matrix-org/synapse#11632)) Improved Documentation ---------------------- - Update Synapse install command for FreeBSD as the package is now prefixed with `py38`. Contributed by @itchychips. ([\#11267](matrix-org/synapse#11267)) - Document the usage of refresh tokens. ([\#11427](matrix-org/synapse#11427)) - Add details for how to configure a TURN server when behind a NAT. Contibuted by @AndrewFerr. ([\#11553](matrix-org/synapse#11553)) - Add references for using Postgres to the Docker documentation. ([\#11640](matrix-org/synapse#11640)) - Fix the documentation link in newly-generated configuration files. ([\#11678](matrix-org/synapse#11678)) - Correct the documentation for `nginx` to use a case-sensitive url pattern. Fixes an error introduced in v1.21.0. ([\#11680](matrix-org/synapse#11680)) - Clarify SSO mapping provider documentation by writing `def` or `async def` before the names of methods, as appropriate. ([\#11681](matrix-org/synapse#11681)) Deprecations and Removals ------------------------- - Replace `mock` package by its standard library version. ([\#11588](matrix-org/synapse#11588)) - Drop support for Python 3.6 and Ubuntu 18.04. ([\#11633](matrix-org/synapse#11633)) Internal Changes ---------------- - Allow specific, experimental events to be created without `prev_events`. Used by [MSC2716](matrix-org/matrix-spec-proposals#2716). ([\#11243](matrix-org/synapse#11243)) - A test helper (`wait_for_background_updates`) no longer depends on classes defining a `store` property. ([\#11331](matrix-org/synapse#11331)) - Add type hints to `synapse.appservice`. ([\#11360](matrix-org/synapse#11360)) - Add missing type hints to `synapse.config` module. ([\#11480](matrix-org/synapse#11480)) - Add test to ensure we share the same `state_group` across the whole historical batch when using the [MSC2716](matrix-org/matrix-spec-proposals#2716) `/batch_send` endpoint. ([\#11487](matrix-org/synapse#11487)) - Refactor `tests.util.setup_test_homeserver` and `tests.server.setup_test_homeserver`. ([\#11503](matrix-org/synapse#11503)) - Move `glob_to_regex` and `re_word_boundary` to `matrix-python-common`. ([\#11505](matrix-org/synapse#11505), [\#11687](matrix-org/synapse#11687)) - Use `HTTPStatus` constants in place of literals in `tests.rest.client.test_auth`. ([\#11520](matrix-org/synapse#11520)) - Add a receipt types constant for `m.read`. ([\#11531](matrix-org/synapse#11531)) - Clean up `synapse.rest.admin`. ([\#11535](matrix-org/synapse#11535)) - Add missing `errcode` to `parse_string` and `parse_boolean`. ([\#11542](matrix-org/synapse#11542)) - Use `HTTPStatus` constants in place of literals in `synapse.http`. ([\#11543](matrix-org/synapse#11543)) - Add missing type hints to storage classes. ([\#11546](matrix-org/synapse#11546), [\#11549](matrix-org/synapse#11549), [\#11551](matrix-org/synapse#11551), [\#11555](matrix-org/synapse#11555), [\#11575](matrix-org/synapse#11575), [\#11589](matrix-org/synapse#11589), [\#11594](matrix-org/synapse#11594), [\#11652](matrix-org/synapse#11652), [\#11653](matrix-org/synapse#11653), [\#11654](matrix-org/synapse#11654), [\#11657](matrix-org/synapse#11657)) - Fix an inaccurate and misleading comment in the `/sync` code. ([\#11550](matrix-org/synapse#11550)) - Add missing type hints to `synapse.logging.context`. ([\#11556](matrix-org/synapse#11556)) - Stop populating unused database column `state_events.prev_state`. ([\#11558](matrix-org/synapse#11558)) - Minor efficiency improvements in event persistence. ([\#11560](matrix-org/synapse#11560)) - Add some safety checks that storage functions are used correctly. ([\#11564](matrix-org/synapse#11564), [\#11580](matrix-org/synapse#11580)) - Make `get_device` return `None` if the device doesn't exist rather than raising an exception. ([\#11565](matrix-org/synapse#11565)) - Split the HTML parsing code from the URL preview resource code. ([\#11566](matrix-org/synapse#11566)) - Remove redundant `COALESCE()`s around `COUNT()`s in database queries. ([\#11570](matrix-org/synapse#11570)) - Add missing type hints to `synapse.http`. ([\#11571](matrix-org/synapse#11571)) - Add [MSC2716](matrix-org/matrix-spec-proposals#2716) and [MSC3030](matrix-org/matrix-spec-proposals#3030) to `/versions` -> `unstable_features` to detect server support. ([\#11582](matrix-org/synapse#11582)) - Add type hints to `synapse/tests/rest/admin`. ([\#11590](matrix-org/synapse#11590)) - Drop end-of-life Python 3.6 and Postgres 9.6 from CI. ([\#11595](matrix-org/synapse#11595)) - Update black version and run it on all the files. ([\#11596](matrix-org/synapse#11596)) - Add opentracing type stubs and fix associated mypy errors. ([\#11603](matrix-org/synapse#11603), [\#11622](matrix-org/synapse#11622)) - Improve OpenTracing support for requests which use a `ResponseCache`. ([\#11607](matrix-org/synapse#11607)) - Improve OpenTracing support for incoming HTTP requests. ([\#11618](matrix-org/synapse#11618)) - A number of improvements to opentracing support. ([\#11619](matrix-org/synapse#11619)) - Refactor the way that the `outlier` flag is set on events received over federation. ([\#11634](matrix-org/synapse#11634)) - Improve the error messages from `get_create_event_for_room`. ([\#11638](matrix-org/synapse#11638)) - Remove redundant `get_current_events_token` method. ([\#11643](matrix-org/synapse#11643)) - Convert `namedtuples` to `attrs`. ([\#11665](matrix-org/synapse#11665), [\#11574](matrix-org/synapse#11574)) - Update the `/capabilities` response to include whether support for [MSC3440](matrix-org/matrix-spec-proposals#3440) is available. ([\#11690](matrix-org/synapse#11690)) - Send the `Accept` header in HTTP requests made using `SimpleHttpClient.get_json`. ([\#11677](matrix-org/synapse#11677)) - Work around Mjolnir compatibility issue by adding an import for `glob_to_regex` in `synapse.util`, where it moved from. ([\#11696](matrix-org/synapse#11696))
2 parents 43e12a0 + 4ec0a30 commit ac3ce89

File tree

206 files changed

+5190
-2763
lines changed

Some content is hidden

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

206 files changed

+5190
-2763
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
@@ -284,8 +284,8 @@ jobs:
284284
strategy:
285285
matrix:
286286
include:
287-
- python-version: "3.6"
288-
postgres-version: "9.6"
287+
- python-version: "3.7"
288+
postgres-version: "10"
289289

290290
- python-version: "3.10"
291291
postgres-version: "14"

CHANGES.md

+119
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,122 @@
1+
Synapse 1.50.0 (2022-01-18)
2+
===========================
3+
4+
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.
5+
6+
No significant changes since 1.50.0rc2.
7+
8+
9+
Synapse 1.50.0rc2 (2022-01-14)
10+
==============================
11+
12+
This release candidate fixes a federation-breaking regression introduced in Synapse 1.50.0rc1.
13+
14+
Bugfixes
15+
--------
16+
17+
- 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))
18+
- 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))
19+
20+
21+
Improved Documentation
22+
----------------------
23+
24+
- Document that now the minimum supported PostgreSQL version is 10. ([\#11725](https://github.com/matrix-org/synapse/issues/11725))
25+
26+
27+
Internal Changes
28+
----------------
29+
30+
- Fix a typechecker problem related to our (ab)use of `nacl.signing.SigningKey`s. ([\#11714](https://github.com/matrix-org/synapse/issues/11714))
31+
32+
33+
Synapse 1.50.0rc1 (2022-01-05)
34+
==============================
35+
36+
37+
Features
38+
--------
39+
40+
- 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))
41+
- 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))
42+
- Add admin API to get users' account data. ([\#11664](https://github.com/matrix-org/synapse/issues/11664))
43+
- Include the room topic in the stripped state included with invites and knocking. ([\#11666](https://github.com/matrix-org/synapse/issues/11666))
44+
- Send and handle cross-signing messages using the stable prefix. ([\#10520](https://github.com/matrix-org/synapse/issues/10520))
45+
- Support unprefixed versions of fallback key property names. ([\#11541](https://github.com/matrix-org/synapse/issues/11541))
46+
47+
48+
Bugfixes
49+
--------
50+
51+
- 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))
52+
- 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))
53+
- 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))
54+
- 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))
55+
- 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))
56+
- 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))
57+
58+
59+
Improved Documentation
60+
----------------------
61+
62+
- 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))
63+
- Document the usage of refresh tokens. ([\#11427](https://github.com/matrix-org/synapse/issues/11427))
64+
- 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))
65+
- Add references for using Postgres to the Docker documentation. ([\#11640](https://github.com/matrix-org/synapse/issues/11640))
66+
- Fix the documentation link in newly-generated configuration files. ([\#11678](https://github.com/matrix-org/synapse/issues/11678))
67+
- 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))
68+
- 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))
69+
70+
71+
Deprecations and Removals
72+
-------------------------
73+
74+
- Replace `mock` package by its standard library version. ([\#11588](https://github.com/matrix-org/synapse/issues/11588))
75+
- Drop support for Python 3.6 and Ubuntu 18.04. ([\#11633](https://github.com/matrix-org/synapse/issues/11633))
76+
77+
78+
Internal Changes
79+
----------------
80+
81+
- 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))
82+
- 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))
83+
- Add type hints to `synapse.appservice`. ([\#11360](https://github.com/matrix-org/synapse/issues/11360))
84+
- Add missing type hints to `synapse.config` module. ([\#11480](https://github.com/matrix-org/synapse/issues/11480))
85+
- 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))
86+
- Refactor `tests.util.setup_test_homeserver` and `tests.server.setup_test_homeserver`. ([\#11503](https://github.com/matrix-org/synapse/issues/11503))
87+
- 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))
88+
- Use `HTTPStatus` constants in place of literals in `tests.rest.client.test_auth`. ([\#11520](https://github.com/matrix-org/synapse/issues/11520))
89+
- Add a receipt types constant for `m.read`. ([\#11531](https://github.com/matrix-org/synapse/issues/11531))
90+
- Clean up `synapse.rest.admin`. ([\#11535](https://github.com/matrix-org/synapse/issues/11535))
91+
- Add missing `errcode` to `parse_string` and `parse_boolean`. ([\#11542](https://github.com/matrix-org/synapse/issues/11542))
92+
- Use `HTTPStatus` constants in place of literals in `synapse.http`. ([\#11543](https://github.com/matrix-org/synapse/issues/11543))
93+
- 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))
94+
- Fix an inaccurate and misleading comment in the `/sync` code. ([\#11550](https://github.com/matrix-org/synapse/issues/11550))
95+
- Add missing type hints to `synapse.logging.context`. ([\#11556](https://github.com/matrix-org/synapse/issues/11556))
96+
- Stop populating unused database column `state_events.prev_state`. ([\#11558](https://github.com/matrix-org/synapse/issues/11558))
97+
- Minor efficiency improvements in event persistence. ([\#11560](https://github.com/matrix-org/synapse/issues/11560))
98+
- 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))
99+
- 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))
100+
- Split the HTML parsing code from the URL preview resource code. ([\#11566](https://github.com/matrix-org/synapse/issues/11566))
101+
- Remove redundant `COALESCE()`s around `COUNT()`s in database queries. ([\#11570](https://github.com/matrix-org/synapse/issues/11570))
102+
- Add missing type hints to `synapse.http`. ([\#11571](https://github.com/matrix-org/synapse/issues/11571))
103+
- 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))
104+
- Add type hints to `synapse/tests/rest/admin`. ([\#11590](https://github.com/matrix-org/synapse/issues/11590))
105+
- Drop end-of-life Python 3.6 and Postgres 9.6 from CI. ([\#11595](https://github.com/matrix-org/synapse/issues/11595))
106+
- Update black version and run it on all the files. ([\#11596](https://github.com/matrix-org/synapse/issues/11596))
107+
- 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))
108+
- Improve OpenTracing support for requests which use a `ResponseCache`. ([\#11607](https://github.com/matrix-org/synapse/issues/11607))
109+
- Improve OpenTracing support for incoming HTTP requests. ([\#11618](https://github.com/matrix-org/synapse/issues/11618))
110+
- A number of improvements to opentracing support. ([\#11619](https://github.com/matrix-org/synapse/issues/11619))
111+
- Refactor the way that the `outlier` flag is set on events received over federation. ([\#11634](https://github.com/matrix-org/synapse/issues/11634))
112+
- Improve the error messages from `get_create_event_for_room`. ([\#11638](https://github.com/matrix-org/synapse/issues/11638))
113+
- Remove redundant `get_current_events_token` method. ([\#11643](https://github.com/matrix-org/synapse/issues/11643))
114+
- Convert `namedtuples` to `attrs`. ([\#11665](https://github.com/matrix-org/synapse/issues/11665), [\#11574](https://github.com/matrix-org/synapse/issues/11574))
115+
- 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))
116+
- Send the `Accept` header in HTTP requests made using `SimpleHttpClient.get_json`. ([\#11677](https://github.com/matrix-org/synapse/issues/11677))
117+
- 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))
118+
119+
1120
Synapse 1.49.2 (2021-12-21)
2121
===========================
3122

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

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

321
* 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:
@@ -1591,6 +1591,7 @@ room_prejoin_state:
15911591
# - m.room.encryption
15921592
# - m.room.name
15931593
# - m.room.create
1594+
# - m.room.topic
15941595
#
15951596
# Uncomment the following to disable these defaults (so that only the event
15961597
# 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)