summary refs log tree commit diff
path: root/synapse/federation/federation_server.py (follow)
Commit message (Expand)AuthorAgeFilesLines
* Strip "join_authorised_via_users_server" from join events which do not need i...Patrick Cloke2021-10-011-3/+3
* Use direct references for some configuration variables (part 2) (#10812)Patrick Cloke2021-09-151-1/+1
* Split `FederationHandler` in half (#10692)Richard van der Hoff2021-08-261-2/+5
* Split `on_receive_pdu` in half (#10640)Richard van der Hoff2021-08-191-3/+1
* Clean up some logging in the federation event handler (#10591)Richard van der Hoff2021-08-161-0/+1
* Fix a harmless exception when the staged events queue is empty. (#10592)Patrick Cloke2021-08-131-5/+10
* Convert Transaction and Edu object to attrs (#10542)Patrick Cloke2021-08-061-20/+30
* Prune inbound federation queues if they get too long (#10390)Erik Johnston2021-08-021-0/+17
* Update the MSC3083 support to verify if joins are from an authorized server. ...Patrick Cloke2021-07-261-6/+35
* Do not include signatures/hashes in make_{join,leave,knock} responses. (#10404)Patrick Cloke2021-07-161-6/+3
* Use inline type hints in various other places (in `synapse/`) (#10380)Jonathan de Jong2021-07-151-19/+15
* Ensure we always drop the federation inbound lock (#10336)Erik Johnston2021-07-091-0/+1
* Handle old staged inbound events (#10303)Erik Johnston2021-07-061-10/+57
* Move methods involving event authentication to EventAuthHandler. (#10268)Patrick Cloke2021-07-011-3/+3
* Fix the inbound PDU metric (#10279)Erik Johnston2021-06-301-17/+20
* Merge branch 'release-v1.37' into developRichard van der Hoff2021-06-291-2/+96
|\
| * Handle inbound events from federation asynchronously (#10272)Erik Johnston2021-06-291-2/+96
* | Improve validation for `send_{join,leave,knock}` (#10225)Richard van der Hoff2021-06-241-49/+72
|/
* Implement knock feature (#6739)Sorunome2021-06-091-0/+99
* Add type hints to the federation server transport. (#10080)Patrick Cloke2021-06-081-3/+3
* Fix `m.room_key_request` to-device messages (#9961)Richard van der Hoff2021-05-111-19/+0
* remove `HomeServer.get_config` (#9815)Richard van der Hoff2021-04-141-1/+1
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
* Add type hints to the federation handler and server. (#9743)Patrick Cloke2021-04-061-13/+13
* Make RateLimiter class check for ratelimit overrides (#9711)Erik Johnston2021-03-301-1/+4
* Make federation catchup send last event from any server. (#9640)Erik Johnston2021-03-181-23/+2
* Fix additional type hints from Twisted 21.2.0. (#9591)Patrick Cloke2021-03-121-3/+5
* Reject concurrent transactions (#9597)Richard van der Hoff2021-03-121-35/+42
* Improve logging when processing incoming transactions (#9596)Richard van der Hoff2021-03-121-27/+34
* Use the chain cover index in get_auth_chain_ids. (#9576)Patrick Cloke2021-03-101-2/+4
* Fix additional type hints. (#9543)Patrick Cloke2021-03-091-1/+1
* Add ResponseCache tests. (#9458)Jonathan de Jong2021-03-081-5/+8
* Replace `last_*_pdu_age` metrics with timestamps (#9540)Richard van der Hoff2021-03-041-6/+4
* Ratelimit cross-user key sharing requests. (#8957)Patrick Cloke2021-02-191-2/+18
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-10/+11
* Support icons for Identity Providers (#9154)Richard van der Hoff2021-01-201-1/+1
* Support routing edu's to multiple instances (#9042)Erik Johnston2021-01-071-5/+16
* Apply an IP range blacklist to push and key revocation requests. (#8821)Patrick Cloke2020-12-021-1/+0
* Consistently use room_id from federation request body (#8776)Richard van der Hoff2020-11-191-13/+10
* Add type hints to response cache. (#8507)Patrick Cloke2020-10-091-3/+5
* Remove the deprecated Handlers object (#8494)Patrick Cloke2020-10-091-1/+6
* Add type hints to some handlers (#8505)Patrick Cloke2020-10-091-1/+1
* Enable mypy checking for unreachable code and fix instances. (#8432)Patrick Cloke2020-10-011-3/+2
* Add prometheus metrics to track federation delays (#8430)Richard van der Hoff2020-10-011-1/+23
* Simplify super() calls to Python 3 syntax. (#8344)Patrick Cloke2020-09-181-1/+1
* Fix ratelimiting for federation `/send` requests. (#8342)Erik Johnston2020-09-181-12/+40
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-1/+1
* Be stricter about JSON that is accepted by Synapse (#8106)Patrick Cloke2020-08-191-3/+2
* Put a cache on `/state_ids` (#7931)Richard van der Hoff2020-07-231-2/+11
* Allow moving typing off master (#7869)Erik Johnston2020-07-161-51/+74
* Ensure that calls to `json.dumps` are compatible with the standard library js...Patrick Cloke2020-07-151-1/+1
* Do not use canonicaljson to magically handle decoding bytes from JSON. (#7802)Patrick Cloke2020-07-101-3/+3
* Fix some spelling mistakes / typos. (#7811)Patrick Cloke2020-07-091-3/+3
* Add some metrics for inbound and outbound federation processing times (#7755)Erik Johnston2020-06-301-16/+21
* Replace all remaining six usage with native Python 3 equivalents (#7704)Dagfinn Ilmari Mannsåker2020-06-161-3/+1
* Replace iteritems/itervalues/iterkeys with native versions. (#7692)Patrick Cloke2020-06-151-4/+3
* Add typing information to federation_server. (#7219)Patrick Cloke2020-04-071-66/+107
* Fix a bug in the federation API which could cause occasional "Failed to get P...Patrick Cloke2020-03-191-4/+4
* Remove unused federation endpoint (`query_auth`) (#7026)Patrick Cloke2020-03-171-51/+0
* Add support for putting fed user query API on workers (#6873)Erik Johnston2020-02-071-2/+5
* Add typing to synapse.federation.sender (#6871)Erik Johnston2020-02-071-1/+6
* Pass room_version into `event_from_pdu_json`Richard van der Hoff2020-02-061-27/+14
* Reduce amount of logging at INFO level. (#6862)Erik Johnston2020-02-061-3/+3
* Fix `room_version` in `on_invite_request` flow (#6827)Richard van der Hoff2020-02-031-5/+8
* s/get_room_version/get_room_version_id/Richard van der Hoff2020-01-311-8/+8
* pass room version into FederationHandler.on_invite_request (#6805)Richard van der Hoff2020-01-301-1/+1
* Process EDUs in parallel with PDUs. (#6697)Erik Johnston2020-01-141-12/+58
* Merge branch 'develop' into babolivier/msc1802Brendan Abolivier2019-12-051-9/+17
|\
| * Implementation of MSC2314 (#6176)Amber Brown2019-11-281-9/+17
* | LintBrendan Abolivier2019-11-111-3/+1
* | Add server-side support to the v2 APIBrendan Abolivier2019-11-111-10/+7
|/
* Remove usage of deprecated logger.warn method from codebase (#6271)Andrew Morgan2019-10-311-9/+11
* Fix small typo in comment (#6269)Andrew Morgan2019-10-301-1/+1
* Don't return coroutinesErik Johnston2019-10-291-6/+6
* Port federation_server to async/awaitErik Johnston2019-10-291-118/+87
* Improve signature checking on some federation APIs (#6262)Richard van der Hoff2019-10-281-0/+7
* Fix /federation/v1/state for recent room versions (#6170)Richard van der Hoff2019-10-081-13/+0
* Remove origin parameter from add_display_name_to_third_party_invite and add p...Andrew Morgan2019-09-111-2/+2
* Remove unnecessary parentheses around return statements (#5931)Andrew Morgan2019-08-301-11/+11
* Propagate opentracing contexts through EDUs (#5852)Jorik Schellekens2019-08-221-7/+8
* Opentrace e2e keys (#5855)Jorik Schellekens2019-08-221-0/+3
* Merge pull request #5744 from matrix-org/erikj/log_leave_origin_mismatchRichard van der Hoff2019-07-261-2/+2
|\
| * Log when we receive a /make_* request from a different originRichard van der Hoff2019-07-261-2/+2
* | Replace returnValue with return (#5736)Amber Brown2019-07-231-45/+32
|/
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-041-2/+2
* Run Black. (#5482)Amber Brown2019-06-201-141/+93
* Fix error handling for rooms whose versions are unknown. (#5219)Richard van der Hoff2019-05-211-1/+13
* Collect room-version variations into one place (#4969)Richard van der Hoff2019-04-011-1/+2
* When presence is enabled don't send over replicationErik Johnston2019-02-271-0/+3
* Merge pull request #4737 from matrix-org/erikj/failure_log_tbErik Johnston2019-02-251-2/+3
|\
| * Log tracebacks correctlyErik Johnston2019-02-251-2/+3
* | MSC 1866 - Use M_UNSUPPORTED_ROOM_VERSION for invite APIErik Johnston2019-02-231-1/+9
|/
* Reject large transactions on federation (#4513)Andrew Morgan2019-01-311-0/+16
* Only check event ID domain for signatures for V1 eventsErik Johnston2019-01-291-1/+4
* Use event origin for filtering incoming eventsErik Johnston2019-01-291-4/+7
* Fixup calls to `comput_event_signature`Erik Johnston2019-01-291-1/+1
* Require event format version to parse or create eventsErik Johnston2019-01-251-12/+21
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/msc_1813Erik Johnston2019-01-251-1/+3
|\
| * Add room_version param to get_pduErik Johnston2019-01-231-1/+3
* | Implement MSC 1813 - Add room version to make APIsErik Johnston2019-01-231-1/+7
|/
* Add /v2/invite federation APIErik Johnston2019-01-151-2/+2
* Update synapse/federation/federation_server.pyRichard van der Hoff2018-11-091-1/+1
* Update synapse/federation/federation_server.pyRichard van der Hoff2018-11-091-1/+1
* Drop PDUs of unknown roomsErik Johnston2018-11-081-1/+23
* Remove the unused /pull federation API (#4118)Amber Brown2018-10-311-5/+0
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/alias_disa...Erik Johnston2018-10-251-1/+1
|\
| * Fix a number of flake8 errorsRichard van der Hoff2018-10-241-1/+1
* | Add config option to control alias creationErik Johnston2018-10-191-14/+2
|/
* Fix incorrect truncation in get_missing_eventsRichard van der Hoff2018-10-161-4/+4
* Include eventid in log lines when processing incoming federation transactions...Richard van der Hoff2018-09-271-15/+17
* Comments and interface cleanup for on_receive_pduRichard van der Hoff2018-09-201-1/+1
* Merge branch 'master' into developRichard van der Hoff2018-09-061-10/+10
|\
| * Fix origin handling for pushed transactionsRichard van der Hoff2018-09-051-10/+10
* | Port http/ to Python 3 (#3771)Amber Brown2018-09-061-5/+5
|/
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/split_fede...Erik Johnston2018-08-151-4/+4
|\
| * Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678)Amber Brown2018-08-101-4/+4
* | Fixup doc commentsErik Johnston2018-08-091-0/+11
* | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/split_fede...Erik Johnston2018-08-091-3/+18
|\|
| * Enforce compatibility when processing make_join requestsRichard van der Hoff2018-08-031-3/+18
* | Add EDU/query handling over replicationErik Johnston2018-08-061-0/+43
|/
* Merge branch 'master' into developRichard van der Hoff2018-08-021-0/+1
|\
| * Validation for events/rooms in fed requestsRichard van der Hoff2018-08-021-0/+1
* | Remove pdu_failures from transactionsTravis Ralston2018-07-301-4/+0
* | Improve logging for exceptions handling PDUsRichard van der Hoff2018-07-231-3/+8
|/
* run isortAmber Brown2018-07-091-11/+7
* Implementation of server_aclsRichard van der Hoff2018-07-041-2/+148
* Merge pull request #3456 from matrix-org/hawkowl/federation-prevevent-checkingErik Johnston2018-06-291-1/+3
|\
| * handle federation not telling us about prev_eventsAmber Brown2018-06-271-1/+3
* | Attempt to be more performant on PyPy (#3462)Amber Brown2018-06-281-1/+1
|/
* simplify get_persisted_pduRichard van der Hoff2018-06-121-12/+1
* cleanup pep8 errorsAmber Brown2018-05-221-1/+4
* replacing portionsAmber Brown2018-05-211-9/+7
* Merge pull request #3118 from matrix-org/rav/reject_prev_eventsRichard van der Hoff2018-04-231-2/+23
|\
| * Add some commentsRichard van der Hoff2018-04-181-2/+23
* | Merge pull request #3106 from NotAFile/py3-six-itervalues-1Richard van der Hoff2018-04-201-3/+5
|\ \
| * | Use six.itervalues in some placesAdrian Tschira2018-04-151-3/+5
| |/
* | Reinstate linearizer for federation_server.on_context_state_requestRichard van der Hoff2018-04-201-5/+11
* | Refactor ResponseCache usageRichard van der Hoff2018-04-121-11/+5
|/
* Add metrics for ResponseCacheRichard van der Hoff2018-04-101-1/+1
* Merge pull request #2979 from matrix-org/erikj/no_handlersErik Johnston2018-03-131-9/+1
|\
| * Split replication layer into twoErik Johnston2018-03-131-9/+1
* | Merge pull request #2977 from matrix-org/erikj/replication_move_propsErik Johnston2018-03-131-0/+6
|\|
| * Move property setting from ReplicationLayer to FederationBaseErik Johnston2018-03-131-0/+6
* | Fix docstring typesErik Johnston2018-03-131-2/+2
|/
* Split out edu/query registration to a separate classErik Johnston2018-03-131-48/+69
* Factor out `event_from_pdu_json`Richard van der Hoff2017-12-301-16/+9
* federation_server: clean up importsRichard van der Hoff2017-12-301-14/+11
* Do logcontexts outside ResponseCacheErik Johnston2017-10-251-3/+5
* Fix 500 error when we get an error handling a PDURichard van der Hoff2017-10-171-1/+0
* Merge pull request #2529 from matrix-org/rav/fix_transaction_failure_handlingRichard van der Hoff2017-10-111-2/+3
|\
| * log pdu_failures from incoming transactionsRichard van der Hoff2017-10-111-2/+3
* | fed server: process PDUs for different rooms in parallelRichard van der Hoff2017-10-091-19/+34
* | Fed server: use a linearizer for ongoing transactionsRichard van der Hoff2017-10-091-1/+29
|/
* fed server: refactor on_incoming_transactionRichard van der Hoff2017-10-091-24/+29
* Fed server: Move origin-check code to _handle_received_pduRichard van der Hoff2017-10-091-24/+24
* Do some logging when one-time-keys get claimedRichard van der Hoff2017-05-091-0/+10
* Accept join events from all serversRichard van der Hoff2017-04-031-2/+6
* Move FederationServer._handle_new_pdu to FederationHandlerRichard van der Hoff2017-03-091-193/+1
* Move sig check out of _handle_new_pduRichard van der Hoff2017-03-091-12/+36
* Factor _get_missing_events_for_pdu out of _handle_new_pduRichard van der Hoff2017-03-091-62/+82
* Implement device key caching over federationErik Johnston2017-01-261-0/+3
* Name linearizer's for better logsErik Johnston2017-01-091-2/+2
* do the discard check in the right place to avoid grabbing dependent eventsMatthew2017-01-071-20/+20
* Discard PDUs from invalid origins due to #1753 in 0.18.[56] v0.18.7-rc1Matthew2017-01-071-1/+23
* fix commentMatthew Hodgson2017-01-051-1/+17
* limit total timeout for get_missing_events to 10sMatthew Hodgson2017-01-051-0/+5
* s/aquire/acquire/gMark Haines2016-12-301-2/+2
* Add more useful logging when we block fetching eventsMark Haines2016-12-301-0/+9
* Send device messages over federationMark Haines2016-09-061-1/+1
* Only pull out IDs from DB for /state_ids/ requestErik Johnston2016-09-021-6/+4
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/state_ids_apiErik Johnston2016-08-041-19/+1
|\
| * Merge branch 'develop' into rav/refactor_device_queryMark Haines2016-08-031-23/+47
| |\
| * | E2E keys: Make federation query share code with client queryRichard van der Hoff2016-08-021-19/+1
* | | Rename fields to _idsErik Johnston2016-08-031-2/+2
* | | Fix copy + paste failsErik Johnston2016-08-031-1/+1
* | | Add /state_ids federation APIErik Johnston2016-08-031-0/+21
| |/ |/|
* | Don't double wrap 200Erik Johnston2016-08-021-2/+2
* | Fix response cacheErik Johnston2016-08-021-1/+1
* | Cache federation state responsesErik Johnston2016-07-211-21/+45
|/
* Linearize some federation endpoints based on (origin, room_id)Erik Johnston2016-06-171-66/+77
* Only re-sign our own eventsErik Johnston2016-06-171-6/+9
* Linearize fetching of gaps on incoming eventsErik Johnston2016-06-151-37/+51
* Add some logging for when servers ask for missing eventsErik Johnston2016-06-081-0/+19
* Add an openidish mechanism for proving to third parties that you own a given ...Mark Haines2016-05-051-0/+5
* Remove unused backfilled parameter from persist_eventMark Haines2016-03-211-1/+0
* Catch exceptions from EDU handlingErik Johnston2016-03-181-1/+6
* Yield on EDU handlingErik Johnston2016-03-181-3/+4
* Allow third_party_signed to be specified on /joinDaniel Wagner-Hall2016-02-231-2/+13
* Fix up logcontextsErik Johnston2016-02-081-3/+1
* copyrightsMatthew Hodgson2016-01-071-1/+1
* Exchange 3pid invites for m.room.member invitesDaniel Wagner-Hall2015-11-051-16/+15
* Allow rejecting invitesDaniel Wagner-Hall2015-10-201-0/+14
* Remove unnecessary class-wrappingDaniel Wagner-Hall2015-10-131-3/+3
* Implement third party identifier invitesDaniel Wagner-Hall2015-10-011-3/+16
* Add a few strategic new lines to break up the on_query_client_keys and on_cla...Mark Haines2015-08-131-0/+6
* Add federation support for end-to-end key requestsMark Haines2015-07-231-0/+37
* Change the way we do logging contexts so that they survive divergencesErik Johnston2015-05-081-24/+22
* Split a storage function in two so that we don't have to do extra work.Erik Johnston2015-05-011-2/+2
* Replace the @metrics.counted annotations in federation with specifically-writ...Paul "LeoNerd" Evans2015-03-121-12/+14
* Initial attempt at sprinkling some @metrics.counted decorations around the fe...Paul "LeoNerd" Evans2015-03-121-0/+14
* DocsErik Johnston2015-03-051-0/+2
* Handle if get_missing_pdu returns 400 or not all events.Erik Johnston2015-03-051-2/+4
* Merge branch 'develop' of github.com:matrix-org/synapse into batched_get_pduErik Johnston2015-03-021-28/+13
|\
| * If we're yielding don't add errbackErik Johnston2015-03-021-7/+3
| * Process transactions serially.Erik Johnston2015-03-021-14/+10
* | Implement and use new batched get missing pduErik Johnston2015-02-231-99/+51
* | Initial stab at implementing a batched get_missing_pdus requestErik Johnston2015-02-191-0/+72
|/
* Remove debug raiseErik Johnston2015-02-171-7/+0
* Merge branch 'develop' of github.com:matrix-org/synapse into failuresErik Johnston2015-02-171-5/+8
|\
| * Mark old events as outliers.Erik Johnston2015-02-161-1/+7
| * Don't return anything from _handle_new_pdu, since we ignore the return value ...Erik Johnston2015-02-161-4/+1
* | Format the response of transaction request in a nicer wayErik Johnston2015-02-171-4/+15
* | Actually respond with JSON to incoming transactionErik Johnston2015-02-171-0/+2
* | Handle recieving failures in transactionsErik Johnston2015-02-171-1/+12
* | Use consumeErrors=True on all DeferredLists.Erik Johnston2015-02-171-1/+1
|/
* Correctly handle all the places that can throw exceptionsErik Johnston2015-02-121-3/+6
* Sign auth_chains when returned by /state/ requestsErik Johnston2015-02-101-0/+11
* Remove unused importsErik Johnston2015-02-031-5/+0
* Keep around the old (buggy) version of the prune_event function so that we ca...Erik Johnston2015-02-031-41/+11
* Briefly doc structure of query_auth API.Erik Johnston2015-01-301-0/+18
* Fix bug where we superfluously asked for current state. Change API of /query_...Erik Johnston2015-01-301-6/+6
* Fix regression where we no longer correctly handled the case of gaps in our e...Erik Johnston2015-01-301-0/+3
* Initial implementation of auth conflict resolutionErik Johnston2015-01-291-0/+33
* Make it the responsibility of the replication layer to check signature and ha...Erik Johnston2015-01-261-13/+76
* Split up replication_layer module into client, server and transaction queueErik Johnston2015-01-261-0/+345