summary refs log tree commit diff
path: root/scripts-dev/tail-synapse.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-07-14Add delete room admin endpoint (#7613)Dirk Klimpel12-113/+775
The Delete Room admin API allows server admins to remove rooms from server and block these rooms. `DELETE /_synapse/admin/v1/rooms/<room_id>` It is a combination and improvement of "[Shutdown room](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/shutdown_room.md)" and "[Purge room](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/purge_room.md)" API. Fixes: #6425 It also fixes a bug in [synapse/storage/data_stores/main/room.py](synapse/storage/data_stores/main/room.py) in ` get_room_with_stats`. It should return `None` if the room is unknown. But it returns an `IndexError`. https://github.com/matrix-org/synapse/blob/901b1fa561e3cc661d78aa96d59802cf2078cb0d/synapse/storage/data_stores/main/room.py#L99-L105 Related to: - #5575 - https://github.com/Awesome-Technologies/synapse-admin/issues/17 Signed-off-by: Dirk Klimpel dirk@klimpel.org
2020-07-14Add the option to validate the `iss` and `aud` claims for JWT logins. (#7827)Patrick Cloke6-15/+182
2020-07-14Improve the type hints of synapse.api.errors. (#7820)Patrick Cloke2-55/+74
2020-07-14Clearly state built-in ACME no longer works (#7824)Luke Faraone1-7/+5
I'm tempted to remove this section entirely, but it's helpful for admins who are trying to figure out why their Synapse is crashing on start with ACME errors. Signed-off-by: Luke W Faraone <luke@faraone.cc>
2020-07-14Correctly pass app_name to all email templates. (#7829)Erik Johnston2-2/+9
We didn't do this for e.g. registration emails.
2020-07-13Support handling registration requests across multiple client readers. (#7830)Patrick Cloke3-1/+136
2020-07-13Fix handling of "off" in encryption_enabled_by_default_for_room_type (#7822)Brendan Abolivier2-1/+7
Fixes https://github.com/matrix-org/synapse/issues/7821, introduced in https://github.com/matrix-org/synapse/pull/7639 Turns out PyYAML translates `off` into a `False` boolean if it's unquoted (see https://stackoverflow.com/questions/36463531/pyyaml-automatically-converting-certain-keys-to-boolean-values), which seems to be a liberal interpretation of this bit of the YAML spec: https://yaml.org/spec/1.1/current.html#id864510 An alternative fix would be to implement the solution mentioned in the SO post linked above, but I'm aware it might break existing setups (which might use these values in the configuration file) so it's probably better just to add an extra check for this one. We should be aware that this is a thing for the next times we do that though. I didn't find any other occurrence of this bug elsewhere in the codebase.
2020-07-13Update grafana dashboardRichard van der Hoff1-85/+214
2020-07-131.17.0 v1.17.0 github/release-v1.17.0 release-v1.17.0Richard van der Hoff3-4/+14
2020-07-10Do not use canonicaljson to magically handle decoding bytes from JSON. (#7802)Patrick Cloke7-28/+17
2020-07-10Add types to the server code and remove unused parameter (#7813)Patrick Cloke2-30/+42
2020-07-10Include room states on invite events sent to ASes (#6455)Sorunome2-4/+17
2020-07-10Add ability to shard the federation sender (#7798)Erik Johnston15-157/+670
2020-07-10Fix resync remote devices on receive PDU in worker mode. (#7815)Erik Johnston2-8/+20
The replication client requires that arguments are given as keyword arguments, which was not done in this case. We also pull out the logic so that we can catch and handle any exceptions raised, rather than leaving them unhandled.
2020-07-10Fix recursion error when fetching auth chain over federation (#7817)Erik Johnston3-16/+44
When fetching the state of a room over federation we receive the event IDs of the state and auth chain. We then fetch those events that we don't already have. However, we used a function that recursively fetched any missing auth events for the fetched events, which can lead to a lot of recursion if the server is missing most of the auth chain. This work is entirely pointless because would have queued up the missing events in the auth chain to be fetched already. Let's just diable the recursion, since it only gets called from one place anyway.
2020-07-10update changelog v1.16.1 github/release-v1.16.1 release-v1.16.1Richard van der Hoff1-1/+1
2020-07-10fix migration, againRichard van der Hoff1-1/+1
2020-07-10fix changelogRichard van der Hoff1-6/+0
2020-07-101.16.1Richard van der Hoff4-2/+26
2020-07-10Drop incorrectly-added table `local_rejections_stream`. (#7816)Richard van der Hoff2-0/+23
2020-07-091.17.0rc1 v1.17.0rc1Richard van der Hoff29-27/+54
2020-07-09Fix some spelling mistakes / typos. (#7811)Patrick Cloke31-40/+41
2020-07-09`update_membership` declaration: now always returns an event id. (#7809)Richard van der Hoff4-9/+8
2020-07-09Improve stacktraces from exceptions in background processes (#7808)Richard van der Hoff2-1/+10
use `Failure()` to fish out the real exception.
2020-07-09Fix `can only concatenate list (not "tuple") to list` exception (#7810)Richard van der Hoff2-1/+2
It seems auth_events can be either a list or a tuple, depending on Things.
2020-07-09Pass original request headers from workers to the main process. (#7797)Patrick Cloke2-5/+26
2020-07-09Generate real events when we reject invites (#7804)Richard van der Hoff7-169/+184
Fixes #2181. The basic premise is that, when we fail to reject an invite via the remote server, we can generate our own out-of-band leave event and persist it as an outlier, so that we have something to send to the client.
2020-07-08Add `HomeServer.signing_key` property (#7805)Richard van der Hoff10-12/+12
... instead of duplicating `config.signing_key[0]` everywhere
2020-07-08Revert "Update the installation docs on apt-transport-https (#7801)"Richard van der Hoff2-12/+0
This reverts commit e0c01296936a178d83556fc4f00f69e429fa7ba5. As discussed at https://github.com/matrix-org/synapse/pull/7801#pullrequestreview-444652786, I don't think this is an improvement.
2020-07-08Do not use simplejson in Synapse. (#7800)Patrick Cloke6-25/+11
2020-07-08Stop passing bytes when dumping JSON (#7799)Patrick Cloke4-6/+11
2020-07-08Update the installation docs on apt-transport-https (#7801)Dirk Heinrichs2-0/+12
* Starting with apt 1.6, https support has moved into the main package and apt-transport-https has become a transitional dummy package. Signed-off-by: Dirk Heinrichs <dirk.heinrichs@altum.de>
2020-07-08shuffle changelog slightly v1.16.0 github/release-v1.16.0 release-v1.16.0Richard van der Hoff1-6/+5
2020-07-081.16.0Richard van der Hoff3-1/+13
2020-07-08Change Caddy links (old is deprecated) (#7789)Nicolai Søborg3-2/+3
* Change Caddy links Current links points to Caddy v1 which is deprecated. Signed-off-by: Nicolai Søborg <git@xn--sb-lka.org>
2020-07-07Stop populating unused table `local_invites`. (#7793)Richard van der Hoff5-81/+25
This table is no longer used, so we may as well stop populating it. Removing it would prevent people rolling back to older releases of Synapse, so that can happen in a future release.
2020-07-07Refactor getting replication updates from database v2. (#7740)Erik Johnston11-195/+336
2020-07-06Add libwebp dependency to Dockerfile (#7791)Juho Vanhanen2-0/+3
* Add libwebp dependency to Dockerfile Signed-off-by: Juho Vanhanen <juho@vanhanen.io>
2020-07-06Add documentation for JWT login type and improve sample config. (#7776)Patrick Cloke5-29/+180
2020-07-06Convert the appservice handler to async/await. (#7775)Patrick Cloke4-76/+68
2020-07-06Don't ignore `set_tweak` actions with no explicit `value`. (#7766)reivilibre3-4/+45
* Fix spec compliance; tweaks without values are valid (default to True, which is only concretely specified for `highlight`, but it seems only reasonable to generalise) * Changelog for 7766. * Add documentation to `tweaks_for_actions` May as well tidy up when I'm here. * Add a test for `tweaks_for_actions`
2020-07-06Allow to use higher versions of prometheus_client (#7780)Oliver Kurz2-1/+2
Fixes https://github.com/matrix-org/synapse/issues/7641 The package was pinned to <0.8.0 without an obvious reasoning with 7ad1d7635 in https://github.com/matrix-org/synapse/pull/5636 while the version selection looks to just try to exclude an arbitrary next minor version number that might introduce API breaking changes. Selecting the next minor number might be a good conservative selection. Downstream distributions already reported success patching out the version requirements. This also fixes the integration of upgraded packages into openSUSE packages, e.g. for openSUSE Tumbleweed which already ships prometheus_client >= 0.8 . Signed-off-by: Oliver Kurz <okurz@suse.de> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2020-07-05isort 5 compatibility (#7786)Will Hunt23-38/+22
The CI appears to use the latest version of isort, which is a problem when isort gets a major version bump. Rather than try to pin the version, I've done the necessary to make isort5 happy with synapse.
2020-07-03Merge different Resource implementation classes (#7732)Erik Johnston18-318/+322
2020-07-03Fix inconsistent handling of upper and lower cases of email addresses. (#7021)Dirk Klimpel8-48/+279
fixes #7016
2020-07-03Allow YAML config file to contain None (#7779)Alex Kotov2-1/+3
Useful when config file is fully commented Signed-off-by: Alex Kotov <kotovalexarian@gmail.com>
2020-07-02Fix a typo. v1.16.0rc2Patrick Cloke1-1/+1
2020-07-02Move 1.15.2 after 1.16.0rc2.Patrick Cloke1-20/+20
2020-07-021.16.0rc2Patrick Cloke4-3/+19
2020-07-02Remove an extraneous space. v1.15.2 github/release-v1.15.2 release-v1.15.2Patrick Cloke1-1/+1
2020-07-02Add links to the fixes.Patrick Cloke1-2/+2
2020-07-02Fix tense in the release notes.Patrick Cloke1-1/+1
2020-07-021.15.2Patrick Cloke3-1/+27
2020-07-02Correctly handle outliers as prev events over federationErik Johnston1-3/+3
2020-07-02Ensure that HTML pages served from Synapse include headers to avoid embedding.Patrick Cloke10-94/+103
2020-07-02Add option to autobind user's email on registration (#51)Andrew Morgan6-25/+183
Adds an option, `bind_new_user_emails_to_sydent`, which uses Sydent's [internal bind api](https://github.com/matrix-org/sydent#internal-bind-and-unbind-api) to automatically bind email addresses of users immediately after they register. This is quite enterprise-specific, but could be generally useful to multiple organizations. This aims to solve the problem of requiring users to verify their email twice when using the functionality of an identity server in a corporate deployment - where both the homeserver and identity server are controlled. It does with while eliminating the need for the `account_threepid_delegates.email` option, which historically has been a very complicated option to reason about.
2020-07-01Hack to add push priority to push notifications (#7765)reivilibre3-8/+362
* Remove obsolete comment about ancient temporary code Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> * Implement hack to set push priority based on whether the tweaks indicate the event might cause effects. * Changelog for 7765 Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> * Antilint * Add tests for push priority Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> * Update synapse/push/httppusher.py Co-authored-by: Brendan Abolivier <babolivier@matrix.org> * Antilint * Remove needless invites from tests. Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
2020-07-01Add early returns to `_check_for_soft_fail` (#7769)Richard van der Hoff2-64/+56
my editor was complaining about unset variables, so let's add some early returns to fix that and reduce indentation/cognitive load.
2020-07-01Use symbolic names for replication stream names (#7768)Richard van der Hoff11-22/+27
This makes it much easier to find where streams are referenced.
2020-07-01Type checking for `FederationHandler` (#7770)Richard van der Hoff3-17/+32
fix a few things to make this pass mypy.
2020-07-01Fix new metric where we used ms instead of seconds (#7771)Erik Johnston3-2/+3
Introduced in #7755, not yet released.
2020-07-01Fix incorrect error message when database CTYPE was set incorrectly. (#7760)Richard van der Hoff2-1/+2
2020-07-01Pin link in CHANGES.md v1.16.0rc1Andrew Morgan1-1/+1
2020-07-01Fixes to CHANGES.mdAndrew Morgan1-8/+12
2020-07-011.16.0rc1Andrew Morgan45-44/+71
2020-07-01Back out MSC2625 implementation (#7761)Brendan Abolivier11-189/+53
2020-06-30