summary refs log tree commit diff
path: root/docs/metrics-howto.md (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-09-06Link to MSC in changelog. v1.91.2Patrick Cloke1-1/+1
2023-09-061.91.2Patrick Cloke4-2/+14
2023-09-06Revert MSC3861 introspection cache, admin impersonation and account lock ↵Quentin Gliech10-391/+31
(#16258)
2023-09-041.91.1 v1.91.1David Robertson4-2/+14
2023-09-01Tentatively update changelogDavid Robertson2-1/+1
Will need to confirm this though
2023-09-01Fix typo where we ended up with multiple `WorkerLocksHandler` (#16220)Erik Johnston2-0/+2
I don't think has caused any actual issues. Introduced in #15891
2023-08-301.91.0 v1.91.0David Robertson3-1/+12
2023-08-231.91.0rc1 v1.91.0rc1H. Shay43-41/+71
2023-08-23fix changelogH. Shay1-1/+0
2023-08-23fix changelogH. Shay1-0/+65
2023-08-23Fix rare deadlock when using read/write locks (#16169) github/release-v1.91.0 release-v1.91.0Erik Johnston3-37/+72
2023-08-23Switch `devenv` dependency in the nix development environment to the latest ↵Andrew Morgan3-5/+6
release (instead of the development branch) (#16063)
2023-08-23Filter out unwanted user_agents from udv. (#16124)Neil Johnson3-0/+71
2023-08-23Fix rare deadlock when using read/write locks (#16133)Erik Johnston2-0/+38
2023-08-23Reduce DB contention on worker locks (#16160)Erik Johnston2-0/+38
2023-08-23Always update `retry_last_ts` (#16164)Erik Johnston2-3/+4
2023-08-23Task scheduler: mark task as active if we are scheduling ASAP (#16165)Mathieu Velten3-2/+5
2023-08-23Add tests for restoring the presence state after a restart. (#16151)Patrick Cloke3-1/+118
2023-08-23Properly update retry_last_ts when hitting the maximum retry interval (#16156)DeepBlueV7.X3-1/+55
* Properly update retry_last_ts when hitting the maximum retry interval This was broken in 1.87 when the maximum retry interval got changed from almost infinite to a week (and made configurable). fixes #16101 Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de> * Add changelog * Change fix + add test * Add comment --------- Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de> Co-authored-by: Mathieu Velten <mathieuv@matrix.org>
2023-08-23Only lock when we're backfilling (#16159)Erik Johnston3-146/+157
2023-08-23Increase perf of read/write locks (#16149)Erik Johnston2-0/+31
We do this by marking the tables as `UNLOGGED` in PostgreSQL.
2023-08-22Clean-up presence tests (#16158)Patrick Cloke2-92/+38
Reduce duplicated code & remove unused variables.
2023-08-22Fix perf of `wait_for_stream_positions` (#16148)Erik Johnston2-7/+13
2023-08-22Disable `m.3pid_changes` capability when MSC3861 is enabled. (#16134)Mathieu Velten5-2/+23
2023-08-22Add an admin endpoint to allow authorizing server to signal token ↵Shay10-1/+223
revocations (#16125)
2023-08-22Bump serde from 1.0.183 to 1.0.184 (#16139)dependabot[bot]1-4/+4
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-22Fix user directory test for deactivated support user. (#16157)Patrick Cloke2-8/+12
Support users should not be added to the user directory after being deactivated.
2023-08-22Raise poetry-core version cap to 1.7.0 (#16152)Theodore Ni2-1/+2
2023-08-22Properly call setup_background_tasks in unit tests. (#16150)Patrick Cloke2-2/+1
This should only be called on HomeServer objects which are configured to run background tasks, which is automatically (and properly) done via the call to setup().
2023-08-22Disallow user_consent where experimental MSC3861 is enabled (#16127)Hugh Nimmo-Smith3-0/+24
2023-08-21Add `client_secret_path` as alternative for `client_secret` for OIDC config ↵Maximilian Bosch3-1/+24
(#16030)
2023-08-21Implements a task scheduler for resumable potentially long running tasks ↵Mathieu Velten10-1/+831
(#15891)
2023-08-21Bump ijson from 3.2.1 to 3.2.3 (#16143)dependabot[bot]1-79/+79
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21Bump pygithub from 1.59.0 to 1.59.1 (#16144)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21Bump click from 8.1.6 to 8.1.7 (#16145)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21Bump types-pyopenssl from 23.2.0.1 to 23.2.0.2 (#16146)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21Bump sentry-sdk from 1.28.1 to 1.29.2 (#16142)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-18Speed up state res in rare case we don't have all events (#16116)Erik Johnston3-71/+355
If we don't have all the auth events in a room then not all state events will have a chain cover index. Even so, we can still use the chain cover index on the events that do have it, rather than bailing and using the slower functions. This situation should not arise for newly persisted rooms, as we check we have the full auth chain for each event, but can happen for existing rooms. c.f. #15245
2023-08-18MSC3861: allow impersonation by an admin using a query param (#16132)Mathieu Velten3-3/+58
2023-08-18Allow filtering for admins in the list accounts admin API (#16114)Alexander Fechler5-0/+54
2023-08-18Add response time metrics for introspection requests (#16131)Erik Johnston2-7/+28
See #16119
2023-08-18Add cache to `get_server_keys_json_for_remote` (#16123)Erik Johnston5-101/+144
2023-08-17Cache token introspection response from OIDC provider (#16117)Shay3-2/+101
2023-08-17Fix database performance of read/write worker locks (#16061)Erik Johnston3-55/+40
We were seeing serialization errors when taking out multiple read locks. The transactions were retried, so isn't causing any failures. Introduced in #15782.
2023-08-17Override global statement timeout when creating indexes in Postgres (#16085)Shay2-0/+13
2023-08-17Disable caching in /sync corner case (#16080)Matthew Ma2-10/+11
Fixes #15502
2023-08-16Rename pagination&purge locks and add comments explaining them (#16112)Mathieu Velten8-19/+29
2023-08-16Add link explaining ELK stack to structured_logging.md (#16091)axel simon2-1/+2
2023-08-15Attempt to fix twisted trunk (#16115)David Robertson4-2/+15
2023-08-15Run pyupgrade for python 3.7 & 3.8. (#16110)Patrick Cloke43-121/+113
2023-08-151.90.0 v1.90.0Olivier Wilkinson (reivilibre)3-1/+12
2023-08-15Bump log from 0.4.19 to 0.4.20 (#16109)dependabot[bot]1-2/+2
Bumps [log](https://github.com/rust-lang/log) from 0.4.19 to 0.4.20. - [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.19...0.4.20) --- 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>
2023-08-14Bump txredisapi from 1.4.9 to 1.4.10 (#16107)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-14Bump gitpython from 3.1.31 to 3.1.32 (#16103)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-14Bump types-bleach from 6.0.0.3 to 6.0.0.4 (#16106)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-14Bump types-pillow from 10.0.0.1 to 10.0.0.2 (#16105)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-14Bump isort from 5.11.5 to 5.12.0 (#16108)dependabot[bot]1-5/+5
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-11Allow customizing IdP name and icon for SAML and CAS (#16094)Gabriel Rodríguez6-11/+44
2023-08-11Add linearizer on user ID to push rule PUT/DELETE requests (#16052)Nick Mills-Barrett2-6/+23
See: #16053 Signed off by Nick @ Beeper (@Fizzadar)
2023-08-10Fix the type annotation on `run_db_interaction` in the Module API. (#16089)reivilibre2-2/+3
* Fix the method signature of `run_db_interaction` on the module API * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
2023-08-10Clean-up presence code (#16092)Patrick Cloke2-94/+76
Misc. clean-ups to: * Use keyword arguments. * Return early (reducing indentation) of some functions. * Removing duplicated / unused code. * Use wrap_as_background_process.
2023-08-10Implements admin API to lock an user (MSC3939) (#15870)Mathieu Velten19-11/+262
2023-08-08Support MSC3814: Dehydrated Devices Part 2 (#16010)Shay8-97/+254
2023-08-08Fixup changelog v1.90.0rc1Erik Johnston1-3/+3
2023-08-08Fixup changelogErik Johnston1-3/+3
2023-08-081.90.0rc1Erik Johnston30-29/+72
2023-08-08Allow modules to schedule delayed background calls. (#15993)reivilibre2-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>
2023-08-08Remove old rows from the `cache_invalidation_stream_by_instance` table ↵reivilibre2-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>
2023-08-07Fix endpoint improperly declaring support for MSC3814 (#16068)Shay2-10/+9
2023-08-07Drop backwards compat hack for event serialization (#16069)Shay2-11/+2
2023-08-07Add notes describing Synapse's streams (#16015)David Robertson3-0/+159
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2023-08-07Bump jsonschema from 4.18.3 to 4.19.0 (#16081)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-07Bump serde from 1.0.179 to 1.0.183 (#16074)dependabot[bot]1-7/+7
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-07Bump regex from 1.9.1 to 1.9.3 (#16073)dependabot[bot]1-6/+6
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-07Bump types-opentracing from 2.4.10.5 to 2.4.10.6 (#16078)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-07Bump furo from 2023.5.20 to 2023.7.26 (#16077)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-07Bump types-setuptools from 68.0.0.0 to 68.0.0.3 (#16079)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-07Bump phonenumbers from 8.13.14 to 8.13.18 (#16076)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-04Fix deletion for Dehydrated Devices (#16046)Shay4-5/+165
2023-08-04Stabilize support for MSC3970: updated transaction semantics (scope to ↵Patrick Cloke9-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.
2023-08-03Move support for application service query parameter authorization behind a ↵Shay6-14/+144
configuration option (#16017)
2023-08-03Allow config of the backoff algorithm for the federation client. (#15754)Mathieu Velten6-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.
2023-08-03Allow modules to check whether the current worker is configured to run ↵reivilibre2-0/+13
background tasks. (#15991)
2023-08-02Add forward-compatibility for the redacts property (MSC2174). (#16013)Patrick Cloke3-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.
2023-08-02Update MSC3958 support to interact with intentional mentions. (#15992)Patrick Cloke6-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.
2023-08-02Bump cryptography from 41.0.2 to 41.0.3 (#16048)dependabot[bot]1-24/+24
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-02Update `flake.lock` to fix running the nix developer environment on MacOS ↵Andrew Morgan3-23/+42
(#16019)
2023-08-01Update certifi to 2023.7.22 and pygments to 2.15.1. (#16044)Patrick Cloke2-7/+8
2023-08-01Properly setup the additional sequences in the portdb script. (#16043)Patrick Cloke2-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.
2023-08-01Trim whitespace when setting display names (#16031)Mohit Rathee3-1/+14
2023-08-01Add metrics tracking for eviction to ResponseCache (#16028)Jason Little2-2/+9
Track whether the ResponseCache is evicting due to invalidation or due to time.
2023-08-011.89.0 v1.89.0David Robertson3-1/+12
2023-07-31Combine duplicated code for calculating an event ID from a txn ID (#16023)Patrick Cloke3-32/+36
Refactoring related to stabilization of MSC3970, refactor to combine code which has the same logic.
2023-07-31Bump serde from 1.0.175 to 1.0.179 (#16033)dependabot[bot]1-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>
2023-07-31Bump immutabledict from 2.2.4 to 3.0.0 (#16034)dependabot[bot]1-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>
2023-07-31Do not expose Admin API in caddy reverse proxy example (#16027)Nils2-1/+2
Signed-off-by: Nils ANDRÉ-CHANG <nils@nilsand.re>
2023-07-31Bump service-identity from 21.1.0 to 23.1.0 (#16038)dependabot[bot]1-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>
2023-07-31Add ability to wait for locks and add locks to purge history / room deletion ↵Erik Johnston16-108/+783
(#15791) c.f. #13476
2023-07-31Bump types-commonmark from 0.9.2.3 to 0.9.2.4 (#16037)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-31Bump serde_json from 1.0.103 to 1.0.104 (#16032)dependabot[bot]1-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>
2023-07-31Bump types-jsonschema from 4.17.0.8 to 4.17.0.10 (#16036)dependabot[bot]1-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>
2023-07-31Bump types-netaddr from 0.8.0.8 to 0.8.0.9 (#16035)dependabot[bot]1-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>
2023-07-27Clarify comment on key uploads over replication (#16016)Shay2-2/+4
2023-07-27Fix 404 on /profile when the display name is empty but not the avatar (#16012)Mathieu Velten3-1/+12
2023-07-27Update PyYAML to 6.0.1 (#16011)Mathieu Velten2-41/+42
2023-07-27Attempt to fix labelling in docker workflow (#16009)David Robertson2-1/+8
2023-07-26Remove support for legacy application service paths (#15964)Shay3-124/+12
2023-07-26Inline SQL queries using boolean parameters (#15525)Anshul Madnawat8-25/+24
SQLite now supports TRUE and FALSE constants, simplify some queries by inlining those instead of passing them as arguments.
2023-07-26Add synapse version as Docker container label (#15972)Mo Balaa2-1/+8
Co-authored-by: Mo Balaa <balaa@fractalnetworks.co>
2023-07-26Bump serde from 1.0.171 to 1.0.175 (#15982)dependabot[bot]1-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>
2023-07-26Edit changelog v1.89.0rc1Mathieu Velten1-7/+7
2023-07-26Remove changelog fileMathieu Velten1-1/+0
2023-07-26Bump DB version to 79 since synapse v1.88 was already there (#15998)Mathieu Velten7-16/+22
2023-07-251.89.0rc1Mathieu Velten33-31/+68
2023-07-25Bump pygithub from 1.58.2 to 1.59.0 (#15834)dependabot[bot]1-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>
2023-07-24Support MSC3814: Dehydrated Devices (#15929)Shay7-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>
2023-07-24Fix broken Arch Linux package link (#15981)SnipeX_2-2/+3
2023-07-24Resync stale devices in background (#15975)Erik Johnston2-1/+9
This is so we don't block responding to federation transaction while we try and fetch the device lists.
2023-07-24Bump click from 8.1.3 to 8.1.6 (#15984)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-24Bump sentry-sdk from 1.26.0 to 1.28.1 (#15985)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-24Bump pillow from 9.4.0 to 10.0.0 (#15986)dependabot[bot]1-83/+62
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-24Bump types-requests from 2.31.0.1 to 2.31.0.2 (#15983)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-23Properly handle redactions of creation events (#15973)Shay3-5/+13
2023-07-23Actually stop reading from column `user_id` of tables `profiles` (#15955)Shay5-12/+12
2023-07-23Build packages for Debian Trixie (#15961)Shay2-0/+2
2023-07-20Speed up updating state in large rooms (#15971)Erik Johnston5-131/+141
This should speed up updating state in rooms with lots of state.
2023-07-20Fixed grafana deploy annotations in the dashboard config, so it shows for ↵Will Lewis2-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>
2023-07-20Don't log exceptions for every non-200 response (#15969)Erik Johnston2-4/+1
Introduced in #15913
2023-07-20Reduce the amount of state we pull out (#15968)Erik Johnston4-12/+14
2023-07-19Ensure a long state res does not starve CPU (#15960)Erik Johnston2-1/+9
We do this by yielding the reactor in hot loops.
2023-07-19Fix bad merge of #15933 (#15958)Erik Johnston3-0/+1
This was because we reverted the bump of the schema version, so we were not applying the new deltas.
2023-07-19Fix race in triggers for read/write locks. (#15933)Erik Johnston5-98/+135
2023-07-18Fix background schema updates failing over a large upgrade gap (#15887)Shay2-0/+71
2023-07-181.88.0 v1.88.0Olivier Wilkinson (reivilibre)4-3/+16
2023-07-18Support room version 11 (#15912)Patrick Cloke19-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.
2023-07-18Revert "Stop writing to column `user_id` of tables `profiles` and ↵Shay10-122/+174
`user_filters`. (#15953) * Revert "Stop writing to column `user_id` of tables `profiles` and `user_filters` (#15787)" This reverts commit f25b0f88081bb436bef914983cff7087b54eba5f. * newsfragement
2023-07-18Add a locality to a few presence metrics (#15952)Jason Little2-13/+25
2023-07-18Re-introduce the outbound federation proxy (#15913)Eric Eastwood32-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.
2023-07-17Bump anyhow from 1.0.71 to 1.0.72 (#15949)dependabot[bot]1-2/+2
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-17Bump pyo3-log from 0.8.2 to 0.8.3 (#15951)dependabot[bot]1-2/+2
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-17Bump serde_json from 1.0.100 to 1.0.103 (#15950)dependabot[bot]1-2/+2
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-17Bump jsonschema from 4.17.3 to 4.18.3 (#15948)dependabot[bot]1-42/+144
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-17Bump typing-extensions from 4.5.0 to 4.7.1 (#15947)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-17Bump pydantic from 1.10.10 to 1.10.11 (#15946)dependabot[bot]1-37/+37
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-17Bump prometheus-client from 0.17.0 to 0.17.1 (#15945)dependabot[bot]1-3/+3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-17Pin the rust version in `flake.nix`, and bump to 1.70.0 to fix installing ↵Andrew Morgan3-43/+87
`ruff` (#15940)
2023-07-15Bump cryptography from 41.0.1 to 41.0.2 (#15943)dependabot[bot]1-20/+24
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-14Document that you cannot login as yourself on ↵Will Hunt2-1/+3
/_synapse/admin/v1/users/<user_id>/login (#15938)
2023-07-13Stop accepting 'user' parameter for application service registration. (#15928)Patrick Cloke3-8/+15
This is unspecced, but has existed for a very long time.
2023-07-13Bump types-pillow from 9.5.0.4 to 10.0.0.1 (#15932)dependabot[bot]1-3/+5
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-12Remove unneeded __init__. (#15926)Patrick Cloke2-9/+1
Remove an __init__ which only calls super() without changing the input arguments.
2023-07-12Fix running with an empty experimental features section. (#15925)Patrick Cloke2-1/+2
2023-07-12Fix push for invites received over federation (#15820)Erik Johnston2-1/+37
2023-07-12Mark get_user_in_directory private since only used in tests (#15884)Mathieu Velten4-20/+14
2023-07-11Make it more obvious which Python version runs on a given Linux distribution ↵Eric Eastwood2-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)
2023-07-11Better clarify how to run a worker instance (pass both configs) (#15921)Eric Eastwood2-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. ```
2023-07-11Better warning in logs when we fail to fetch an alias (#15922)Eric Eastwood2-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).*
2023-07-11Bump Unix sockets intro version (#15924)Eric Eastwood2-1/+2
https://github.com/matrix-org/synapse/pull/15708 didn't quite make the cut for `1.88.0` this morning.
2023-07-11Unix Sockets for HTTP Replication (#15708)Jason Little16-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>
2023-07-11Add + as an allowed character for Matrix IDs (MSC4009) (#15911)Patrick Cloke7-39/+17
2023-07-11Don't build wheels for Python 3.7 (#15917) v1.88.0rc1David Robertson2-2/+10
* Don't build wheels for CPython or PyPy 3.7 * Update pyproject.toml comments * Manually update the changelog
2023-07-11Call out upgrade notes in READMEDavid Robertson1-2/+6
2023-07-111.88.0rc1David Robertson25-25/+56
2023-07-11Add `Server` to Access-Control-Expose-Headers header (#15908)Michael Telatynski3-2/+3
2023-07-10Make the media `/upload` tracing less ambiguous (#15888)Eric Eastwood3-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
2023-07-10Drop debian buster (#15893)Shay5-4/+8
2023-07-10Revert "Federation outbound proxy" (#15910)Eric Eastwood29-890/+90
Revert "Federation outbound proxy (#15773)" This reverts commit b07b14b494ae1dd564b4c44f844c9a9545b3d08a.
2023-07-10Revert "Placeholder changelog"Eric Eastwood1-1/+0
This reverts commit 6e731e86bfa9d92f983f7df9367e37aa80733078.
2023-07-10Fix downgrading to previous version of Synapse (#15907)Erik Johnston5-6/+24
We do this by marking the constraint as deferrable.
2023-07-10Fix building rust with nightly (#15906)Erik Johnston2-0/