summary refs log tree commit diff
path: root/synapse/server.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-09-29Downgrade repl stream time out error to warning (#16401)Erik Johnston2-1/+2
This is because if a worker reaches ~100% CPU then everything starts lagging and we hit the log line a lot. When at error we invoke sentry and that has a lot of overhead, which then puts even more pressure on the worker.
2023-09-29Support rendering some media downloads as inline (#15988)Will Hunt4-6/+106
Use an `inline` Content-Disposition header when the media is "safe" to display inline (some known text, image, video, audio formats).
2023-09-28Remove warnings from the docs about using message retention. (#16382)Patrick Cloke3-7/+4
There are no known bugs in the message retention code, but it is possible that there still exists race conditions. Additional fixes will be made as reported.
2023-09-28Improve state types. (#16395)Patrick Cloke3-8/+11
2023-09-28Use modern config for maturin. (#16394)Patrick Cloke3-0/+4
This allows maturin >= 0.15 to build the properly named shared library object. For now the old configuration is also kept to allow for older maturin installs to be used.
2023-09-26Add a cache around server ACL checking (#16360)Patrick Cloke11-85/+235
* Pre-compiles the server ACLs onto an object per room and invalidates them when new events come in. * Converts the server ACL checking into Rust.
2023-09-26Implement MSC4028: push all encrypted events. (#16361)Patrick Cloke8-1/+31
This unstable push rule is implemented behind an experimental configuration flag.
2023-09-261.93.0 v1.93.0Erik Johnston3-1/+27
2023-09-26Skip export-data on non-code (e.g. docs) PRs (#16387)David Robertson2-3/+5
2023-09-26Add documentation about the user directory search algorithm (#16320)Patrick Cloke2-26/+111
2023-09-26Reduce calls to `send_presence_to_destinations` (#16385)Erik Johnston2-15/+19
2023-09-25Improve comments in StateGroupBackgroundUpdateStore. (#16383)Patrick Cloke2-2/+17
2023-09-25Add developer documentation concerning gradual schema migrations with column ↵reivilibre2-0/+158
alterations. (#15691) Co-authored-by: Eric Eastwood <erice@element.io>
2023-09-25Avoid running CI steps when the files they check have not been changed. (#14745)reivilibre2-14/+83
2023-09-25Bump types-psycopg2 from 2.9.21.11 to 2.9.21.14 (#16381)dependabot[bot]4-32/+9
* Bump types-psycopg2 from 2.9.21.11 to 2.9.21.14 Bumps [types-psycopg2](https://github.com/python/typeshed) from 2.9.21.11 to 2.9.21.14. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-psycopg2 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Relax the annotation of Cursor.description See https://github.com/matrix-org/synapse/pull/16343#issuecomment-1726083384 for rationale. * Changelog * Changelog --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Robertson <davidr@element.io>
2023-09-25Bump actions/checkout from 3 to 4 (#16250)dependabot[bot]9-47/+47
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25Add support for pydantic v2 via pydantic.v1 compat module (#16332)Maxwell G17-94/+348
While maintaining support with pydantic v1.
2023-09-25Bump cryptography from 41.0.3 to 41.0.4 (#16362)dependabot[bot]1-24/+24
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25Get CI to check PRs have been signed-off (#16348)David Robertson2-1/+8
2023-09-25Bump sentry-sdk from 1.30.0 to 1.31.0 (#16378)dependabot[bot]1-3/+5
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25Bump msgpack from 1.0.5 to 1.0.6 (#16377)dependabot[bot]1-65/+58
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25Bump gitpython from 3.1.35 to 3.1.37 (#16376)dependabot[bot]1-4/+7
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25Bump docker/setup-buildx-action from 2 to 3 (#16375)dependabot[bot]2-2/+2
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25Bump dawidd6/action-download-artifact from 2.27.0 to 2.28.0 (#16374)dependabot[bot]1-1/+1
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-21Add missing license header. (#16359)Patrick Cloke2-0/+14
2023-09-20Convert more cached return values to immutable types (#16356)Patrick Cloke11-36/+52
2023-09-19Return immutable objects for cachedList decorators (#16350)Patrick Cloke24-100/+134
2023-09-19Update changelog. v1.93.0rc1Patrick Cloke1-4/+5
2023-09-19Fix-up deactivated notes in docs. (#16355)Patrick Cloke2-1/+2
2023-09-19Tweak changelog.Patrick Cloke1-11/+8
2023-09-191.93.0rc1Patrick Cloke59-57/+87
2023-09-19Use string for federation_client_minimum_tls_version documentation examples ↵Jan Christian Grünhage2-4/+5
(#16353)
2023-09-18Bump serde_json from 1.0.106 to 1.0.107 (#16345)dependabot[bot]1-2/+2
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18Bump furo from 2023.8.19 to 2023.9.10 (#16340)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18Test against PostgreSQL 16. (#16351)Patrick Cloke2-1/+2
2023-09-18Bump ruff from 0.0.286 to 0.0.290 (#16342)dependabot[bot]4-33/+22
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Patrick Cloke <patrickc@matrix.org>
2023-09-18Stop patching EventBase.__eq__ in tests. (#16349)Patrick Cloke3-36/+31
It is clearer to directly test equality instead of doing indirect assertions via patching __eq__.
2023-09-18Filter locked users in the admin API (#16328)Hanadi6-7/+51
Co-authored-by: Hanadi Tamimi <hanadi.tamimi@sdui.de>
2023-09-18Make cached account data/tags/admin types immutable (#16325)Patrick Cloke9-50/+55
2023-09-18Update changelog v1.92.3Mathieu Velten1-2/+4
2023-09-181.92.3Mathieu Velten4-2/+24
2023-09-18Return an immutable value from get_latest_event_ids_in_room. (#16326)Patrick Cloke12-40/+48
2023-09-18Mandate Pillow>=10.0.1 because of libwebp CVE (#16347)Mathieu Velten2-1/+4
2023-09-18Additional validation of receipts (#16327)Patrick Cloke6-165/+241
Reject invalid receipts with a reasonable error message & expands tests for receipts.
2023-09-18Mandate Pillow>=10.0.1 because of libwebp CVE (#16347)Mathieu Velten2-1/+4
2023-09-18Bump pillow from 10.0.0 to 10.0.1 (#16344)dependabot[bot]1-57/+55
Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.0.0 to 10.0.1. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/10.0.0...10.0.1) --- updated-dependencies: - dependency-name: pillow 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>
2023-09-18Bump pillow from 10.0.0 to 10.0.1 (#16344)dependabot[bot]1-57/+55
Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.0.0 to 10.0.1. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/10.0.0...10.0.1) --- updated-dependencies: - dependency-name: pillow 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>
2023-09-18Set email charset as utf-8 rather than utf8 (#16329)José Joaquín Atria2-2/+3
2023-09-18Bump typing-extensions from 4.7.1 to 4.8.0 (#16341)dependabot[bot]1-5/+15
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18Bump docker/login-action from 2 to 3 (#16339)dependabot[bot]2-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18Bump docker/metadata-action from 4 to 5 (#16337)dependabot[bot]1-1/+1
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18Bump docker/setup-qemu-action from 2 to 3 (#16338)dependabot[bot]2-2/+2
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18Bump docker/build-push-action from 4 to 5 (#16336)dependabot[bot]1-1/+1
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-15Add automatic purge after all users forget a room (#15488)Mathieu Velten13-450/+542
Also add restore of purge/shutdown rooms after a synapse restart. Co-authored-by: Eric Eastwood <erice@matrix.org> Co-authored-by: Erik Johnston <erikj@matrix.org>
2023-09-15Fix Changelog v1.92.2Erik Johnston1-1/+1
2023-09-151.92.2Erik Johnston4-2/+17
2023-09-15Use bookwork as docker base image (#16324)Erik Johnston5-15/+16
2023-09-15Convert `_insert_graph_receipts_txn` to `simple_upsert` (#16299)Jason Little3-14/+13
2023-09-15Only use literal strings for process names (#16315)Erik Johnston4-14/+11
2023-09-14Some minor performance fixes for task schedular (#16313)Erik Johnston5-34/+95
2023-09-14Speed up deleting to-device messages task (#16318)Erik Johnston2-13/+15
2023-09-14docs: Link to the Alpine Linux community package for Synapse (#16304)65432-0/+9
2023-09-14Refactor `get_user_by_id` (#16316)Erik Johnston14-123/+108
2023-09-13Remove a reference cycle in background process (#16314)Erik Johnston2-1/+21
2023-09-13Fix using dehydrated devices (MSC2697) & refresh tokens (#16288)Hanadi4-4/+34
Refresh tokens were not correctly moved to the rehydrated device (similar to how the access token is currently handled). This resulted in invalid refresh tokens after rehydration.
2023-09-13Use StrCollection in additional places. (#16301)Patrick Cloke16-67/+59
2023-09-13Don't schedule an async task on every sync (#16312)Erik Johnston2-11/+27
2023-09-13Fix deleting device inbox when using background worker (#16311)Erik Johnston2-31/+32
Introduced in #16240 The action for the task was only defined on the "master" handler, rather than the base worker one.
2023-09-13Improve logging of replication (#16309)Erik Johnston3-2/+8
2023-09-12Update changelogMathieu Velten1-7/+16
2023-09-121.92.1 v1.92.1Mathieu Velten3-1/+12
2023-09-12Bump mypy from 1.4.1 to 1.5.1. (#16300)Patrick Cloke4-48/+32
2023-09-12Stop purging tables which are slated for removal. (#16273)Patrick Cloke3-5/+6
2023-09-12Remove kinetic deb build, it's EOLMathieu Velten1-1/+0
2023-09-12Refactor storing of server keys (#16261)Erik Johnston6-365/+106
2023-09-12Inverse changelog order v1.92.0Mathieu Velten1-6/+7
2023-09-121.92.0Mathieu Velten6-4/+19
2023-09-11Add the List-Unsubscribe header for notification emails. (#16274)Patrick Cloke5-6/+110
Adds both the List-Unsubscribe (RFC2369) and List-Unsubscribe-Post (RFC8058) headers to push notification emails, which together should: * Show an "Unsubscribe" link in the MUA UI when viewing Synapse notification emails. * Enable "one-click" unsubscribe (the user never leaves their MUA, which automatically makes a POST request to the specified endpoint).
2023-09-11Filter out down hosts when retrying fetching device lists (#16298)Erik Johnston2-1/+15
2023-09-11Bump types-pillow from 10.0.0.2 to 10.0.0.3 (#16293)dependabot[bot]1-3/+3
2023-09-11Bump types-setuptools from 68.0.0.3 to 68.2.0.0 (#16292)dependabot[bot]1-3/+3
2023-09-11Bump mypy-zope from 1.0.0 to 1.0.1 (#16291)dependabot[bot]1-4/+4
2023-09-11Bump black from 23.7.0 to 23.9.1 (#16295)dependabot[bot]1-24/+24
2023-09-11Bump serde_json from 1.0.105 to 1.0.106 (#16296)dependabot[bot]1-2/+2
2023-09-08Improve type hints for attrs classes (#16276)David Robertson7-39/+37
2023-09-08 Upgrade CI run of Python 3.12 from rc1 to rc2 (#16280)V024602-1/+2
2023-09-08Update ruff config (#16283)Patrick Cloke26-64/+63
Enable additional checks & clean-up unneeded configuration.
2023-09-08Log values at DEBUG level with execute_values (#16281)David Robertson2-2/+4
2023-09-08Fix-up incorrect spellings in docs. (#16282)Patrick Cloke18-119/+120
2023-09-08Fix bug with new task scheduler using lots of CPU. (#16278)Erik Johnston2-21/+23
Using the new `TaskScheduler` meant that we'ed create lots of new metrics (due to adding task ID to the desc of background process), resulting in requests for metrics taking an increasing amount of CPU.
2023-09-08Bump gitpython from 3.1.34 to 3.1.35 (#16279)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-08Avoid temporary storage of sensitive information. (#16272)Patrick Cloke3-2/+16
During the UI auth process, avoid storing sensitive information into the database.
2023-09-08Raise setuptools_rust version cap to 1.7.0 (#16277)V024602-1/+2
2023-09-08Reduce CPU overhead of change password endpoint (#16264)Erik Johnston2-58/+55
2023-09-07Recheck if remote device is cached before requesting it (#16252)Erik Johnston4-17/+35
This fixes a bug where we could get stuck re-requesting the device over replication again and again.
2023-09-07Support releasing on macOS. (#16266)Patrick Cloke2-16/+31
2023-09-07Add `/notifications` endpoint to workers (#16265)Erik Johnston6-37/+42