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

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into shhs
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkowl committed May 13, 2019
2 parents faee1e9 + df2ebd7 commit a1b8767
Show file tree
Hide file tree
Showing 153 changed files with 1,454 additions and 1,566 deletions.
82 changes: 82 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,85 @@
Synapse 0.99.4rc1 (2019-05-13)
==============================

Features
--------

- Add systemd-python to the optional dependencies to enable logging to the systemd journal. Install with `pip install matrix-synapse[systemd]`. ([\#4339](https://github.com/matrix-org/synapse/issues/4339))
- Add a default .m.rule.tombstone push rule. ([\#4867](https://github.com/matrix-org/synapse/issues/4867))
- Add ability for password provider modules to bind email addresses to users upon registration. ([\#4947](https://github.com/matrix-org/synapse/issues/4947))
- Implementation of [MSC1711](https://github.com/matrix-org/matrix-doc/pull/1711) including config options for requiring valid TLS certificates for federation traffic, the ability to disable TLS validation for specific domains, and the ability to specify your own list of CA certificates. ([\#4967](https://github.com/matrix-org/synapse/issues/4967))
- Remove presence list support as per MSC 1819. ([\#4989](https://github.com/matrix-org/synapse/issues/4989))
- Reduce CPU usage starting pushers during start up. ([\#4991](https://github.com/matrix-org/synapse/issues/4991))
- Add a delete group admin API. ([\#5002](https://github.com/matrix-org/synapse/issues/5002))
- Add config option to block users from looking up 3PIDs. ([\#5010](https://github.com/matrix-org/synapse/issues/5010))
- Add context to phonehome stats. ([\#5020](https://github.com/matrix-org/synapse/issues/5020))
- Configure the example systemd units to have a log identifier of `matrix-synapse`
instead of the executable name, `python`.
Contributed by Christoph Müller. ([\#5023](https://github.com/matrix-org/synapse/issues/5023))
- Add time-based account expiration. ([\#5027](https://github.com/matrix-org/synapse/issues/5027), [\#5047](https://github.com/matrix-org/synapse/issues/5047), [\#5073](https://github.com/matrix-org/synapse/issues/5073), [\#5116](https://github.com/matrix-org/synapse/issues/5116))
- Add support for handling /verions, /voip and /push_rules client endpoints to client_reader worker. ([\#5063](https://github.com/matrix-org/synapse/issues/5063), [\#5065](https://github.com/matrix-org/synapse/issues/5065), [\#5070](https://github.com/matrix-org/synapse/issues/5070))
- Add an configuration option to require authentication on /publicRooms and /profile endpoints. ([\#5083](https://github.com/matrix-org/synapse/issues/5083))
- Move admin APIs to `/_synapse/admin/v1`. (The old paths are retained for backwards-compatibility, for now). ([\#5119](https://github.com/matrix-org/synapse/issues/5119))
- Implement an admin API for sending server notices. Many thanks to @krombel who provided a foundation for this work. ([\#5121](https://github.com/matrix-org/synapse/issues/5121), [\#5142](https://github.com/matrix-org/synapse/issues/5142))


Bugfixes
--------

- Avoid redundant URL encoding of redirect URL for SSO login in the fallback login page. Fixes a regression introduced in [#4220](https://github.com/matrix-org/synapse/pull/4220). Contributed by Marcel Fabian Krüger ("[zaugin](https://github.com/zauguin)"). ([\#4555](https://github.com/matrix-org/synapse/issues/4555))
- Fix bug where presence updates were sent to all servers in a room when a new server joined, rather than to just the new server. ([\#4942](https://github.com/matrix-org/synapse/issues/4942), [\#5103](https://github.com/matrix-org/synapse/issues/5103))
- Fix sync bug which made accepting invites unreliable in worker-mode synapses. ([\#4955](https://github.com/matrix-org/synapse/issues/4955), [\#4956](https://github.com/matrix-org/synapse/issues/4956))
- start.sh: Fix the --no-rate-limit option for messages and make it bypass rate limit on registration and login too. ([\#4981](https://github.com/matrix-org/synapse/issues/4981))
- Transfer related groups on room upgrade. ([\#4990](https://github.com/matrix-org/synapse/issues/4990))
- Prevent the ability to kick users from a room they aren't in. ([\#4999](https://github.com/matrix-org/synapse/issues/4999))
- Fix issue #4596 so synapse_port_db script works with --curses option on Python 3. Contributed by Anders Jensen-Waud <[email protected]>. ([\#5003](https://github.com/matrix-org/synapse/issues/5003))
- Clients timing out/disappearing while downloading from the media repository will now no longer log a spurious "Producer was not unregistered" message. ([\#5009](https://github.com/matrix-org/synapse/issues/5009))
- Fix "cannot import name execute_batch" error with postgres. ([\#5032](https://github.com/matrix-org/synapse/issues/5032))
- Fix disappearing exceptions in manhole. ([\#5035](https://github.com/matrix-org/synapse/issues/5035))
- Workaround bug in twisted where attempting too many concurrent DNS requests could cause it to hang due to running out of file descriptors. ([\#5037](https://github.com/matrix-org/synapse/issues/5037))
- Make sure we're not registering the same 3pid twice on registration. ([\#5071](https://github.com/matrix-org/synapse/issues/5071))
- Don't crash on lack of expiry templates. ([\#5077](https://github.com/matrix-org/synapse/issues/5077))
- Fix the ratelimting on third party invites. ([\#5104](https://github.com/matrix-org/synapse/issues/5104))
- Add some missing limitations to room alias creation. ([\#5124](https://github.com/matrix-org/synapse/issues/5124), [\#5128](https://github.com/matrix-org/synapse/issues/5128))
- Limit the number of EDUs in transactions to 100 as expected by synapse. Thanks to @superboum for this work! ([\#5138](https://github.com/matrix-org/synapse/issues/5138))
- Fix bogus imports in unit tests. ([\#5154](https://github.com/matrix-org/synapse/issues/5154))


Internal Changes
----------------

- Add test to verify threepid auth check added in #4435. ([\#4474](https://github.com/matrix-org/synapse/issues/4474))
- Fix/improve some docstrings in the replication code. ([\#4949](https://github.com/matrix-org/synapse/issues/4949))
- Split synapse.replication.tcp.streams into smaller files. ([\#4953](https://github.com/matrix-org/synapse/issues/4953))
- Refactor replication row generation/parsing. ([\#4954](https://github.com/matrix-org/synapse/issues/4954))
- Run `black` to clean up formatting on `synapse/storage/roommember.py` and `synapse/storage/events.py`. ([\#4959](https://github.com/matrix-org/synapse/issues/4959))
- Remove log line for password via the admin API. ([\#4965](https://github.com/matrix-org/synapse/issues/4965))
- Fix typo in TLS filenames in docker/README.md. Also add the '-p' commandline option to the 'docker run' example. Contributed by Jurrie Overgoor. ([\#4968](https://github.com/matrix-org/synapse/issues/4968))
- Refactor room version definitions. ([\#4969](https://github.com/matrix-org/synapse/issues/4969))
- Reduce log level of .well-known/matrix/client responses. ([\#4972](https://github.com/matrix-org/synapse/issues/4972))
- Add `config.signing_key_path` that can be read by `synapse.config` utility. ([\#4974](https://github.com/matrix-org/synapse/issues/4974))
- Track which identity server is used when binding a threepid and use that for unbinding, as per MSC1915. ([\#4982](https://github.com/matrix-org/synapse/issues/4982))
- Rewrite KeyringTestCase as a HomeserverTestCase. ([\#4985](https://github.com/matrix-org/synapse/issues/4985))
- README updates: Corrected the default POSTGRES_USER. Added port forwarding hint in TLS section. ([\#4987](https://github.com/matrix-org/synapse/issues/4987))
- Remove a number of unused tables from the database schema. ([\#4992](https://github.com/matrix-org/synapse/issues/4992), [\#5028](https://github.com/matrix-org/synapse/issues/5028), [\#5033](https://github.com/matrix-org/synapse/issues/5033))
- Run `black` on the remainder of `synapse/storage/`. ([\#4996](https://github.com/matrix-org/synapse/issues/4996))
- Fix grammar in get_current_users_in_room and give it a docstring. ([\#4998](https://github.com/matrix-org/synapse/issues/4998))
- Clean up some code in the server-key Keyring. ([\#5001](https://github.com/matrix-org/synapse/issues/5001))
- Convert SYNAPSE_NO_TLS Docker variable to boolean for user friendliness. Contributed by Gabriel Eckerson. ([\#5005](https://github.com/matrix-org/synapse/issues/5005))
- Refactor synapse.storage._base._simple_select_list_paginate. ([\#5007](https://github.com/matrix-org/synapse/issues/5007))
- Store the notary server name correctly in server_keys_json. ([\#5024](https://github.com/matrix-org/synapse/issues/5024))
- Rewrite Datastore.get_server_verify_keys to reduce the number of database transactions. ([\#5030](https://github.com/matrix-org/synapse/issues/5030))
- Remove extraneous period from copyright headers. ([\#5046](https://github.com/matrix-org/synapse/issues/5046))
- Update documentation for where to get Synapse packages. ([\#5067](https://github.com/matrix-org/synapse/issues/5067))
- Add workarounds for pep-517 install errors. ([\#5098](https://github.com/matrix-org/synapse/issues/5098))
- Improve logging when event-signature checks fail. ([\#5100](https://github.com/matrix-org/synapse/issues/5100))
- Factor out an "assert_requester_is_admin" function. ([\#5120](https://github.com/matrix-org/synapse/issues/5120))
- Remove the requirement to authenticate for /admin/server_version. ([\#5122](https://github.com/matrix-org/synapse/issues/5122))
- Prevent an exception from being raised in a IResolutionReceiver and use a more generic error message for blacklisted URL previews. ([\#5155](https://github.com/matrix-org/synapse/issues/5155))
- Run `black` on the tests directory. ([\#5170](https://github.com/matrix-org/synapse/issues/5170))
- Fix CI after new release of isort. ([\#5179](https://github.com/matrix-org/synapse/issues/5179))


Synapse 0.99.3.2 (2019-05-03)
=============================

Expand Down
21 changes: 5 additions & 16 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,8 @@ https://github.com/spantaleev/matrix-docker-ansible-deploy
#### Matrix.org packages

Matrix.org provides Debian/Ubuntu packages of the latest stable version of
Synapse via https://packages.matrix.org/debian/. To use them:

For Debian 9 (Stretch), Ubuntu 16.04 (Xenial), and later:
Synapse via https://packages.matrix.org/debian/. They are available for Debian
9 (Stretch), Ubuntu 16.04 (Xenial), and later. To use them:

```
sudo apt install -y lsb-release wget apt-transport-https
Expand All @@ -270,26 +269,16 @@ sudo apt update
sudo apt install matrix-synapse-py3
```

For Debian 8 (Jessie):

```
sudo apt install -y lsb-release wget apt-transport-https
sudo wget -O /etc/apt/trusted.gpg.d/matrix-org-archive-keyring.gpg https://packages.matrix.org/debian/matrix-org-archive-keyring.gpg
echo "deb [signed-by=5586CCC0CBBBEFC7A25811ADF473DD4473365DE1] https://packages.matrix.org/debian/ $(lsb_release -cs) main" |
sudo tee /etc/apt/sources.list.d/matrix-org.list
sudo apt update
sudo apt install matrix-synapse-py3
```

The fingerprint of the repository signing key is AAF9AE843A7584B5A3E4CD2BCF45A512DE2DA058.

**Note**: if you followed a previous version of these instructions which
recommended using `apt-key add` to add an old key from
`https://matrix.org/packages/debian/`, you should note that this key has been
revoked. You should remove the old key with `sudo apt-key remove
C35EB17E1EAE708E6603A9B3AD0592FE47F0DF61`, and follow the above instructions to
update your configuration.

The fingerprint of the repository signing key (as shown by `gpg
/usr/share/keyrings/matrix-org-archive-keyring.gpg`) is
`AAF9AE843A7584B5A3E4CD2BCF45A512DE2DA058`.

#### Downstream Debian/Ubuntu packages

Expand Down
1 change: 0 additions & 1 deletion changelog.d/4339.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4474.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4555.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4867.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4942.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4947.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4949.misc

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/4953.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4954.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4955.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4956.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4959.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4965.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4967.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4968.misc

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/4969.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4972.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4974.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4981.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4982.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4985.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4987.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4989.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4990.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4991.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4992.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4996.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4998.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/4999.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5001.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5002.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5003.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5005.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5007.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5009.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5010.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5020.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5024.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5027.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5028.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5030.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5032.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5033.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5035.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5037.bugfix

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/5043.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add ability to blacklist IP ranges for the federation client.
1 change: 0 additions & 1 deletion changelog.d/5046.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5047.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5063.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5065.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5067.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5070.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5071.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5073.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5077.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5083.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5098.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5100.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5103.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5104.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5116.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5119.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5120.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5121.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5122.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5124.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5128.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5142.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5154.bugfix

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/5171.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update tests to consistently be configured via the same code that is used when loading from configuration files.
1 change: 1 addition & 0 deletions contrib/systemd-with-workers/system/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ExecStart=/opt/venvs/matrix-synapse/bin/python -m synapse.app.%i --config-path=/
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=3
SyslogIdentifier=matrix-synapse-%i

[Install]
WantedBy=matrix-synapse.service
1 change: 1 addition & 0 deletions contrib/systemd-with-workers/system/matrix-synapse.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ExecStart=/opt/venvs/matrix-synapse/bin/python -m synapse.app.homeserver --confi
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=3
SyslogIdentifier=matrix-synapse

[Install]
WantedBy=matrix.target
2 changes: 1 addition & 1 deletion contrib/systemd/matrix-synapse.service
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Group=nogroup

WorkingDirectory=/opt/synapse
ExecStart=/opt/synapse/env/bin/python -m synapse.app.homeserver --config-path=/opt/synapse/homeserver.yaml
SyslogIdentifier=matrix-synapse

# adjust the cache factor if necessary
# Environment=SYNAPSE_CACHE_FACTOR=2.0

[Install]
WantedBy=multi-user.target

7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
matrix-synapse-py3 (0.99.3.2+nmu1) UNRELEASED; urgency=medium

[ Christoph Müller ]
* Configure the systemd units to have a log identifier of `matrix-synapse`

-- Christoph Müller <[email protected]> Wed, 17 Apr 2019 16:17:32 +0200

matrix-synapse-py3 (0.99.3.2) stable; urgency=medium

* New synapse release 0.99.3.2.
Expand Down
1 change: 1 addition & 0 deletions debian/matrix-synapse.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ExecStart=/opt/venvs/matrix-synapse/bin/python -m synapse.app.homeserver --confi
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=3
SyslogIdentifier=matrix-synapse

[Install]
WantedBy=multi-user.target
5 changes: 4 additions & 1 deletion docs/metrics-howto.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ How to monitor Synapse metrics using Prometheus
- job_name: "synapse"
metrics_path: "/_synapse/metrics"
static_configs:
- targets: ["my.server.here:9092"]
- targets: ["my.server.here:port"]

where ``my.server.here`` is the IP address of Synapse, and ``port`` is the listener port
configured with the ``metrics`` resource.

If your prometheus is older than 1.5.2, you will need to replace
``static_configs`` in the above with ``target_groups``.
Expand Down
Loading

0 comments on commit a1b8767

Please sign in to comment.