summary refs log tree commit diff
path: root/synapse/app/federation_sender.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-07-26Actually fetch if a server is linearized.Patrick Cloke1-2/+32
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-25FIx-up content hash checking for PDUs vs. delegated PDUs.Patrick Cloke2-19/+28
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-22Print out error from remote homeserver if failed to inviteAndrew Morgan1-0/+3
2023-07-22Use room version, not "hub_server" field when adding/validating "origin"Andrew Morgan2-4/+6
As other events sent in a LM room that are not on behalf of participating servers will not have this field.
2023-07-20If we are acting on a PDU, keep the "lpdu" hash intact.Andrew Morgan1-4/+13
To match the logic defined by section 9.1.1 of draft-ralston-mimi-linearized-matrix-03.
2023-07-20Fix a couple type hints.Andrew Morgan1-2/+2
2023-07-20Do not add `origin` field to LPDUs.Andrew Morgan2-1/+8
Synapse has a bad habit of adding `origin` to the top-level of event content. The Linearized Matrix spec does not include `origin`, and in fact cannot as that will cause the content hashes and signatures computed by the participant server to differ from Synapse's own results. So, we perform a hack here to drop `origin` from any event derived from an LPDU event. Other DAG homeserver implementations might be sad however.
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-19Fix https://github.com/matrix-org/synapse/issues/15962Travis Ralston1-1/+2
Not breaking anything in LM, but might as well while we're here.
2023-07-19Fix(?) MSC2176 implementationTravis Ralston1-2/+2
Pending resolution of https://matrix.to/#/!NasysSDfxKxZBzJJoE:matrix.org/$yCZra9xATiCfKehho6N52m_22ag9TD_tMoqX3GXEwL0?via=matrix.org&via=libera.chat&via=element.io
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-18Add notePatrick Cloke1-0/+3
2023-07-18Linting.Patrick Cloke1-7/+21
2023-07-18Sort auth/state.Patrick Cloke1-0/+8
2023-07-18Do not return depth.Patrick Cloke1-1/+4
2023-07-18Fix accepting an invite.Patrick Cloke3-4/+19
2023-07-18Fix creating events from LPDUs.Patrick Cloke3-16/+22
2023-07-18Remove unsigned and depth in more places.Patrick Cloke2-1/+10
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-17Provide templated LPDUs for make_{join,leave,knock} requests.Patrick Cloke4-27/+60
2023-07-17Accept LPDUs in transactions and fan them back out.Patrick Cloke3-10/+151
2023-07-17Convert new-style EDUs to old-style EDUs.Patrick Cloke1-8/+41
2023-07-17Implement new device endpoint.Patrick Cloke1-0/+28
2023-07-17Implement new send endpoint.Patrick Cloke4-7/+129
2023-07-17Implement new invite endpoint.Patrick Cloke3-0/+60
2023-07-17Implement new send_{join,leave,knock} endpoints.Patrick Cloke5-15/+195
2023-07-17Implement new event and backfill endpoints.Patrick Cloke4-64/+209
2023-07-17Handle LPDU content hash.Patrick Cloke3-16/+55
2023-07-17Ignore non-state events sent in state.Patrick Cloke1-0/+3
2023-07-17Linearized Matrix events do not have a depth.Patrick Cloke4-12/+23
2023-07-17Remove references to m.room.hub events.Patrick Cloke2-20/+3
2023-07-17Update for v2.Patrick Cloke9-84/+78
2023-07-17Revert "Initial routing of events."Patrick Cloke4-138/+0
2023-07-17Initial routing of events.Patrick Cloke4-0/+138
2023-07-17Disable TLS over federation.Patrick Cloke1-4/+5
2023-07-17Initial cut at signature verification.Patrick Cloke5-17/+178
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.