summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* Fixup changelog v1.90.0rc1Erik Johnston2023-08-081-3/+3
|
* Fixup changelogErik Johnston2023-08-081-3/+3
|
* 1.90.0rc1Erik Johnston2023-08-0830-29/+72
|
* Allow modules to schedule delayed background calls. (#15993)reivilibre2023-08-082-0/+42
| | | | | | | | | | | | | | | * Add a module API function to provide `call_later` * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * Add comments * Update version number --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* Remove old rows from the `cache_invalidation_stream_by_instance` table ↵reivilibre2023-08-082-0/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | automatically. (This table is not used when Synapse is configured to use SQLite.) (#15868) * Add a cache invalidation clean-up task * Run the cache invalidation stream clean-up on the background worker * Tune down * call_later is in millis! * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * fixup! Add a cache invalidation clean-up task * Update synapse/storage/databases/main/cache.py Co-authored-by: Eric Eastwood <erice@element.io> * Update synapse/storage/databases/main/cache.py Co-authored-by: Eric Eastwood <erice@element.io> * MILLISEC -> MS * Expand on comment * Move and tweak comment about Postgres * Use `wrap_as_background_process` --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> Co-authored-by: Eric Eastwood <erice@element.io>
* Fix endpoint improperly declaring support for MSC3814 (#16068)Shay2023-08-072-10/+9
|
* Drop backwards compat hack for event serialization (#16069)Shay2023-08-072-11/+2
|
* Add notes describing Synapse's streams (#16015)David Robertson2023-08-073-0/+159
| | | | Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
* Bump jsonschema from 4.18.3 to 4.19.0 (#16081)dependabot[bot]2023-08-071-3/+3
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump serde from 1.0.179 to 1.0.183 (#16074)dependabot[bot]2023-08-071-7/+7
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump regex from 1.9.1 to 1.9.3 (#16073)dependabot[bot]2023-08-071-6/+6
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump types-opentracing from 2.4.10.5 to 2.4.10.6 (#16078)dependabot[bot]2023-08-071-3/+3
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump furo from 2023.5.20 to 2023.7.26 (#16077)dependabot[bot]2023-08-071-3/+3
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump types-setuptools from 68.0.0.0 to 68.0.0.3 (#16079)dependabot[bot]2023-08-071-3/+3
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump phonenumbers from 8.13.14 to 8.13.18 (#16076)dependabot[bot]2023-08-071-3/+3
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix deletion for Dehydrated Devices (#16046)Shay2023-08-044-5/+165
|
* Stabilize support for MSC3970: updated transaction semantics (scope to ↵Patrick Cloke2023-08-049-59/+48
| | | | | | | `device_id`) (#15629) For now this maintains compatible with old Synapses by falling back to using transaction semantics on a per-access token. A future version of Synapse will drop support for this.
* Move support for application service query parameter authorization behind a ↵Shay2023-08-036-14/+144
| | | | configuration option (#16017)
* Allow config of the backoff algorithm for the federation client. (#15754)Mathieu Velten2023-08-036-26/+64
| | | | | | | | | | | Adds three new configuration variables: * destination_min_retry_interval is identical to before (10mn). * destination_retry_multiplier is now 2 instead of 5, the maximum value will be reached slower. * destination_max_retry_interval is one day instead of (essentially) infinity. Capping this will cause destinations to continue to be retried sometimes instead of being lost forever. The previous value was 2 ^ 62 milliseconds.
* Allow modules to check whether the current worker is configured to run ↵reivilibre2023-08-032-0/+13
| | | | background tasks. (#15991)
* Add forward-compatibility for the redacts property (MSC2174). (#16013)Patrick Cloke2023-08-023-25/+61
| | | | | | | | The location of the redacts field changes in room version 11. Ensure it is copied to the *new* location for *old* room versions for forwards-compatibility with clients. Note that copying it to the *old* location for the *new* room version was previously handled.
* Update MSC3958 support to interact with intentional mentions. (#15992)Patrick Cloke2023-08-026-42/+64
| | | | | | | * Updates the rule ID. * Use `event_property_is` instead of `event_match`. This updates the implementation of MSC3958 to match the latest text from the MSC.
* Bump cryptography from 41.0.2 to 41.0.3 (#16048)dependabot[bot]2023-08-021-24/+24
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update `flake.lock` to fix running the nix developer environment on MacOS ↵Andrew Morgan2023-08-023-23/+42
| | | | (#16019)
* Update certifi to 2023.7.22 and pygments to 2.15.1. (#16044)Patrick Cloke2023-08-012-7/+8
|
* Properly setup the additional sequences in the portdb script. (#16043)Patrick Cloke2023-08-012-3/+16
| | | | | The un_partial_stated_event_stream_sequence and application_services_txn_id_seq were never properly configured in the portdb script, resulting in an error on start-up.
* Trim whitespace when setting display names (#16031)Mohit Rathee2023-08-013-1/+14
|
* Add metrics tracking for eviction to ResponseCache (#16028)Jason Little2023-08-012-2/+9
| | | | Track whether the ResponseCache is evicting due to invalidation or due to time.
* Merge branch 'master' into developDavid Robertson2023-08-013-1/+12
|\
| * 1.89.0 v1.89.0David Robertson2023-08-013-1/+12
| |
* | Combine duplicated code for calculating an event ID from a txn ID (#16023)Patrick Cloke2023-07-313-32/+36
| | | | | | | | Refactoring related to stabilization of MSC3970, refactor to combine code which has the same logic.
* | Bump serde from 1.0.175 to 1.0.179 (#16033)dependabot[bot]2023-07-311-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [serde](https://github.com/serde-rs/serde) from 1.0.175 to 1.0.179. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.179) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump immutabledict from 2.2.4 to 3.0.0 (#16034)dependabot[bot]2023-07-311-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [immutabledict](https://github.com/corenting/immutabledict) from 2.2.4 to 3.0.0. - [Release notes](https://github.com/corenting/immutabledict/releases) - [Changelog](https://github.com/corenting/immutabledict/blob/master/CHANGELOG.md) - [Commits](https://github.com/corenting/immutabledict/compare/v2.2.4...v3.0.0) --- updated-dependencies: - dependency-name: immutabledict dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Do not expose Admin API in caddy reverse proxy example (#16027)Nils2023-07-312-1/+2
| | | | | | Signed-off-by: Nils ANDRÉ-CHANG <nils@nilsand.re>
* | Bump service-identity from 21.1.0 to 23.1.0 (#16038)dependabot[bot]2023-07-311-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [service-identity](https://github.com/pyca/service-identity) from 21.1.0 to 23.1.0. - [Release notes](https://github.com/pyca/service-identity/releases) - [Changelog](https://github.com/pyca/service-identity/blob/main/CHANGELOG.md) - [Commits](https://github.com/pyca/service-identity/compare/21.1.0...23.1.0) --- updated-dependencies: - dependency-name: service-identity dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Add ability to wait for locks and add locks to purge history / room deletion ↵Erik Johnston2023-07-3116-108/+783
| | | | | | | | | | (#15791) c.f. #13476
* | Bump types-commonmark from 0.9.2.3 to 0.9.2.4 (#16037)dependabot[bot]2023-07-311-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump serde_json from 1.0.103 to 1.0.104 (#16032)dependabot[bot]2023-07-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.103 to 1.0.104. - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.103...v1.0.104) --- updated-dependencies: - dependency-name: serde_json dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-jsonschema from 4.17.0.8 to 4.17.0.10 (#16036)dependabot[bot]2023-07-311-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-jsonschema](https://github.com/python/typeshed) from 4.17.0.8 to 4.17.0.10. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-jsonschema dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-netaddr from 0.8.0.8 to 0.8.0.9 (#16035)dependabot[bot]2023-07-311-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-netaddr](https://github.com/python/typeshed) from 0.8.0.8 to 0.8.0.9. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-netaddr dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Clarify comment on key uploads over replication (#16016)Shay2023-07-272-2/+4
| |
* | Fix 404 on /profile when the display name is empty but not the avatar (#16012)Mathieu Velten2023-07-273-1/+12
| |
* | Update PyYAML to 6.0.1 (#16011)Mathieu Velten2023-07-272-41/+42
| |
* | Attempt to fix labelling in docker workflow (#16009)David Robertson2023-07-272-1/+8
| |
* | Remove support for legacy application service paths (#15964)Shay2023-07-263-124/+12
| |
* | Inline SQL queries using boolean parameters (#15525)Anshul Madnawat2023-07-268-25/+24
| | | | | | | | SQLite now supports TRUE and FALSE constants, simplify some queries by inlining those instead of passing them as arguments.
* | Add synapse version as Docker container label (#15972)Mo Balaa2023-07-262-1/+8
| | | | | | | | Co-authored-by: Mo Balaa <balaa@fractalnetworks.co>
* | Merge branch 'release-v1.89' into developMathieu Velten2023-07-2639-47/+89
|\|
| * Edit changelog v1.89.0rc1Mathieu Velten2023-07-261-7/+7
| |
| * Remove changelog fileMathieu Velten2023-07-261-1/+0
| |
| * Bump DB version to 79 since synapse v1.88 was already there (#15998)Mathieu Velten2023-07-267-16/+22
| |
| * 1.89.0rc1Mathieu Velten2023-07-2533-31/+68
| |
* | Bump serde from 1.0.171 to 1.0.175 (#15982)dependabot[bot]2023-07-261-4/+4
|/ | | | | | | | | | | | | | | Bumps [serde](https://github.com/serde-rs/serde) from 1.0.171 to 1.0.175. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.175) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump pygithub from 1.58.2 to 1.59.0 (#15834)dependabot[bot]2023-07-251-3/+3
| | | | | | | | | | | | | | | | Bumps [pygithub](https://github.com/pygithub/pygithub) from 1.58.2 to 1.59.0. - [Release notes](https://github.com/pygithub/pygithub/releases) - [Changelog](https://github.com/PyGithub/PyGithub/blob/main/doc/changes.rst) - [Commits](https://github.com/pygithub/pygithub/compare/v1.58.2...v1.59.0) --- updated-dependencies: - dependency-name: pygithub dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Support MSC3814: Dehydrated Devices (#15929)Shay2023-07-247-12/+603
| | | | | | Signed-off-by: Nicolas Werner <n.werner@famedly.com> Co-authored-by: Nicolas Werner <n.werner@famedly.com> Co-authored-by: Nicolas Werner <89468146+nico-famedly@users.noreply.github.com> Co-authored-by: Hubert Chathi <hubert@uhoreg.ca>
* Fix broken Arch Linux package link (#15981)SnipeX_2023-07-242-2/+3
|
* Resync stale devices in background (#15975)Erik Johnston2023-07-242-1/+9
| | | | This is so we don't block responding to federation transaction while we try and fetch the device lists.
* Bump click from 8.1.3 to 8.1.6 (#15984)dependabot[bot]2023-07-241-3/+3
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump sentry-sdk from 1.26.0 to 1.28.1 (#15985)dependabot[bot]2023-07-241-3/+3
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump pillow from 9.4.0 to 10.0.0 (#15986)dependabot[bot]2023-07-241-83/+62
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump types-requests from 2.31.0.1 to 2.31.0.2 (#15983)dependabot[bot]2023-07-241-3/+3
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Properly handle redactions of creation events (#15973)Shay2023-07-233-5/+13
|
* Actually stop reading from column `user_id` of tables `profiles` (#15955)Shay2023-07-235-12/+12
|
* Build packages for Debian Trixie (#15961)Shay2023-07-232-0/+2
|
* Speed up updating state in large rooms (#15971)Erik Johnston2023-07-205-131/+141
| | | This should speed up updating state in rooms with lots of state.
* Fixed grafana deploy annotations in the dashboard config, so it shows for ↵Will Lewis2023-07-202-1/+2
| | | | | | | | | those not managing matrix.org (#15957) Removed the 'matrix.org' hardcorded instance setting Originally introduced in #15674 Co-authored-by: wrjlewis <will.lewis@askattest.com>
* Don't log exceptions for every non-200 response (#15969)Erik Johnston2023-07-202-4/+1
| | | Introduced in #15913
* Reduce the amount of state we pull out (#15968)Erik Johnston2023-07-204-12/+14
|
* Ensure a long state res does not starve CPU (#15960)Erik Johnston2023-07-192-1/+9
| | | We do this by yielding the reactor in hot loops.
* Fix bad merge of #15933 (#15958)Erik Johnston2023-07-193-0/+1
| | | This was because we reverted the bump of the schema version, so we were not applying the new deltas.
* Fix race in triggers for read/write locks. (#15933)Erik Johnston2023-07-195-98/+135
|
* Fix background schema updates failing over a large upgrade gap (#15887)Shay2023-07-182-0/+71
|
* Merge branch 'master' into developOlivier Wilkinson (reivilibre)2023-07-1812-124/+189
|\
| * 1.88.0 v1.88.0Olivier Wilkinson (reivilibre)2023-07-184-3/+16
| |
| * Revert "Stop writing to column `user_id` of tables `profiles` and ↵Shay2023-07-1810-122/+174
| | | | | | | | | | | | | | | | | | `user_filters`. (#15953) * Revert "Stop writing to column `user_id` of tables `profiles` and `user_filters` (#15787)" This reverts commit f25b0f88081bb436bef914983cff7087b54eba5f. * newsfragement
* | Support room version 11 (#15912)Patrick Cloke2023-07-1819-290/+190
| | | | | | | | | | And fix a bug in the implementation of the updated redaction format (MSC2174) where the top-level redacts field was not properly added for backwards-compatibility.
* | Add a locality to a few presence metrics (#15952)Jason Little2023-07-182-13/+25
| |
* | Re-introduce the outbound federation proxy (#15913)Eric Eastwood2023-07-1832-96/+1128
| | | | | | | | | | Allow configuring the set of workers to proxy outbound federation traffic through (`outbound_federation_restricted_to`). This is useful when you have a worker setup with `federation_sender` instances responsible for sending outbound federation requests and want to make sure *all* outbound federation traffic goes through those instances. Before this change, the generic workers would still contact federation themselves for things like profile lookups, backfill, etc. This PR allows you to set more strict access controls/firewall for all workers and only allow the `federation_sender`'s to contact the outside world.
* | Bump anyhow from 1.0.71 to 1.0.72 (#15949)dependabot[bot]2023-07-171-2/+2
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump pyo3-log from 0.8.2 to 0.8.3 (#15951)dependabot[bot]2023-07-171-2/+2
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump serde_json from 1.0.100 to 1.0.103 (#15950)dependabot[bot]2023-07-171-2/+2
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump jsonschema from 4.17.3 to 4.18.3 (#15948)dependabot[bot]2023-07-171-42/+144
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump typing-extensions from 4.5.0 to 4.7.1 (#15947)dependabot[bot]2023-07-171-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump pydantic from 1.10.10 to 1.10.11 (#15946)dependabot[bot]2023-07-171-37/+37
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump prometheus-client from 0.17.0 to 0.17.1 (#15945)dependabot[bot]2023-07-171-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Pin the rust version in `flake.nix`, and bump to 1.70.0 to fix installing ↵Andrew Morgan2023-07-173-43/+87
| | | | | | | | `ruff` (#15940)
* | Bump cryptography from 41.0.1 to 41.0.2 (#15943)dependabot[bot]2023-07-151-20/+24
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Document that you cannot login as yourself on ↵Will Hunt2023-07-142-1/+3
| | | | | | | | /_synapse/admin/v1/users/<user_id>/login (#15938)
* | Stop accepting 'user' parameter for application service registration. (#15928)Patrick Cloke2023-07-133-8/+15
| | | | | | This is unspecced, but has existed for a very long time.
* | Bump types-pillow from 9.5.0.4 to 10.0.0.1 (#15932)dependabot[bot]2023-07-131-3/+5
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Remove unneeded __init__. (#15926)Patrick Cloke2023-07-122-9/+1
| | | | | | | | Remove an __init__ which only calls super() without changing the input arguments.
* | Fix running with an empty experimental features section. (#15925)Patrick Cloke2023-07-122-1/+2
| |
* | Fix push for invites received over federation (#15820)Erik Johnston2023-07-122-1/+37
| |
* | Mark get_user_in_directory private since only used in tests (#15884)Mathieu Velten2023-07-124-20/+14
| |
* | Make it more obvious which Python version runs on a given Linux distribution ↵Eric Eastwood2023-07-112-7/+12
| | | | | | | | | | | | | | (#15909) Make it more obvious which Python version runs on a given Linux distribution so when we end up dropping support for a given Python version, we can more easily find the reference to the Python version and remove any references for the distribution. We don't want to be running tests or building packages on a distribution that no longer has a supported Python version. This way, we can avoid another situation like when we dropped support for Python 3.7 but forgot to drop the Debian Buster references everywhere (https://github.com/matrix-org/synapse/pull/15893)
* | Better clarify how to run a worker instance (pass both configs) (#15921)Eric Eastwood2023-07-112-2/+3
| | | | | | | | | | | | | | | | | | Previously, if you just followed the instructions per the docs, you just ran into an error: ```sh $ poetry run synapse_worker --config-path homeserver_generic_worker1.yaml Missing mandatory `server_name` config option. ```
* | Better warning in logs when we fail to fetch an alias (#15922)Eric Eastwood2023-07-112-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | **Before:** ``` Error retrieving alias ``` **After:** ``` Error retrieving alias #foo:bar -> 401 Unauthorized ``` *Spawning from creating the [manual testing strategy for the outbound federation proxy](https://github.com/matrix-org/synapse/pull/15773).*
* | Bump Unix sockets intro version (#15924)Eric Eastwood2023-07-112-1/+2
| | | | | | https://github.com/matrix-org/synapse/pull/15708 didn't quite make the cut for `1.88.0` this morning.
* | Unix Sockets for HTTP Replication (#15708)Jason Little2023-07-1116-52/+260
| | | | | | | | | | | | | | | | | | Unix socket support for `federation` and `client` Listeners has existed now for a little while(since [1.81.0](https://github.com/matrix-org/synapse/pull/15353)), but there was one last hold out before it could be complete: HTTP Replication communication. This should finish it up. The Listeners would have always worked, but would have had no way to be talked to/at. --------- Co-authored-by: Eric Eastwood <madlittlemods@gmail.com> Co-authored-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> Co-authored-by: Eric Eastwood <erice@element.io>
* | Add + as an allowed character for Matrix IDs (MSC4009) (#15911)Patrick Cloke2023-07-117-39/+17
|/
* Don't build wheels for Python 3.7 (#15917) v1.88.0rc1David Robertson2023-07-112-2/+10
| | | | | | | * Don't build wheels for CPython or PyPy 3.7 * Update pyproject.toml comments * Manually update the changelog
* Call out upgrade notes in READMEDavid Robertson2023-07-111-2/+6
|
* 1.88.0rc1David Robertson2023-07-1125-25/+56
|
* Add `Server` to Access-Control-Expose-Headers header (#15908)Michael Telatynski2023-07-113-2/+3
|
* Make the media `/upload` tracing less ambiguous (#15888)Eric Eastwood2023-07-103-42/+62
| | | | | | | | | | A lot of the functions have the same name in this space like `store_file`, and we also do it multiple times for different reasons (main media repo, other storage providers, thumbnails, etc) so it's good to differentiate them so your head doesn't explode. Follow-up to https://github.com/matrix-org/synapse/pull/15850 Tracing instrumentation to media `/upload` code paths to investigate https://github.com/matrix-org/synapse/issues/15841
* Drop debian buster (#15893)Shay2023-07-105-4/+8
|
* Revert "Federation outbound proxy" (#15910)Eric Eastwood2023-07-1029-890/+90
| | | | | | Revert "Federation outbound proxy (#15773)" This reverts commit b07b14b494ae1dd564b4c44f844c9a9545b3d08a.
* Revert "Placeholder changelog"Eric Eastwood2023-07-101-1/+0
| | | | This reverts commit 6e731e86bfa9d92f983f7df9367e37aa80733078.
* Fix downgrading to previous version of Synapse (#15907)Erik Johnston2023-07-105-6/+24
| | | We do this by marking the constraint as deferrable.
* Fix building rust with nightly (#15906)Erik Johnston2023-07-102-0/+2
| | | Also fix up a warning.
* Placeholder changelogEric Eastwood2023-07-101-0/+1
|
* Bump regex from 1.8.4 to 1.9.1 (#15902)dependabot[bot]2023-07-101-4/+16
| | | | | | | | | | | | | | | | Bumps [regex](https://github.com/rust-lang/regex) from 1.8.4 to 1.9.1. - [Release notes](https://github.com/rust-lang/regex/releases) - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/regex/compare/1.8.4...1.9.1) --- updated-dependencies: - dependency-name: regex dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump serde_json from 1.0.99 to 1.0.100 (#15901)dependabot[bot]2023-07-101-13/+13
| | | | | | | | | | | | | | | Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.99 to 1.0.100. - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.99...v1.0.100) --- updated-dependencies: - dependency-name: serde_json dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump ruff from 0.0.275 to 0.0.277 (#15900)dependabot[bot]2023-07-102-20/+20
| | | | | | | | | | | | | | | | Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.275 to 0.0.277. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.0.275...v0.0.277) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump lxml from 4.9.2 to 4.9.3 (#15897)dependabot[bot]2023-07-101-80/+93
| | | | | | | | | | | | | | | | Bumps [lxml](https://github.com/lxml/lxml) from 4.9.2 to 4.9.3. - [Release notes](https://github.com/lxml/lxml/releases) - [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt) - [Commits](https://github.com/lxml/lxml/compare/lxml-4.9.2...lxml-4.9.3) --- updated-dependencies: - dependency-name: lxml dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Stop running sytest on buster/python3.7 (#15892)Shay2023-07-072-5/+1
|
* Stop writing to column `user_id` of tables `profiles` and `user_filters` ↵Shay2023-07-0710-173/+123
| | | | (#15787)
* Remove `worker_replication_*` settings from worker doc (#15872)Dirk Klimpel2023-07-076-21/+2
| | | Co-authored-by: Mathieu Velten <mathieuv@matrix.org>
* Remove `worker_replication_*` deprecated settings, with helpful errors on ↵Jason Little2023-07-077-98/+49
| | | | | | startup (#15860) Co-authored-by: reivilibre <oliverw@matrix.org>
* Update link to the clients webpage, fix #15825 (#15874)sarthak shah2023-07-062-1/+2
|
* Federation outbound proxy (#15773)Eric Eastwood2023-07-0529-90/+890
| | | | | | | Allow configuring the set of workers to proxy outbound federation traffic through (`outbound_federation_restricted_to`). This is useful when you have a worker setup with `federation_sender` instances responsible for sending outbound federation requests and want to make sure *all* outbound federation traffic goes through those instances. Before this change, the generic workers would still contact federation themselves for things like profile lookups, backfill, etc. This PR allows you to set more strict access controls/firewall for all workers and only allow the `federation_sender`'s to contact the outside world. The original code is from @erikjohnston's branches which I've gotten in-shape to merge.
* Remove support for Python 3.7 (#15851)Eric Eastwood2023-07-0512-108/+55
| | | Fix https://github.com/matrix-org/synapse/issues/15836
* Add basic read/write lock (#15782)Erik Johnston2023-07-056-58/+730
|
* Add tracing to media `/upload` endpoint (#15850)Eric Eastwood2023-07-057-0/+27
| | | Add tracing instrumentation to media `/upload` code paths to investigate https://github.com/matrix-org/synapse/issues/15841
* docs/admin_api: fix header level on 'Users' page (#15852)Sumner Evans2023-07-052-3/+4
| | | Signed-off-by: Sumner Evans <sumner@beeper.com>
* Fix could not serialize access due to concurrent `DELETE` from ↵Jason Little2023-07-052-1/+7
| | | | | | | presence_stream (#15826) * Change update_presence to have a isolation level of READ_COMMITTED * changelog
* Add foreign key constraint to `event_forward_extremities`. (#15751)Erik Johnston2023-07-059-11/+699
|
* use Image.LANCZOS instead of Image.ANTIALIAS for thumbnail resize (#15876)an0nfunc2023-07-052-1/+2
| | | | | Image.ANTIALIAS is not defined in current pillow releases. Since ANTIALIAS was just using LANCZOS anyways, this is just a cosmetic change, but makes synapse work with most recent pillow releases. Signed-off-by: Giovanni Harting <539@idlegandalf.com>
* Add not_user_type param to the list accounts admin API (#15844)Michael Weimann2023-07-045-0/+128
| | | Signed-off-by: Michael Weimann <michaelw@element.io>
* Merge branch 'master' into developOlivier Wilkinson (reivilibre)2023-07-044-3/+23
|\
| * Add notes about Python 3.7 EOL v1.87.0Olivier Wilkinson (reivilibre)2023-07-041-0/+2
| |
| * Move warning up to the topOlivier Wilkinson (reivilibre)2023-07-041-3/+3
| |
| * 1.87.0Olivier Wilkinson (reivilibre)2023-07-045-5/+20
| |
| * Pin `pydantic` to <2.0.0 (#15862)Paarth Shah2023-07-043-38/+42
| | | | | | Signed-off-by: Paarth Shah <mail@shahpaarth.com>
* | Pin `pydantic` to <2.0.0 (#15862)Paarth Shah2023-07-043-38/+42
| | | | | | Signed-off-by: Paarth Shah <mail@shahpaarth.com>
* | devices: use combined ANY clause for faster cleanup (#15861)pacien2023-07-032-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Old device entries for the same user were being removed in individual SQL commands, making the batch take way longer than necessary. This combines the commands into a single one with a IN/ANY clause. Example of log entry before the change, regularly observed with "log_min_duration_statement = 10000" in PostgreSQL's config: LOG: duration: 42538.282 ms statement: DELETE FROM device_lists_stream WHERE user_id = '@someone' AND device_id = 'someid1' AND stream_id < 123456789 ; DELETE FROM device_lists_stream WHERE user_id = '@someone' AND device_id = 'someid2' AND stream_id < 123456789 ; [repeated for each device ID of that user, potentially a lot...] With the patch applied on my instance for the past couple of days, I no longer notice overly long statements of that particular kind. Signed-off-by: pacien <pacien.trangirard@pacien.net>
* | Fix the `devenv up` configuration which was ignoring the config overrides. ↵reivilibre2023-07-033-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#15854) * Fix use of config override directory in `devenv up` `--config-directory` is for the generate config script; `-c` is for usage * Add homeserver config override directory to gitignore * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* | Add a timeout that aborts any Postgres statement taking more than 1 hour. ↵reivilibre2023-07-032-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | (#15853) * Add a timeout to Postgres statements * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* | Bump sentry-sdk from 1.25.1 to 1.26.0 (#15867)dependabot[bot]2023-07-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.25.1 to 1.26.0. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/1.25.1...1.26.0) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-pyopenssl from 23.2.0.0 to 23.2.0.1 (#15866)dependabot[bot]2023-07-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-pyopenssl](https://github.com/python/typeshed) from 23.2.0.0 to 23.2.0.1. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-pyopenssl dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump importlib-metadata from 6.6.0 to 6.7.0 (#15865)dependabot[bot]2023-07-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [importlib-metadata](https://github.com/python/importlib_metadata) from 6.6.0 to 6.7.0. - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v6.6.0...v6.7.0) --- updated-dependencies: - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump authlib from 1.2.0 to 1.2.1 (#15864)dependabot[bot]2023-07-031-3/+3
|/ | | | | | | | | | | | | | | | Bumps [authlib](https://github.com/lepture/authlib) from 1.2.0 to 1.2.1. - [Release notes](https://github.com/lepture/authlib/releases) - [Changelog](https://github.com/lepture/authlib/blob/master/docs/changelog.rst) - [Commits](https://github.com/lepture/authlib/compare/v1.2.0...v1.2.1) --- updated-dependencies: - dependency-name: authlib dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Split out 2022 changes from the changelog (#15846)Eric Eastwood2023-06-283-2764/+2767
| | | Split out 2022 changes from the changelog so the rendered version in GitHub doesn't timeout as much.
* Note last release with Python 3.7 support v1.87.0rc1Eric Eastwood2023-06-271-0/+3
| | | | See https://github.com/matrix-org/synapse/issues/15836
* Prepare changelog for v1.87.0rc1Eric Eastwood2023-06-2724-22/+59
|
* Fix sqlite `user_filters` upgrade (#15817)Shay2023-06-274-3/+92
|
* Bump serde_json from 1.0.97 to 1.0.99 (#15832)dependabot[bot]2023-06-261-2/+2
| | | | | | | | | | | | | | | Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.97 to 1.0.99. - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.97...v1.0.99) --- updated-dependencies: - dependency-name: serde_json dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump towncrier from 22.12.0 to 23.6.0 (#15831)dependabot[bot]2023-06-261-4/+4
| | | | | | | | | | | | | | | | Bumps [towncrier](https://github.com/twisted/towncrier) from 22.12.0 to 23.6.0. - [Release notes](https://github.com/twisted/towncrier/releases) - [Changelog](https://github.com/twisted/towncrier/blob/trunk/NEWS.rst) - [Commits](https://github.com/twisted/towncrier/compare/22.12.0...23.6.0) --- updated-dependencies: - dependency-name: towncrier dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add login spam checker API (#15838)Erik Johnston2023-06-267-6/+285
|
* Bump types-opentracing from 2.4.10.4 to 2.4.10.5 (#15830)dependabot[bot]2023-06-261-3/+3
| | | | | | | | | | | | | | Bumps [types-opentracing](https://github.com/python/typeshed) from 2.4.10.4 to 2.4.10.5. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-opentracing dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump ruff from 0.0.272 to 0.0.275 (#15833)dependabot[bot]2023-06-262-20/+20
| | | | | | | | | | | | | | | | Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.272 to 0.0.275. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.0.272...v0.0.275) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump types-setuptools from 67.8.0.0 to 68.0.0.0 (#15835)dependabot[bot]2023-06-261-3/+3
| | | | | | | | | | | | | | Bumps [types-setuptools](https://github.com/python/typeshed) from 67.8.0.0 to 68.0.0.0. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-setuptools dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump cryptography from 40.0.2 to 41.0.1 (#15800)dependabot[bot]2023-06-221-25/+25
| | | | | | | | | | | | | | | Bumps [cryptography](https://github.com/pyca/cryptography) from 40.0.2 to 41.0.1. - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pyca/cryptography/compare/40.0.2...41.0.1) --- updated-dependencies: - dependency-name: cryptography dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix forgotten rooms missing in initial sync (#15815)Nicolas Werner2023-06-213-0/+35
| | | | | | | | If you leave a room and forget it, then rejoin it, the room would be missing from the next initial sync. fixes #13262 Signed-off-by: Nicolas Werner <n.werner@famedly.com>
* Fix harmless exception in port DB script (#15814)Erik Johnston2023-06-212-0/+4
| | | | | | | The port DB script would try and run database background tasks, which could fail if the data they acted on was in the process of being ported. These exceptions were non fatal. Fixes #15789
* Fix typo in faster join docs (#15812)Erik Johnston2023-06-212-1/+2
| | | Fixes #15756
* Allow for the configuration of max request retries and min/max retry delays ↵Mathieu Velten2023-06-215-22/+100
| | | | in the matrix federation client (#15783)
* Merge branch 'master' into developErik Johnston2023-06-203-1/+13
|\
| * 1.86.0 v1.86.0Mathieu Velten2023-06-203-1/+13
| |
* | Fix Sytest environmental variable evaluation in CI (#15804)Shay2023-06-202-2/+3
| |
* | Fix admin api documentation typo (#15805)ew-at-vier2023-06-202-1/+2
| | | | | | | | | | * Fix admin api documentation typo Signed-off-by: Eric Wolf <eric.wolf@vier.ai>
* | Switch from `matrix://` to `matrix-federation://` scheme for internal ↵Eric Eastwood2023-06-207-29/+43
| | | | | | | | | | | | | | Synapse routing of outbound federation traffic (#15806) `matrix://` is a registered specced scheme nowadays and doesn't make sense for our internal to Synapse use case anymore. ([discussion] (https://github.com/matrix-org/synapse/pull/15773#discussion_r1227598679))
* | Bump ijson from 3.2.0.post0 to 3.2.1 (#15802)dependabot[bot]2023-06-191-79/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [ijson](https://github.com/ICRAR/ijson) from 3.2.0.post0 to 3.2.1. - [Changelog](https://github.com/ICRAR/ijson/blob/master/CHANGELOG.md) - [Commits](https://github.com/ICRAR/ijson/compare/v3.2.0.post0...v3.2.1) --- updated-dependencies: - dependency-name: ijson dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump attrs from 22.2.0 to 23.1.0 (#15801)dependabot[bot]2023-06-191-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [attrs](https://github.com/python-attrs/attrs) from 22.2.0 to 23.1.0. - [Release notes](https://github.com/python-attrs/attrs/releases) - [Changelog](https://github.com/python-attrs/attrs/blob/main/CHANGELOG.md) - [Commits](https://github.com/python-attrs/attrs/compare/22.2.0...23.1.0) --- updated-dependencies: - dependency-name: attrs dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump phonenumbers from 8.13.13 to 8.13.14 (#15798)dependabot[bot]2023-06-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [phonenumbers](https://github.com/daviddrysdale/python-phonenumbers) from 8.13.13 to 8.13.14. - [Commits](https://github.com/daviddrysdale/python-phonenumbers/compare/v8.13.13...v8.13.14) --- updated-dependencies: - dependency-name: phonenumbers dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump ruff from 0.0.265 to 0.0.272 (#15799)dependabot[bot]2023-06-192-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [ruff](https://github.com/charliermarsh/ruff) from 0.0.265 to 0.0.272. - [Release notes](https://github.com/charliermarsh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](https://github.com/charliermarsh/ruff/compare/v0.0.265...v0.0.272) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump serde_json from 1.0.96 to 1.0.97 (#15797)dependabot[bot]2023-06-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.96 to 1.0.97. - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.96...v1.0.97) --- updated-dependencies: - dependency-name: serde_json dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Remove experimental MSC2716 implementation to incrementally import history ↵Eric Eastwood2023-06-1628-2103/+36
| | | | | | | | | | | | | | | | | | | | | | | | into existing rooms (#15748) Context for why we're removing the implementation: - https://github.com/matrix-org/matrix-spec-proposals/pull/2716#issuecomment-1487441010 - https://github.com/matrix-org/matrix-spec-proposals/pull/2716#issuecomment-1504262734 Anyone wanting to continue MSC2716, should also address these leftover tasks: https://github.com/matrix-org/synapse/issues/10737 Closes https://github.com/matrix-org/synapse/issues/10737 in the fact that it is not longer necessary to track those things.
* | Don't always lock "user_ips" table when performing non-native upsert (#15788)Andrew Morgan2023-06-162-1/+2
| |
* | push rules: fix internal conversion from _type to value (#15781)Mathieu Velten2023-06-164-17/+81
| | | | | | Also fix wrong rule names for `is_user_mention` and `is_room_mention`.
* | Regularly try to wake up dests instead of waiting for next PDU/EDU (#15743)Mathieu Velten2023-06-163-31/+26
| |
* | Fix unsafe hotserving behaviour for non-multimedia uploads. (#15680)Josh Qou2023-06-154-19/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix unsafe hotserving behaviour for non-multimedia uploads. * invert disposition assert * test_media_storage.py: run lint * test_base.py: /inline/attachment/s * Only return attachment for disposition type, update tests * Update synapse/media/_base.py Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> * Update changelog.d/15680.bugfix Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> * add attribution * Update changelog. --------- Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
* | Fix joining rooms through aliases where the alias server isn't a real ↵Tulir Asokan2023-06-142-1/+2
| | | | | | | | homeserver (#15776)
* | Merge branch 'release-v1.86' into developMathieu Velten2023-06-1438-99/+103
|\|
| * 1.86.0rc2 v1.86.0rc2Mathieu Velten2023-06-144-2/+18
| |
| * Revert "Allow for the configuration of max request retries and min/max retry ↵Mathieu Velten2023-06-145-68/+10
| | | | | | | | | | | | delays in the matrix federation client (#12504)" This reverts commit d84e66144dc12dacf71c987a2ba802dd59c0b68e.
| * Fix empty scope when having version mismatch between workers (#15774)Mathieu Velten2023-06-142-1/+2
| |
| * Fix changelog typo v1.86.0rc1Mathieu Velten2023-06-131-1/+1
| |
| * 1.86.0rc1Mathieu Velten2023-06-1333-31/+76
| |
* | Prefill events after invalidate not before when persisting events (#15758)Jason Little2023-06-145-5/+70
| | | | | | | | | | Fixes #15757
* | Document `looping_call()` functionality that will wait for the given ↵Eric Eastwood2023-06-132-0/+6
| | | | | | | | | | | | | | function to finish before scheduling another (#15772) Thanks to @erikjohnston for clarifying, https://github.com/matrix-org/synapse/pull/15743#discussion_r1226544457 We don't have to worry about calls stacking up if the given function takes longer than the scheduled time.
* | Replace `EventContext` fields `prev_group` and `delta_ids` with field ↵Shay2023-06-136-58/+126
| | | | | | | | `state_group_deltas` (#15233)
* | Fix MSC3983 support: only one OTK per device was returned through federation ↵Mathieu Velten2023-06-132-1/+4
| | | | | | | | (#15770)
* | Avoid backfill when we already have messages to return (#15737)Eric Eastwood2023-06-132-22/+116
| | | | | | | | | | We now only block the client to backfill when we see a large gap in the events (more than 2 events missing in a row according to `depth`), more than 3 single-event holes, or not enough messages to fill the response. Otherwise, we return the messages directly to the client and backfill in the background for eventual consistency sake. Fix https://github.com/matrix-org/synapse/issues/15696
* | Fix MSC3983 support: Use the unstable /keys/claim federation endpoint if ↵Patrick Cloke2023-06-132-1/+5
|/ | | | multiple keys are requested (#15755)
* Bump regex from 1.7.3 to 1.8.4 (#15769)dependabot[bot]2023-06-131-6/+6
| | | | | | | | | | | | | | | | Bumps [regex](https://github.com/rust-lang/regex) from 1.7.3 to 1.8.4. - [Release notes](https://github.com/rust-lang/regex/releases) - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/regex/compare/1.7.3...1.8.4) --- updated-dependencies: - dependency-name: regex dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump log from 0.4.18 to 0.4.19 (#15761)dependabot[bot]2023-06-131-2/+2
| | | | | | | | | | | | | | | | Bumps [log](https://github.com/rust-lang/log) from 0.4.18 to 0.4.19. - [Release notes](https://github.com/rust-lang/log/releases) - [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/log/compare/0.4.18...0.4.19) --- updated-dependencies: - dependency-name: log dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump minimum supported Rust version (#15768)Erik Johnston2023-06-124-10/+19
| | | | Important crates such as `log` and `regex` have bumped theirs to 1.60.0 as well.
* Bump pyo3-log from 0.8.1 to 0.8.2 (#15759)dependabot[bot]2023-06-121-2/+2
| | | | | | | | | | | | | | | Bumps [pyo3-log](https://github.com/vorner/pyo3-log) from 0.8.1 to 0.8.2. - [Changelog](https://github.com/vorner/pyo3-log/blob/main/CHANGELOG.md) - [Commits](https://github.com/vorner/pyo3-log/compare/v0.8.1...v0.8.2) --- updated-dependencies: - dependency-name: pyo3-log dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump serde from 1.0.163 to 1.0.164 (#15760)dependabot[bot]2023-06-121-4/+4
| | | | | | | | | | | | | | | Bumps [serde](https://github.com/serde-rs/serde) from 1.0.163 to 1.0.164. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump pyopenssl from 23.1.1 to 23.2.0 (#15765)dependabot[bot]2023-06-121-4/+4
| | | | | | | | | | | | | | | Bumps [pyopenssl](https://github.com/pyca/pyopenssl) from 23.1.1 to 23.2.0. - [Changelog](https://github.com/pyca/pyopenssl/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pyca/pyopenssl/compare/23.1.1...23.2.0) --- updated-dependencies: - dependency-name: pyopenssl dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump pydantic from 1.10.8 to 1.10.9 (#15762)dependabot[bot]2023-06-121-37/+37
| | | | | | | | | | | | | | | | Bumps [pydantic](https://github.com/pydantic/pydantic) from 1.10.8 to 1.10.9. - [Release notes](https://github.com/pydantic/pydantic/releases) - [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md) - [Commits](https://github.com/pydantic/pydantic/compare/v1.10.8...v1.10.9) --- updated-dependencies: - dependency-name: pydantic dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump sentry-sdk from 1.25.0 to 1.25.1 (#15764)dependabot[bot]2023-06-121-3/+3
| | | | | | | | | | | | | | | | Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.25.0 to 1.25.1. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/1.25.0...1.25.1) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump phonenumbers from 8.13.11 to 8.13.13 (#15763)dependabot[bot]2023-06-121-3/+3
| | | | | | | | | | | | | | Bumps [phonenumbers](https://github.com/daviddrysdale/python-phonenumbers) from 8.13.11 to 8.13.13. - [Commits](https://github.com/daviddrysdale/python-phonenumbers/compare/v8.13.11...v8.13.13) --- updated-dependencies: - dependency-name: phonenumbers dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump types-pyopenssl from 23.1.0.2 to 23.2.0.0 (#15766)dependabot[bot]2023-06-121-159/+7
| | | | | | | | | | | | | | Bumps [types-pyopenssl](https://github.com/python/typeshed) from 23.1.0.2 to 23.2.0.0. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-pyopenssl dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Backfill in the background if we're doing it "just because" (#15710)Eric Eastwood2023-06-092-4/+15
| | | Fix https://github.com/matrix-org/synapse/issues/15702
* Speed up typechecking CI (#15752)Erik Johnston2023-06-092-4/+5
| | | | By restoring the rust cache before installing the project.
* Allow for the configuration of max request retries and min/max retry delays ↵Shay2023-06-095-10/+68
| | | | | | | in the matrix federation client (#12504) Co-authored-by: Mathieu Velten <mathieuv@matrix.org> Co-authored-by: Erik Johnston <erik@matrix.org>
* Merge branch 'master' into developErik Johnston2023-06-084-2/+17
|\
| * Merge branch 'release-v1.85'Erik Johnston2023-06-084-2/+17
| |\
| | * Fix up changelog v1.85.2Erik Johnston2023-06-081-1/+1
| | |
| | * 1.85.2Erik Johnston2023-06-084-2/+16
| | |
| | * Fix using TLS for replication (#15746)Erik Johnston2023-06-082-1/+2
| | | | | | | | | Fixes #15744.
* | | Clear event caches when we purge history (#15609)Erik Johnston2023-06-089-14/+184
| | | | | | | | | | | | | | | | | | | | | This should help a little with #13476 --------- Co-authored-by: Patrick Cloke <patrickc@matrix.org>
* | | Quick & dirty metric for background update status (#15740)David Robertson2023-06-074-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Quick & dirty metric for background update status * Changelog * Remove debug Co-authored-by: Mathieu Velten <mathieuv@matrix.org> * Actually write to _aborted --------- Co-authored-by: Mathieu Velten <mathieuv@matrix.org>
* | | Remove superfluous `room_memberships` join from background update (#15733)Eric Eastwood2023-06-072-1/+1
| | | | | | | | | Spawning from https://github.com/matrix-org/synapse/pull/15731
* | | Remove redundant `room_memberships` join to find participating servers in a ↵Eric Eastwood2023-06-072-3/+3
| | | | | | | | | | | | | | | room (#15732) Spawning from https://github.com/matrix-org/synapse/pull/15731
* | | Check required power levels earlier in createRoom handler. (#15695)Grant McLean2023-06-073-14/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Check required power levels earlier in createRoom handler. - If a server was configured to reject the creation of rooms with E2EE enabled (by specifying an unattainably high power level for "m.room.encryption" in default_power_level_content_override), the 403 error was not being triggered until after the room was created and before the "m.room.power_levels" was sent. This allowed a user to access the partially-configured room and complete the setup of E2EE and power levels manually. - This change causes the power level overrides to be checked earlier and the request to be rejected before the user gains access to the room. - A new `_validate_room_config` method is added to contain checks that should be run before a room is created. - The new test case confirms that a user request is rejected by the new validation method. Signed-off-by: Grant McLean <grant@catalyst.net.nz> * Add a changelog file. * Formatting fix for black. * Remove unneeded line from test. --------- Signed-off-by: Grant McLean <grant@catalyst.net.nz>
* | | Merge branch 'master' into developErik Johnston2023-06-074-2/+39
|\| |
| * | Merge branch 'release-v1.85'Erik Johnston2023-06-074-2/+39
| |\|
| | * Update changelog v1.85.1Erik Johnston2023-06-071-0/+2
| | |
| | * Update changelogErik Johnston2023-06-072-2/+1
| | |
| | * Fix schema delta error in 1.85 (#15739)Erik Johnston2023-06-072-2/+15
| | | | | | | | | | | | Some users seem to have multiple rows per user / room with a null thread ID, which we need to handle.
| | * 1.85.1Erik Johnston2023-06-074-2/+16
| | |
| | * Fix schema delta error in 1.85 (#15738)Erik Johnston2023-06-072-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | There appears to be a race where you can end up with entries in `event_push_summary` with both a `NULL` and `main` thread ID. Fixes #15736 Introduced in #15597
* | | No need for the extra join since `membership` is built-in to ↵Eric Eastwood2023-06-062-4/+4
| | | | | | | | | | | | | | | | | | | | | `current_state_events` (#15731) This helps with the upstream `is_host_joined()` and `is_host_invited()` functions. `membership` was added to `current_state_events` in https://github.com/matrix-org/synapse/pull/5706 and forced in https://github.com/matrix-org/synapse/pull/13745
* | | Trace functions which return `Awaitable` (#15650)Eric Eastwood2023-06-063-22/+59
| | |
* | | Update error to more plainly explain we can only authorize our own events ↵Eric Eastwood2023-06-062-1/+2
| | | | | | | | | | | | (#15725)
* | | Add context for when/why to use the `long_retries` option when sending ↵Eric Eastwood2023-06-062-2/+10
| | | | | | | | | | | | Federation requests (#15721)
* | | Improve performance of user directory search (#15729)Shay2023-06-062-4/+9
| | |
* | | Prevent "twisted trunk" and "latest deps" workflows from running on forks ↵Andrew Morgan2023-06-063-4/+44
| | | | | | | | | | | | (#15726)
* | | Remove some unused `server_name` fields (#15723)Sean Quah2023-06-066-5/+1
| | | | | | | | | Signed-off-by: Sean Quah <seanq@matrix.org>
* | | Merge remote-tracking branch 'origin/master' into developErik Johnston2023-06-061-1/+1
|\| |
| * | Fix link in changelogErik Johnston2023-06-061-1/+1
| |/
* | Merge branch 'master' into developErik Johnston2023-06-063-1/+28
|\|
| * Fixup changelog v1.85.0Erik Johnston2023-06-061-1/+1
| |
| * 1.85.0Erik Johnston2023-06-063-1/+28
| |
* | Stabilize support for MSC3952: Intentional mentions. (#15520)Patrick Cloke2023-06-0613-64/+27
| |
* | Some house keeping on `maybe_backfill()` functions (#15709)Eric Eastwood2023-06-052-0/+18
| |
* | Bump types-requests from 2.31.0.0 to 2.31.0.1 (#15715)dependabot[bot]2023-06-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-requests](https://github.com/python/typeshed) from 2.31.0.0 to 2.31.0.1. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-requests dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-jsonschema from 4.17.0.7 to 4.17.0.8 (#15716)dependabot[bot]2023-06-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-jsonschema](https://github.com/python/typeshed) from 4.17.0.7 to 4.17.0.8. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-jsonschema dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump sentry-sdk from 1.22.1 to 1.25.0 (#15714)dependabot[bot]2023-06-051-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.22.1 to 1.25.0. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/1.22.1...1.25.0) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump pyasn1 from 0.4.8 to 0.5.0 (#15713)dependabot[bot]2023-06-051-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pyasn1](https://github.com/pyasn1/pyasn1) from 0.4.8 to 0.5.0. - [Release notes](https://github.com/pyasn1/pyasn1/releases) - [Changelog](https://github.com/pyasn1/pyasn1/blob/main/CHANGES.rst) - [Commits](https://github.com/pyasn1/pyasn1/compare/v0.4.8...v0.5.0) --- updated-dependencies: - dependency-name: pyasn1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump library/redis from 6-bullseye to 7-bullseye in /docker (#15712)dependabot[bot]2023-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Bumps library/redis from 6-bullseye to 7-bullseye. --- updated-dependencies: - dependency-name: library/redis dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump importlib-metadata from 6.1.0 to 6.6.0 (#15711)dependabot[bot]2023-06-051-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [importlib-metadata](https://github.com/python/importlib_metadata) from 6.1.0 to 6.6.0. - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/CHANGES.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v6.1.0...v6.6.0) --- updated-dependencies: - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | `N + 3`: Read from column `full_user_id` rather than `user_id` of tables ↵Shay2023-06-0222-95/+252
| | | | | | | | `profiles` and `user_filters` (#15649)
* | Add a catch-all * to the supported relation types when redacting (#15705)Mathieu Velten2023-06-024-8/+143
| | | | | | This is an update to MSC3912 implementation
* | Log when events are (unexpectedly) filtered out of responses in tests (#14213)Eric Eastwood2023-06-017-14/+53
| | | | | | | | | | See https://github.com/matrix-org/synapse/pull/14095#discussion_r990335492 This is useful because when see that a relevant event is an `outlier` or `soft-failed`, then that's a good unexpected indicator explaining why it's not showing up. `filter_events_for_client` is used in `/sync`, `/messages`, `/context` which are all common end-to-end assertion touch points (also notifications, relations).
* | Merge branch 'release-v1.85' into developH. Shay2023-06-018-3/+92
|\|
| * 1.85.0rc2 v1.85.0rc2H. Shay2023-06-016-4/+28
| |
| * Add a note about deprecating /register with a user property. (#15703)Patrick Cloke2023-06-012-0/+12
| | | | | | | | | | Application services providing a "user" property (instead of "username") for the /register endpoint was never specified. Deprecate this very old fallback.
| * Speed up background jobs populate_full_user_id_user_filters and ↵Shay2023-05-313-2/+3
| | | | | | | | populate_full_user_id_profiles (#15700)
| * Fix a performance issue introduced in Synapse v1.83.0 which meant that ↵reivilibre2023-05-313-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | purging rooms was very slow and database-intensive. (#15693) * Add indices required to efficiently validate new foreign key constraints on stream_ordering * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* | Cache requests for user's devices from federation (#15675)Erik Johnston2023-06-013-2/+70
| | | | | | | | This should mitigate the issue where lots of different servers requests the same user's devices all at once.
* | Implement stable support for MSC3882 to allow an existing device/session to ↵Hugh Nimmo-Smith2023-06-0112-75/+225
| | | | | | | | | | | | | | | | generate a login token for use on a new device/session (#15388) Implements stable support for MSC3882; this involves updating Synapse's support to match the MSC / the spec says. Continue to support the unstable version to allow clients to transition.
* | Add Synapse version deploy annotations to Grafana dashboard (#15674)Eric Eastwood2023-05-312-174/+895
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix https://github.com/matrix-org/synapse/issues/15662 This manifests as purple lines that show up on all time series panels that you can hover and see what version was deployed. Also added a new "Deployed Synapse versions over time" panel where the color block changes with each version. And mixed this color block into the "Up" time series panel. To get the Grafana dashboard JSON to copy here: use the **Share** icon at the top -> **Export** -> check the **Export for sharing externally** option -> **View JSON** or **Save to file**
* | Add stubs package for lxml. (#15697)Patrick Cloke2023-05-3110-48/+117
| | | | | | | | | | | | | | The stubs have some issues so this has some generous cast and ignores in it, but it is better than not having stubs. Note that confusing that Element is a function which creates _Element instances (and similarly for Comment).
* | Docker fully qualified image names (#15689)Jason Little2023-05-318-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fully qualified docker image names for the main Dockerfile and Complement related. * Fully qualified docker image names for Dockerfiles associated with building Debian release artifacts. This one is harder and is separate from the other commit in case it wasn't correct or was unwanted. I decided to do the expansion on the docker images in the Dockerfile itself, instead of the various source places that build which distribution that is selected, as it would have been more invasive with the scripts breaking up the string for tagging and such. This one is untested. * Changelog * Update docker/Dockerfile-workers * Update docker/complement/Dockerfile --------- Co-authored-by: reivilibre <olivier@librepush.net>
* | Add get_canonical_room_alias to module API (#15450)Gabriel Féron2023-05-313-1/+29
| | | | | | Co-authored-by: Boxdot <d@zerovolt.org>
* | Add stricter mypy options (#15694)Patrick Cloke2023-05-3111-24/+40
| | | | | | | | Enable warn_unused_configs, strict_concatenate, disallow_subclassing_any, and disallow_incomplete_defs.