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

Commit a7d49db

Browse files
committed
Merge branch 'release-v1.15.0' of github.com:matrix-org/synapse into dinsic-release-v1.15.x
* 'release-v1.15.0' of github.com:matrix-org/synapse: (55 commits) 1.15.0 Fix some attributions Update CHANGES.md 1.15.0rc1 Revert "1.15.0rc1" 1.15.0rc1 Fix bug in account data replication stream. (#7656) Convert the registration handler to async/await. (#7649) Accept device information at the login fallback endpoint. (#7629) Convert user directory handler and related classes to async/await. (#7640) Add an option to disable autojoin for guest accounts (#6637) Clarifications to the admin api documentation (#7647) Update to the stable SSO prefix for UI Auth. (#7630) Fix type information on `assert_*_is_admin` methods (#7645) Remove some unused constants. (#7644) Typo fixes. Allow new users to be registered via the admin API even if the monthly active user limit has been reached (#7263) Add device management to admin API (#7481) Attempt to fix PhoneHomeStatsTestCase.test_performance_100 being flaky. (#7634) Support CS API v0.6.0 (#6585) ...
2 parents 7da71b7 + 3b3f327 commit a7d49db

File tree

97 files changed

+4097
-1677
lines changed

Some content is hidden

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

97 files changed

+4097
-1677
lines changed

CHANGES.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,75 @@
1+
Synapse 1.15.0 (2020-06-11)
2+
===========================
3+
4+
No significant changes.
5+
6+
7+
Synapse 1.15.0rc1 (2020-06-09)
8+
==============================
9+
10+
Features
11+
--------
12+
13+
- Advertise support for Client-Server API r0.6.0 and remove related unstable feature flags. ([\#6585](https://github.com/matrix-org/synapse/issues/6585))
14+
- Add an option to disable autojoining rooms for guest accounts. ([\#6637](https://github.com/matrix-org/synapse/issues/6637))
15+
- For SAML authentication, add the ability to pass email addresses to be added to new users' accounts via SAML attributes. Contributed by Christopher Cooper. ([\#7385](https://github.com/matrix-org/synapse/issues/7385))
16+
- Add admin APIs to allow server admins to manage users' devices. Contributed by @dklimpel. ([\#7481](https://github.com/matrix-org/synapse/issues/7481))
17+
- Add support for generating thumbnails for WebP images. Previously, users would see an empty box instead of preview image. Contributed by @WGH-. ([\#7586](https://github.com/matrix-org/synapse/issues/7586))
18+
- Support the standardized `m.login.sso` user-interactive authentication flow. ([\#7630](https://github.com/matrix-org/synapse/issues/7630))
19+
20+
21+
Bugfixes
22+
--------
23+
24+
- Allow new users to be registered via the admin API even if the monthly active user limit has been reached. Contributed by @dklimpel. ([\#7263](https://github.com/matrix-org/synapse/issues/7263))
25+
- Fix email notifications not being enabled for new users when created via the Admin API. ([\#7267](https://github.com/matrix-org/synapse/issues/7267))
26+
- Fix str placeholders in an instance of `PrepareDatabaseException`. Introduced in Synapse v1.8.0. ([\#7575](https://github.com/matrix-org/synapse/issues/7575))
27+
- Fix a bug in automatic user creation during first time login with `m.login.jwt`. Regression in v1.6.0. Contributed by @olof. ([\#7585](https://github.com/matrix-org/synapse/issues/7585))
28+
- Fix a bug causing the cross-signing keys to be ignored when resyncing a device list. ([\#7594](https://github.com/matrix-org/synapse/issues/7594))
29+
- Fix metrics failing when there is a large number of active background processes. ([\#7597](https://github.com/matrix-org/synapse/issues/7597))
30+
- Fix bug where returning rooms for a group would fail if it included a room that the server was not in. ([\#7599](https://github.com/matrix-org/synapse/issues/7599))
31+
- Fix duplicate key violation when persisting read markers. ([\#7607](https://github.com/matrix-org/synapse/issues/7607))
32+
- Prevent an entire iteration of the device list resync loop from failing if one server responds with a malformed result. ([\#7609](https://github.com/matrix-org/synapse/issues/7609))
33+
- Fix exceptions when fetching events from a remote host fails. ([\#7622](https://github.com/matrix-org/synapse/issues/7622))
34+
- Make `synctl restart` start synapse if it wasn't running. ([\#7624](https://github.com/matrix-org/synapse/issues/7624))
35+
- Pass device information through to the login endpoint when using the login fallback. ([\#7629](https://github.com/matrix-org/synapse/issues/7629))
36+
- Advertise the `m.login.token` login flow when OpenID Connect is enabled. ([\#7631](https://github.com/matrix-org/synapse/issues/7631))
37+
- Fix bug in account data replication stream. ([\#7656](https://github.com/matrix-org/synapse/issues/7656))
38+
39+
40+
Improved Documentation
41+
----------------------
42+
43+
- Update the OpenBSD installation instructions. ([\#7587](https://github.com/matrix-org/synapse/issues/7587))
44+
- Advertise Python 3.8 support in `setup.py`. ([\#7602](https://github.com/matrix-org/synapse/issues/7602))
45+
- Add a link to `#synapse:matrix.org` in the troubleshooting section of the README. ([\#7603](https://github.com/matrix-org/synapse/issues/7603))
46+
- Clarifications to the admin api documentation. ([\#7647](https://github.com/matrix-org/synapse/issues/7647))
47+
48+
49+
Internal Changes
50+
----------------
51+
52+
- Convert the identity handler to async/await. ([\#7561](https://github.com/matrix-org/synapse/issues/7561))
53+
- Improve query performance for fetching state from a PostgreSQL database. Contributed by @ilmari. ([\#7567](https://github.com/matrix-org/synapse/issues/7567))
54+
- Speed up processing of federation stream RDATA rows. ([\#7584](https://github.com/matrix-org/synapse/issues/7584))
55+
- Add comment to systemd example to show postgresql dependency. ([\#7591](https://github.com/matrix-org/synapse/issues/7591))
56+
- Refactor `Ratelimiter` to limit the amount of expensive config value accesses. ([\#7595](https://github.com/matrix-org/synapse/issues/7595))
57+
- Convert groups handlers to async/await. ([\#7600](https://github.com/matrix-org/synapse/issues/7600))
58+
- Clean up exception handling in `SAML2ResponseResource`. ([\#7614](https://github.com/matrix-org/synapse/issues/7614))
59+
- Check that all asynchronous tasks succeed and general cleanup of `MonthlyActiveUsersTestCase` and `TestMauLimit`. ([\#7619](https://github.com/matrix-org/synapse/issues/7619))
60+
- Convert `get_user_id_by_threepid` to async/await. ([\#7620](https://github.com/matrix-org/synapse/issues/7620))
61+
- Switch to upstream `dh-virtualenv` rather than our fork for Debian package builds. ([\#7621](https://github.com/matrix-org/synapse/issues/7621))
62+
- Update CI scripts to check the number in the newsfile fragment. ([\#7623](https://github.com/matrix-org/synapse/issues/7623))
63+
- Check if the localpart of a Matrix ID is reserved for guest users earlier in the registration flow, as well as when responding to requests to `/register/available`. ([\#7625](https://github.com/matrix-org/synapse/issues/7625))
64+
- Minor cleanups to OpenID Connect integration. ([\#7628](https://github.com/matrix-org/synapse/issues/7628))
65+
- Attempt to fix flaky test: `PhoneHomeStatsTestCase.test_performance_100`. ([\#7634](https://github.com/matrix-org/synapse/issues/7634))
66+
- Fix typos of `m.olm.curve25519-aes-sha2` and `m.megolm.v1.aes-sha2` in comments, test files. ([\#7637](https://github.com/matrix-org/synapse/issues/7637))
67+
- Convert user directory, state deltas, and stats handlers to async/await. ([\#7640](https://github.com/matrix-org/synapse/issues/7640))
68+
- Remove some unused constants. ([\#7644](https://github.com/matrix-org/synapse/issues/7644))
69+
- Fix type information on `assert_*_is_admin` methods. ([\#7645](https://github.com/matrix-org/synapse/issues/7645))
70+
- Convert registration handler to async/await. ([\#7649](https://github.com/matrix-org/synapse/issues/7649))
71+
72+
173
Synapse 1.14.0 (2020-05-28)
274
===========================
375

INSTALL.md

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -180,35 +180,41 @@ sudo zypper in python-pip python-setuptools sqlite3 python-virtualenv \
180180

181181
#### OpenBSD
182182

183-
Installing prerequisites on OpenBSD:
183+
A port of Synapse is available under `net/synapse`. The filesystem
184+
underlying the homeserver directory (defaults to `/var/synapse`) has to be
185+
mounted with `wxallowed` (cf. `mount(8)`), so creating a separate filesystem
186+
and mounting it to `/var/synapse` should be taken into consideration.
187+
188+
To be able to build Synapse's dependency on python the `WRKOBJDIR`
189+
(cf. `bsd.port.mk(5)`) for building python, too, needs to be on a filesystem
190+
mounted with `wxallowed` (cf. `mount(8)`).
191+
192+
Creating a `WRKOBJDIR` for building python under `/usr/local` (which on a
193+
default OpenBSD installation is mounted with `wxallowed`):
184194

185195
```
186-
doas pkg_add python libffi py-pip py-setuptools sqlite3 py-virtualenv \
187-
libxslt jpeg
196+
doas mkdir /usr/local/pobj_wxallowed
188197
```
189198

190-
There is currently no port for OpenBSD. Additionally, OpenBSD's security
191-
settings require a slightly more difficult installation process.
199+
Assuming `PORTS_PRIVSEP=Yes` (cf. `bsd.port.mk(5)`) and `SUDO=doas` are
200+
configured in `/etc/mk.conf`:
201+
202+
```
203+
doas chown _pbuild:_pbuild /usr/local/pobj_wxallowed
204+
```
192205

193-
(XXX: I suspect this is out of date)
206+
Setting the `WRKOBJDIR` for building python:
194207

195-
1. Create a new directory in `/usr/local` called `_synapse`. Also, create a
196-
new user called `_synapse` and set that directory as the new user's home.
197-
This is required because, by default, OpenBSD only allows binaries which need
198-
write and execute permissions on the same memory space to be run from
199-
`/usr/local`.
200-
2. `su` to the new `_synapse` user and change to their home directory.
201-
3. Create a new virtualenv: `virtualenv -p python3 ~/.synapse`
202-
4. Source the virtualenv configuration located at
203-
`/usr/local/_synapse/.synapse/bin/activate`. This is done in `ksh` by
204-
using the `.` command, rather than `bash`'s `source`.
205-
5. Optionally, use `pip` to install `lxml`, which Synapse needs to parse
206-
webpages for their titles.
207-
6. Use `pip` to install this repository: `pip install matrix-synapse`
208-
7. Optionally, change `_synapse`'s shell to `/bin/false` to reduce the
209-
chance of a compromised Synapse server being used to take over your box.
208+
```
209+
echo WRKOBJDIR_lang/python/3.7=/usr/local/pobj_wxallowed \\nWRKOBJDIR_lang/python/2.7=/usr/local/pobj_wxallowed >> /etc/mk.conf
210+
```
210211

211-
After this, you may proceed with the rest of the install directions.
212+
Building Synapse:
213+
214+
```
215+
cd /usr/ports/net/synapse
216+
make install
217+
```
212218

213219
#### Windows
214220

@@ -350,6 +356,18 @@ Synapse can be installed via FreeBSD Ports or Packages contributed by Brendan Mo
350356
- Ports: `cd /usr/ports/net-im/py-matrix-synapse && make install clean`
351357
- Packages: `pkg install py37-matrix-synapse`
352358

359+
### OpenBSD
360+
361+
As of OpenBSD 6.7 Synapse is available as a pre-compiled binary. The filesystem
362+
underlying the homeserver directory (defaults to `/var/synapse`) has to be
363+
mounted with `wxallowed` (cf. `mount(8)`), so creating a separate filesystem
364+
and mounting it to `/var/synapse` should be taken into consideration.
365+
366+
Installing Synapse:
367+
368+
```
369+
doas pkg_add synapse
370+
```
353371

354372
### NixOS
355373

README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ First calculate the hash of the new password::
267267
Confirm password:
268268
$2a$12$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
269269

270-
Then update the `users` table in the database::
270+
Then update the ``users`` table in the database::
271271

272272
UPDATE users SET password_hash='$2a$12$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
273273
WHERE name='@test:test.com';
@@ -335,6 +335,9 @@ Building internal API documentation::
335335
Troubleshooting
336336
===============
337337

338+
Need help? Join our community support room on Matrix:
339+
`#synapse:matrix.org <https://matrix.to/#/#synapse:matrix.org>`_
340+
338341
Running out of File Handles
339342
---------------------------
340343

0 commit comments

Comments
 (0)