summary refs log tree commit diff
path: root/synapse/handlers/federation.py (follow)
Commit message (Expand)AuthorAgeFilesLines
* Fix exceptions when attempting to backfill (#6576)Richard van der Hoff2019-12-201-1/+4
* Exclude rejected state events when calculating state at backwards extrems (#6...Richard van der Hoff2019-12-161-1/+1
* Persist auth/state events at backwards extremities when we fetch them (#6526)Richard van der Hoff2019-12-161-163/+80
* sanity-checking for events used in state res (#6531)Richard van der Hoff2019-12-161-0/+1
* Check the room_id of events when fetching room state/auth (#6524)Richard van der Hoff2019-12-161-24/+54
* Add `include_event_in_state` to _get_state_for_room (#6521)Richard van der Hoff2019-12-161-18/+21
* Move get_state methods into FederationHandler (#6503)Richard van der Hoff2019-12-161-6/+95
* Stronger typing in the federation handler (#6480)Richard van der Hoff2019-12-051-24/+57
* Sanity-check the rooms of auth events before pulling them in. (#6472)Richard van der Hoff2019-12-051-9/+25
* get rid of (most of) have_events from _update_auth_events_and_context_for_aut...Richard van der Hoff2019-12-041-38/+24
* Add ephemeral messages support (MSC2228) (#6409)Brendan Abolivier2019-12-031-0/+8
* Propagate reason in remotely rejected invitesErik Johnston2019-11-281-2/+2
* Merge pull request #6358 from matrix-org/babolivier/message_retentionBrendan Abolivier2019-11-271-2/+2
|\
| * Merge branch 'develop' into babolivier/message_retentionBrendan Abolivier2019-11-261-3/+8
| |\
| * | Fix 3PID invite exchangeBrendan Abolivier2019-11-191-1/+1
| * | Implement per-room message retention policiesBrendan Abolivier2019-11-041-1/+1
* | | remove confusing fixmeRichard van der Hoff2019-11-261-6/+0
* | | Merge remote-tracking branch 'origin/develop' into rav/event_auth/4Richard van der Hoff2019-11-181-2/+2
|\ \ \ | | |/ | |/|
| * | Replace instance variations of homeserver with correct case/spacingAndrew Morgan2019-11-121-2/+2
* | | Use get_events_as_list rather than lots of calls to get_eventRichard van der Hoff2019-11-081-16/+8
* | | Update some docstrings and commentsRichard van der Hoff2019-11-081-8/+31
* | | Simplify _update_auth_events_and_context_for_authRichard van der Hoff2019-11-081-11/+9
|/ /
* | Fix bug which caused rejected events to be stored with the wrong room state ...Richard van der Hoff2019-11-061-0/+1
* | Add some checks that we aren't using state from rejected events (#6330)Richard van der Hoff2019-11-051-1/+5
|/
* Factor out an _AsyncEventContextImpl (#6298)Richard van der Hoff2019-11-011-19/+19
* Depublish a room from the public rooms list when it is upgraded (#6232)Andrew Morgan2019-11-011-1/+29
* Update black to 19.10b0 (#6304)Amber Brown2019-11-011-4/+5
* Merge pull request #6294 from matrix-org/erikj/add_state_storageErik Johnston2019-10-311-9/+10
|\
| * Port to use state storageErik Johnston2019-10-301-9/+10
* | Remove usage of deprecated logger.warn method from codebase (#6271)Andrew Morgan2019-10-311-16/+20
|/
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/split_out_...Erik Johnston2019-10-301-3/+19
|\
| * Fix log line that was printing undefined value (#6278)Andrew Morgan2019-10-301-1/+1
| * Improve signature checking on some federation APIs (#6262)Richard van der Hoff2019-10-281-2/+18
* | Use new EventPersistenceStoreErik Johnston2019-10-231-1/+2
|/
* Remove Auth.check method (#6217)Richard van der Hoff2019-10-181-3/+4
* rip out some unreachable codeRichard van der Hoff2019-10-171-102/+0
* TypoBrendan Abolivier2019-10-041-1/+1
* LintBrendan Abolivier2019-10-041-3/+1
* Incorporate reviewBrendan Abolivier2019-10-041-14/+8
* Add test caseBrendan Abolivier2019-10-031-1/+1
* LintBrendan Abolivier2019-10-021-1/+3
* Don't 500 code when trying to exchange a revoked 3PID inviteBrendan Abolivier2019-10-021-2/+13
* Remove origin parameter from add_display_name_to_third_party_invite and add p...Andrew Morgan2019-09-111-1/+6
* Remove unnecessary parentheses around return statements (#5931)Andrew Morgan2019-08-301-1/+1
* Implement a structured logging output system. (#5680)Amber Brown2019-08-281-2/+3
* Merge pull request #5790 from matrix-org/erikj/groups_request_errorsErik Johnston2019-08-011-0/+3
|\
| * Don't log as exception when failing durig backfillErik Johnston2019-07-301-0/+3
* | Room Complexity Client Implementation (#5783)Amber Brown2019-07-301-0/+25
|/
* Merge pull request #5744 from matrix-org/erikj/log_leave_origin_mismatchRichard van der Hoff2019-07-261-2/+35
|\
| * Log when we receive a /make_* request from a different originRichard van der Hoff2019-07-261-2/+35
* | Replace returnValue with return (#5736)Amber Brown2019-07-231-42/+40
|/
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-041-21/+22
* Run Black. (#5482)Amber Brown2019-06-201-521/+363
* Merge pull request #5042 from matrix-org/erikj/fix_get_missing_events_errorErik Johnston2019-06-191-9/+19
|\
| * Fix loglineErik Johnston2019-06-181-1/+1
| * Merge branch 'develop' of github.com:matrix-org/synapse into erikj/fix_get_mi...Erik Johnston2019-06-181-132/+289
| |\
| * | Handle the case of `get_missing_events` failingErik Johnston2019-04-101-9/+20
* | | Add some logging to 3pid invite sig verification (#5015)David Baker2019-06-181-8/+38
| |/ |/|
* | Merge pull request #5464 from matrix-org/erikj/3pid_remote_invite_stateErik Johnston2019-06-171-6/+0
|\ \
| * | Fix 3PID invite room state over federation.Erik Johnston2019-06-141-6/+0
* | | Add plugin APIs for implementations of custom event rules.Brendan Abolivier2019-06-141-2/+66
|/ /
* | Add logging when request fails and clarify we ignore errors.Erik Johnston2019-06-051-4/+12
* | Fix handling of failures when calling /event_auth.Erik Johnston2019-06-031-12/+38
* | Simplifications and comments in do_auth (#5227)Richard van der Hoff2019-05-231-120/+181
* | Exclude soft-failed events from fwd-extremity candidates. (#5146)Richard van der Hoff2019-05-211-1/+6
|/
* Collect room-version variations into one place (#4969)Richard van der Hoff2019-04-011-8/+5
* Factor out soft fail checksErik Johnston2019-03-081-5/+22
* Implement soft failErik Johnston2019-03-061-1/+76
* clarify commentsErik Johnston2019-03-051-8/+11
* Only check history visibility when filteringErik Johnston2019-03-041-1/+3
* s/get_forward_events/get_successor_events/Erik Johnston2019-03-041-1/+1
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/stop_fed_n...Erik Johnston2019-03-041-3/+31
|\
| * Fix typoErik Johnston2019-02-251-1/+1
| * More commentsErik Johnston2019-02-251-0/+4
| * Assert rather than clobber the valuesErik Johnston2019-02-251-2/+2
| * Add comments and paranoiaErik Johnston2019-02-251-2/+23
| * Fix backfill storing incorrect state for eventsErik Johnston2019-02-221-1/+4
* | Update commentsErik Johnston2019-02-271-3/+13
* | Stop backpaginating when events not visibleErik Johnston2019-02-201-0/+31
|/
* Fix flake8 (#4519)Amber Brown2019-01-301-1/+1
* Use snder and not event ID domain to check if oursErik Johnston2019-01-291-0/+8
* Fixup calls to `comput_event_signature`Erik Johnston2019-01-291-1/+1
* Merge pull request #4494 from matrix-org/erikj/fixup_event_validatorErik Johnston2019-01-291-2/+5
|\
| * Split up event validation between event and builderErik Johnston2019-01-281-2/+5
* | Pass through room version to event authErik Johnston2019-01-251-8/+12
|/
* Require event format version to parse or create eventsErik Johnston2019-01-251-28/+44
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/msc_1813Erik Johnston2019-01-251-31/+18
|\
| * Merge pull request #4448 from matrix-org/erikj/get_pdu_versionsErik Johnston2019-01-241-2/+15
| |\
| | * Review commentsErik Johnston2019-01-241-0/+5
| | * Add room_version param to get_pduErik Johnston2019-01-231-2/+10
| * | Remove unecessary setting of outlier bitErik Johnston2019-01-241-2/+0
| * | Use term 'out of band membership' insteadErik Johnston2019-01-241-2/+2
| * | Clarify the invite flowsErik Johnston2019-01-231-1/+11
| * | Remove unnecessary '_sign_event'Erik Johnston2019-01-231-14/+0
| * | Store rejected remote invite events as outliersErik Johnston2019-01-231-32/+12
| |/
* / Implement MSC 1813 - Add room version to make APIsErik Johnston2019-01-231-1/+1
|/
* Remove hack to support rejoining roomsErik Johnston2018-11-091-74/+42
* Simplify to always drop events if server isn't in the roomErik Johnston2018-11-091-14/+9
* Add helpers for getting prev and auth events (#4139)Erik Johnston2018-11-061-24/+24
* Merge pull request #4040 from matrix-org/erikj/states_res_v2_rebaseErik Johnston2018-10-241-15/+15
|\
| * CommentErik Johnston2018-10-241-2/+5
| * Rename resolve_events_with_factoryErik Johnston2018-10-241-2/+2
| * Fix up use of resolve_events_with_factoryErik Johnston2018-10-161-13/+10
* | Remove redundant run_as_background_process() from pusherpoolRichard van der Hoff2018-10-221-2/+2
* | Fix incorrect truncation in get_missing_eventsRichard van der Hoff2018-10-161-7/+5
|/
* Avoid reraise, to improve stacktracesRichard van der Hoff2018-10-011-10/+10
* Include event when resolving state for missing prevsRichard van der Hoff2018-09-271-2/+16
* Include state from remote servers in pdu handlingRichard van der Hoff2018-09-271-4/+19
* Fix "unhashable type: 'list'" exception in federation handlingRichard van der Hoff2018-09-271-7/+12
* more commentsRichard van der Hoff2018-09-271-4/+3
* Clarifications in FederationHandlerRichard van der Hoff2018-09-271-2/+11
* Merge pull request #3966 from matrix-org/rav/rx_txn_logging_2Richard van der Hoff2018-09-271-0/+4
|\
| * Logging improvementsRichard van der Hoff2018-09-261-0/+4
* | Include eventid in log lines when processing incoming federation transactions...Richard van der Hoff2018-09-271-26/+39
|/
* Comments and interface cleanup for on_receive_pduRichard van der Hoff2018-09-201-23/+46
* Improve the logging when handling a federation transaction (#3904)Richard van der Hoff2018-09-191-55/+109
* Bump timeout on get_missing_events requestRichard van der Hoff2018-09-181-1/+30
* Port handlers/ to Python 3 (#3803)Amber Brown2018-09-071-3/+3
* Remove unnecessary resolve_events_with_state_mapErik Johnston2018-08-221-1/+1
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/refactor_s...Erik Johnston2018-08-201-20/+59
|\
| * Fix logcontexts for running pushersRichard van der Hoff2018-08-171-2/+1
| * Merge branch 'develop' of github.com:matrix-org/synapse into erikj/split_fede...Erik Johnston2018-08-151-1/+1
| |\
| | * Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678)Amber Brown2018-08-101-1/+1
| * | Use federation handler function rather than duplicateErik Johnston2018-08-151-7/+7
| * | Move clean_room_for_join to masterErik Johnston2018-08-091-2/+14
| * | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/split_fede...Erik Johnston2018-08-091-2/+11
| |\|
| * | Add EDU/query handling over replicationErik Johnston2018-08-061-11/+13
| * | Add replication APIs for persisting federation eventsErik Johnston2018-08-061-9/+35
* | | Remove redundant room_version checksErik Johnston2018-08-201-1/+1
* | | Choose state algorithm based on room versionErik Johnston2018-08-091-2/+6
| |/ |/|
* | include known room versions in outgoing make_joinsRichard van der Hoff2018-08-061-2/+11
|/
* Merge branch 'master' into developRichard van der Hoff2018-08-021-6/+23
|\
| * Avoid extra db lookupsRichard van der Hoff2018-08-021-27/+11
| * Validation for events/rooms in fed requestsRichard van der Hoff2018-08-021-1/+34
* | Merge pull request #3621 from matrix-org/erikj/split_fed_storeErik Johnston2018-08-021-87/+88
|\ \
| * | update docsErik Johnston2018-08-011-3/+5
| * | _persist_auth_tree no longer returns anythingErik Johnston2018-08-011-1/+1
| * | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/split_fed_...Erik Johnston2018-07-301-1/+1
| |\ \
| * | | Split out DB writes in federation handlerErik Johnston2018-07-251-83/+82
* | | | rename replication_layer to federation_clientRichard van der Hoff2018-07-311-14/+14
| |/ / |/| |
* | | Fix a minor documentation typo in on_make_leaveTravis Ralston2018-07-251-1/+1
|/ /
* | Handle delta_ids being None in _update_context_for_auth_eventsRichard van der Hoff2018-07-231-7/+6
* | Add support for updating stateErik Johnston2018-07-231-9/+23
* | Use new gettersErik Johnston2018-07-231-7/+16
* | Make the rest of the .iterwhatever go away (#3562)Amber Brown2018-07-211-9/+9
* | Merge pull request #3367 from matrix-org/rav/drop_re_signing_hacksRichard van der Hoff2018-07-181-43/+0
|\ \ | |/ |/|
| * Merge branch 'develop' into rav/drop_re_signing_hacksRichard van der Hoff2018-07-041-51/+153
| |\
| * | Remove event re-signing hacksRichard van der Hoff2018-06-071-43/+0
* | | Move filter_events_for_server out of FederationHandlerRichard van der Hoff2018-07-161-138/+6
* | | run isortAmber Brown2018-07-091-18/+22
| |/ |/|
* | try and clean upAmber Brown2018-06-271-3/+6
* | pep8Amber Brown2018-06-271-6/+4
* | cleanupsAmber Brown2018-06-271-13/+15
* | handle federation not telling us about prev_eventsAmber Brown2018-06-271-25/+62
* | Actually fix itErik Johnston2018-06-251-3/+3
* | CommentErik Johnston2018-06-251-0/+8
* | Fix bug with assuming wrong typeErik Johnston2018-06-251-2/+2
* | Add fast path to _filter_events_for_serverErik Johnston2018-06-251-1/+34
* | Revert "Revert "Merge pull request #3431 from matrix-org/rav/erasure_visibili...Erik Johnston2018-06-251-0/+13
* | Revert "Merge pull request #3431 from matrix-org/rav/erasure_visibility"Richard van der Hoff2018-06-221-13/+0
* | Merge pull request #3431 from matrix-org/rav/erasure_visibilityErik Johnston2018-06-221-0/+13
|\ \
| * | Filter out erased messagesRichard van der Hoff2018-06-121-0/+13
* | | Merge pull request #3428 from matrix-org/erikj/persisted_pduErik Johnston2018-06-221-18/+26
|\| |
| * | simplify get_persisted_pduRichard van der Hoff2018-06-121-18/+26
* | | Remove run_on_reactor (#3395)Amber Brown2018-06-141-5/+1
|/ /
* / Fix event filtering in get_missing_events handlerRichard van der Hoff2018-06-081-0/+4
|/
* Consistently use six's iteritems and wrap lazy keys/values in list() if they'...Amber Brown2018-05-311-9/+8
* Misc. py3 fixesAdrian Tschira2018-05-241-4/+5
* Merge pull request #3261 from matrix-org/erikj/pagination_fixesErik Johnston2018-05-241-9/+22
|\
| * Use iter* methodsErik Johnston2018-05-221-7/+7
| * Fix that states is a dict of dictsErik Johnston2018-05-221-1/+4
| * get_domains_from_state returns list of tuplesErik Johnston2018-05-221-2/+12
* | s/values/itervalues/Erik Johnston2018-05-231-1/+1
* | Use iter* methods for _filter_events_for_serverErik Johnston2018-05-231-4/+4
|/
* Make sure we reject attempts to invite the notices userRichard van der Hoff2018-05-181-0/+8
* Merge pull request #3153 from NotAFile/py3-httplibRichard van der Hoff2018-04-301-3/+3
|\
| * move httplib import to sixAdrian Tschira2018-04-281-3/+3
* | Merge remote-tracking branch 'origin/develop' into rav/use_run_in_backgroundRichard van der Hoff2018-04-271-6/+10
|\|
| * reraise exceptions more carefullyRichard van der Hoff2018-04-271-6/+10
* | Use run_in_background in preference to preserve_fnRichard van der Hoff2018-04-271-6/+10
|/
* Merge pull request #3118 from matrix-org/rav/reject_prev_eventsRichard van der Hoff2018-04-231-7/+71
|\
| * Remove spurious paramRichard van der Hoff2018-04-231-1/+0
| * accept stupid events over backfillRichard van der Hoff2018-04-201-4/+9
| * Add some commentsRichard van der Hoff2018-04-181-3/+12
| * Check events on backfill tooRichard van der Hoff2018-04-181-15/+42
| * Reject events which have too many auth_events or prev_eventsRichard van der Hoff2018-04-181-4/+28
* | Refactor store.have_eventsRichard van der Hoff2018-04-201-19/+12
|/
* s/replication_client/federation_client/Erik Johnston2018-03-131-1/+1
* Split replication layer into twoErik Johnston2018-03-131-3/+1
* Move RoomMemberHandler out of HandlersErik Johnston2018-03-011-2/+2
* Delete from push_actions_staging in federation tooErik Johnston2018-02-201-9/+17
* Merge pull request #2847 from matrix-org/erikj/separate_event_creationErik Johnston2018-02-061-10/+9
|\
| * Update copyrightErik Johnston2018-02-061-0/+1
| * s/_create_new_client_event/create_new_client_event/Erik Johnston2018-02-061-5/+5
| * Update places where we create eventsErik Johnston2018-02-051-10/+8
* | Store state groups separately from events (#2784)Erik Johnston2018-02-061-7/+17
|/
* Rename resolve_state_groups -> resolve_state_groups_for_eventsRichard van der Hoff2018-02-011-6/+5
* Add federation_domain_whitelist option (#2820)Matthew Hodgson2018-01-221-0/+4
* s/items/iteritems/Richard van der Hoff2017-11-081-2/+2
* Update deltas when doing auth resolutionRichard van der Hoff2017-11-071-3/+7
* factor out _update_context_for_auth_eventsRichard van der Hoff2017-11-071-20/+42
* replace 'except:' with 'except Exception:'Richard van der Hoff2017-10-231-8/+8
* Merge pull request #2490 from matrix-org/erikj/drop_left_room_eventsErik Johnston2017-10-101-0/+22
|\
| * Update commentsErik Johnston2017-10-031-1/+1
| * Remove spurious line feedErik Johnston2017-10-031-1/+0
| * Ignore incoming events for rooms that we have leftErik Johnston2017-10-031-0/+23
* | Fix up deferred handling in federation.pyRichard van der Hoff2017-10-061-24/+21
* | Spam checking: add the invitee to user_may_inviteDavid Baker2017-10-051-5/+7
* | pass room id tooDavid Baker2017-10-031-1/+1
* | Fix param name & lintDavid Baker2017-10-031-2/+4
* | Allow spam checker to reject invites tooDavid Baker2017-10-031-0/+4
|/
* Add a config option to block all room invites (#2457)Richard van der Hoff2017-09-191-0/+3
* add some comments to on_exchange_third_party_invite_requestRichard van der Hoff2017-09-191-0/+11
* Fix overzealous kicking of guest users (#2453)Richard van der Hoff2017-09-191-1/+1
* Don't compute push actions for backfilled eventsErik Johnston2017-07-111-1/+1
* Fix bug where pusherpool didn't start and broke some roomsErik Johnston2017-07-061-1/+2
* Improve the error handling for bad invites received over federationMark Haines2017-06-301-2/+17
* Add shutdown room APIErik Johnston2017-06-191-0/+4
* CommentErik Johnston2017-06-091-0/+2
* Mark remote invite rejections as outliersErik Johnston2017-06-091-0/+1
* Only store event_auth for state eventsErik Johnston2017-05-241-6/+14
* Store ActionGenerator in HomeServerErik Johnston2017-05-191-3/+2
* Remove redundant reset of destination timersErik Johnston2017-05-051-7/+0
* Merge together redundant calculations/loggingErik Johnston2017-05-031-9/+2
* FixupErik Johnston2017-04-281-10/+4
* Remove unncessary call in _get_missing_events_for_pduErik Johnston2017-04-281-13/+11
* Don't fetch state for missing events that we fetchedErik Johnston2017-04-281-0/+6
* TypoErik Johnston2017-04-271-1/+1
* Add some extra logging for edge cases of federationErik Johnston2017-04-271-2/+22
* Remove redundant try/except clausesRichard van der Hoff2017-04-211-23/+11
* Merge branch 'master' of github.com:matrix-org/synapse into developErik Johnston2017-04-111-4/+4
|\
| * When we do an invite rejection, save the signed leave event to the dbRichard van der Hoff2017-04-071-4/+4
* | Merge pull request #2095 from matrix-org/rav/cull_log_preservesRichard van der Hoff2017-04-031-24/+19
|\ \ | |/ |/|
| * Remove more spurious `PreserveLoggingContext`sRichard van der Hoff2017-04-031-24/+19
* | Accept join events from all serversRichard van der Hoff2017-04-031-3/+13
|/
* Merge pull request #2027 from matrix-org/rav/logcontext_leaksRichard van der Hoff2017-03-201-2/+3
|\
| * Stop preserve_fn leaking context into the reactorRichard van der Hoff2017-03-181-2/+3
* | Refactoring and cleanupsRichard van der Hoff2017-03-171-0/+10
|/
* Queue up federation PDUs while a room join is in progressRichard van der Hoff2017-03-151-24/+44
* Move FederationServer._handle_new_pdu to FederationHandlerRichard van der Hoff2017-03-091-5/+197
* Pop with default value to stop throwingErik Johnston2017-02-281-1/+1
* Pop rather than del from dictErik Johnston2017-02-271-1/+1
* Derive current_state_events from state groupsErik Johnston2017-01-201-1/+0
* Merge pull request #1822 from matrix-org/erikj/statE_loggingErik Johnston2017-01-181-1/+1
|\
| * Change resolve_state_groups call site logging to DEBUGErik Johnston2017-01-171-1/+1
* | Fix couple of federation state bugsErik Johnston2017-01-171-1/+1
* | Optimise state resolutionErik Johnston2017-01-171-1/+1
|/
* Fix caseMatthew Hodgson2017-01-051-1/+1
* add logging for all the places we call resolve_state_groups. my kingdom for a...Matthew Hodgson2017-01-051-0/+1
* Only send events that originate on this server.Mark Haines2017-01-051-0/+4