summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | Merge branch 'release-v1.85' into developDavid Robertson2023-05-3054-51/+84
|\|
| * fixup changelog v1.85.0rc1David Robertson2023-05-301-2/+2
| |
| * Update changelogDavid Robertson2023-05-301-2/+2
| |
| * Tweak release script dependabot wordingDavid Robertson2023-05-301-0/+2
| |
| * 1.85.0rc1David Robertson2023-05-3053-51/+82
| |
* | Enforce that an admin token also has the basic Matrix API scopeQuentin Gliech2023-05-302-6/+27
| |
* | Make the config tests spawn the homeserver only when neededQuentin Gliech2023-05-302-206/+182
| |
* | Reject tokens with multiple device scopesQuentin Gliech2023-05-302-7/+52
| |
* | Make OIDC scope constantsQuentin Gliech2023-05-301-10/+15
| |
* | Handle errors when introspecting tokensQuentin Gliech2023-05-303-7/+74
| | | | | | | | | | This returns a proper 503 when the introspection endpoint is not working for some reason, which should avoid logging out clients in those cases.
* | Newsfile.Quentin Gliech2023-05-301-0/+1
| |
* | Disable incompatible Admin API endpointsQuentin Gliech2023-05-303-8/+40
| |
* | Make AS tokens work & allow ASes to /registerQuentin Gliech2023-05-305-85/+159
| |
* | Add an admin token for MAS -> Synapse callsQuentin Gliech2023-05-302-0/+24
| |
* | Tests for JWKS endpointHugh Nimmo-Smith2023-05-302-11/+212
| |
* | Refactor config to be an experimental featureHugh Nimmo-Smith2023-05-3018-96/+479
| | | | | | | | Also enforce you can't combine it with incompatible config options
* | Test MSC2965 implementation: well-known discovery documentHugh Nimmo-Smith2023-05-301-0/+38
| |
* | Disable account related endpoints when using OAuth delegationQuentin Gliech2023-05-308-19/+243
| |
* | Actually enforce guest + return www-authenticate headerHugh Nimmo-Smith2023-05-304-8/+87
| |
* | Initial tests for OAuth delegationHugh Nimmo-Smith2023-05-301-0/+345
| |
* | MSC2967: Check access token scope for use as user and add guest supportHugh Nimmo-Smith2023-05-301-10/+20
| |
* | Use `name` claim as display name when registering users on the fly.Hugh Nimmo-Smith2023-05-301-1/+8
| | | | | | | | | | This makes is so that the `name` claim got when introspecting the token is used as the display name when registering a user on the fly.
* | Record the `sub` claims as an external_idQuentin Gliech2023-05-301-22/+37
| |
* | Handle the Synapse admin scopeQuentin Gliech2023-05-301-0/+3
| |
* | Save the scopes in the requesterQuentin Gliech2023-05-303-0/+11
| |
* | MSC2965: OIDC Provider discovery via well-known documentQuentin Gliech2023-05-301-0/+9
| |
* | Expose the public keys used for client authentication on an endpointQuentin Gliech2023-05-302-0/+78
| |
* | Initial MSC3964 support: delegation of auth to OIDC serverQuentin Gliech2023-05-303-1/+260
| |
* | Make the api.auth.Auth a ProtocolQuentin Gliech2023-05-307-248/+464
| |
* | Remove unused `FederationServer.__str__` override (#15690)Sean Quah2023-05-302-3/+1
|/ | | Signed-off-by: Sean Quah <seanq@matrix.org>
* Create dependabot changelogs at release time (#15481)David Robertson2023-05-304-57/+57
| | | | | | | | | * Ditch dependabot changelog workflow * Summarise dependabot commits in release script * Changelog * Update scripts-dev/release.py
* Bump types-bleach from 6.0.0.1 to 6.0.0.3 (#15686)dependabot[bot]2023-05-302-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * Bump types-bleach from 6.0.0.1 to 6.0.0.3 Bumps [types-bleach](https://github.com/python/typeshed) from 6.0.0.1 to 6.0.0.3. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-bleach dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Changelog --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com> Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: David Robertson <davidr@element.io>
* Bump types-requests from 2.30.0.0 to 2.31.0.0 (#15684)dependabot[bot]2023-05-302-3/+4
| | | | | | | | | | | | | | | | | | | | | | | * Bump types-requests from 2.30.0.0 to 2.31.0.0 Bumps [types-requests](https://github.com/python/typeshed) from 2.30.0.0 to 2.31.0.0. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-requests dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Changelog --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
* Bump log from 0.4.17 to 0.4.18 (#15681)dependabot[bot]2023-05-292-5/+3
|
* Bump pydantic from 1.10.7 to 1.10.8 (#15685)dependabot[bot]2023-05-292-37/+38
|
* Bump prometheus-client from 0.16.0 to 0.17.0 (#15682)dependabot[bot]2023-05-292-3/+4
|
* Bump types-pyyaml from 6.0.12.9 to 6.0.12.10 (#15683)dependabot[bot]2023-05-292-3/+4
|
* Add Unix socket support for Redis connections (#15644)Jason Little2023-05-267-23/+100
| | | | Adds a new configuration setting to connect to Redis via a Unix socket instead of over TCP. Disabled by default.
* Add `MSC3820opt2` as a known room version (#15678)Travis Ralston2023-05-262-0/+2
|
* Documentation improvements to contributing guide (#15667) (#15668)Grant McLean2023-05-262-5/+29
| | | | | | | | | Fix #15667 - Reiterate the importance of getting Rust installed and set up before attempting to install the Python dependencies. - Mention the importance of confirming that `poetry install` completed successfully and include a typical error that the user might see if it did not. - Expand on "Now edit homeserver.yaml" to give examples of things likely to need changing and to link to the relevant sections of the Synapse server documentation.
* Set thread_id column to non-null for ↵Patrick Cloke2023-05-269-223/+292
| | | | | | | | | | | | | | | | event_push_{actions,actions_staging,summary} (#15597) Updates the database schema to require a thread_id (by adding a constraint that the column is non-null) for event_push_actions, event_push_actions_staging, and event_push_actions_summary. For PostgreSQL we add the constraint as NOT VALID, then VALIDATE the constraint a background job to avoid locking the table during an upgrade. Each table is updated as a separate schema delta to avoid deadlocks between them. For SQLite we simply rebuild the table & copy the data.
* Merge branch 'master' into developOlivier Wilkinson (reivilibre)2023-05-2611-7/+76
|\
| * Fix a typographical error in changelog v1.84.1Olivier Wilkinson (reivilibre)2023-05-261-1/+1
| |
| * 1.84.1Olivier Wilkinson (reivilibre)2023-05-265-3/+26
| |
| * Fix a bug introduced in Synapse v1.84.0 where workers do not start up when ↵reivilibre2023-05-268-5/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | no `instance_map` was provided. (#15672) * Fix #15669: always populate instance map even if it was empty * Fix some tests * Fix more tests * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * CI fix: don't forget to update apt repository sources before installing olddeps deps * Add test testing the backwards compatibility --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
| * Add `dch` and `notify-send` to the development Nix flake so that the release ↵reivilibre2023-05-262-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | script can be used. (#15673) * Add dch and notify-send to the Nix dev flake * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* | Add MSC3820 (room version 11) option 2 unstable room version. (#15666)Travis Ralston2023-05-262-0/+25
| |
* | Process previously failed backfill events in the background (#15585)Eric Eastwood2023-05-246-9/+252
| | | | | | | | | | | | | | | | | | Process previously failed backfill events in the background because they are bound to fail again and we don't need to waste time holding up the request for something that is bound to fail again. Fix https://github.com/matrix-org/synapse/issues/13623 Follow-up to https://github.com/matrix-org/synapse/issues/13621 and https://github.com/matrix-org/synapse/issues/13622 Part of making `/messages` faster: https://github.com/matrix-org/synapse/issues/13356
* | Add requesting user id parameter to key claim methods in ↵Shay2023-05-246-11/+39
| | | | | | | | `TransportLayerClient` (#15663)
* | Add type hints to test_descriptors. (#15659)Patrick Cloke2023-05-243-96/+105
| | | | | | Require type hints in test_descriptors and add missing ones.
* | Speed up user directory rebuild for users some more... (#15665)Erik Johnston2023-05-242-76/+115
| |
* | Improve type hints for cached decorator. (#15658)Patrick Cloke2023-05-246-63/+73
| | | | | | | | | | The cached decorators always return a Deferred, which was not properly propagated. It was close enough when wrapping coroutines, but failed if a bare function was wrapped.
* | Fix `@trace` not wrapping some state methods that return coroutines ↵Eric Eastwood2023-05-232-7/+9
| | | | | | | | | | | | | | | | | | | | | | correctly (#15647) ``` 2023-05-21 09:30:09,288 - synapse.logging.opentracing - 940 - ERROR - POST-1 - @trace may not have wrapped StateStorageController.get_state_for_groups correctly! The function is not async but returned a coroutine ``` Tracing instrumentation for these functions originally introduced in https://github.com/matrix-org/synapse/pull/15610
* | Consolidate logic to check for deactivated users. (#15634)Patrick Cloke2023-05-237-67/+55
| | | | | | | | | | | | | | This moves the deactivated user check to the method which all login types call. Additionally updates the application service tests to be more realistic by removing invalid tests and fixing server names.
* | Use a custom scheme & the worker name for replication requests. (#15578)Jason Little2023-05-234-19/+35
| | | | | | | | | | | | | | | | All the information needed is already in the `instance_map`, so use that instead of passing the hostname / IP & port manually for each replication request. This consolidates logic for future improvements of using e.g. UNIX sockets for workers.
* | Merge branch 'master' into developOlivier Wilkinson (reivilibre)2023-05-234-8/+41
|\|
| * Tweak changelog and upgrade notes v1.84.0Olivier Wilkinson (reivilibre)2023-05-232-7/+25
| |
| * Tweak changelogOlivier Wilkinson (reivilibre)2023-05-231-1/+1
| |
| * 1.84.0Olivier Wilkinson (reivilibre)2023-05-234-2/+16
| |
| * `traceback.format_exception(...)` usage that is compatible with Python 3.7 ↵Eric Eastwood2023-05-162-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | and 3.11 (#15599) * Usage that is compatible with Python 3.8 and 3.11 > Since Python 3.10, instead of passing value and tb, an exception object can be passed as the first argument. If value and tb are provided, the first argument is ignored in order to provide backwards compatibility. > > -- https://docs.python.org/3/library/traceback.html * Add changelog
* | Bump requests from 2.28.2 to 2.31.0 (#15651)dependabot[bot]2023-05-232-5/+6
| |
* | Remove duplicate timestamp from test logs (`_trial_temp/test.log`) (#15636)Eric Eastwood2023-05-222-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix https://github.com/matrix-org/synapse/issues/15618 ### Before ``` 2023-05-17 22:51:36-0500 [-] 2023-05-17 22:51:36,889 - synapse.server - 338 - INFO - sentinel - Finished setting up. ``` ### After ``` 2023-05-19 18:16:20-0500 [-] synapse.server - 338 - INFO - sentinel - Finished setting up. ``` ### Dev notes The `Twisted.Logger` controls the `2023-05-19 18:16:20-0500 [-]` prefix, see : [`twisted/twisted` -> `src/twisted/logger/_format.py#L362-L374`](https://github.com/twisted/twisted/blob/34b161e66bc7c9f9efbb95e82c770a863933e498/src/twisted/logger/_format.py#L362-L374) And we delegate our logs to the Twisted Logger for the tests which puts it in `_trial_temp/test.log`
* | Remove outdated comment in log config (#15648)Andrew Morgan2023-05-223-6/+3
| |
* | Properly parse event_fields in filters (#15607)Patrick Cloke2023-05-225-34/+99
| | | | | | | | | | | | | | | | The event_fields property in filters should use the proper escape rules, namely backslashes can be escaped with an additional backslash. This adds tests (adapted from matrix-js-sdk) and implements the logic to properly split the event_fields strings.
* | Bump pygithub from 1.58.1 to 1.58.2 (#15643)dependabot[bot]2023-05-222-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bump pygithub from 1.58.1 to 1.58.2 Bumps [pygithub](https://github.com/pygithub/pygithub) from 1.58.1 to 1.58.2. - [Release notes](https://github.com/pygithub/pygithub/releases) - [Changelog](https://github.com/PyGithub/PyGithub/blob/v1.58.2/doc/changes.rst) - [Commits](https://github.com/pygithub/pygithub/compare/v1.58.1...v1.58.2) --- updated-dependencies: - dependency-name: pygithub dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Changelog --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
* | Limit the size of the `HomeServerConfig` cache in trial test runs (#15646)Sean Quah2023-05-222-16/+8
| | | | | | | | | | | | | | | | | | | | | | | | ...to try to control memory usage. `HomeServerConfig`s hold on to many Jinja2 objects, which come out to over 0.5 MiB per config. Over the course of a full test run, the cache grows to ~360 entries. Limit it to 8 entries. Part of #15622. Signed-off-by: Sean Quah <seanq@matrix.org>
* | Bump furo from 2023.3.27 to 2023.5.20 (#15642)dependabot[bot]2023-05-222-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bump furo from 2023.3.27 to 2023.5.20 Bumps [furo](https://github.com/pradyunsg/furo) from 2023.3.27 to 2023.5.20. - [Release notes](https://github.com/pradyunsg/furo/releases) - [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md) - [Commits](https://github.com/pradyunsg/furo/compare/2023.03.27...2023.05.20) --- updated-dependencies: - dependency-name: furo dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Changelog --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>