Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Typo | Brendan Abolivier | 2019-10-04 | 1 | -1/+1 |
| | |||||
* | Lint | Brendan Abolivier | 2019-10-04 | 1 | -3/+1 |
| | |||||
* | Incorporate review | Brendan Abolivier | 2019-10-04 | 1 | -14/+8 |
| | |||||
* | Add test case | Brendan Abolivier | 2019-10-04 | 1 | -1/+1 |
| | |||||
* | Lint | Brendan Abolivier | 2019-10-04 | 1 | -1/+3 |
| | |||||
* | Don't 500 code when trying to exchange a revoked 3PID invite | Brendan Abolivier | 2019-10-04 | 1 | -2/+13 |
| | | | | | | | | While this is not documented in the spec (but should be), Riot (and other clients) revoke 3PID invites by sending a m.room.third_party_invite event with an empty ({}) content to the room's state. When the invited 3PID gets associated with a MXID, the identity server (which doesn't know about revocations) sends down to the MXID's homeserver all of the undelivered invites it has for this 3PID. The homeserver then tries to talk to the inviting homeserver in order to exchange these invite for m.room.member events. When one of the invite is revoked, the inviting homeserver responds with a 500 error because it tries to extract a 'display_name' property from the content, which is empty. This might cause the invited server to consider that the server is down and not try to exchange other, valid invites (or at least delay it). This fix handles the case of revoked invites by avoiding trying to fetch a 'display_name' from the original invite's content, and letting the m.room.member event fail the auth rules (because, since the original invite's content is empty, it doesn't have public keys), which results in sending a 403 with the correct error message to the invited server. | ||||
* | Merge pull request #7 from matrix-org/babolivier/deactivation-invite | Brendan Abolivier | 2019-09-27 | 1 | -0/+37 |
|\ | | | | | Reject pending invites on deactivation | ||||
| * | s/return/defer.returnValue/ | Brendan Abolivier | 2019-09-27 | 1 | -1/+1 |
| | | |||||
| * | Incorporate review | Brendan Abolivier | 2019-09-27 | 1 | -4/+2 |
| | | |||||
| * | Update synapse/handlers/deactivate_account.py | Brendan Abolivier | 2019-09-27 | 1 | -1/+3 |
| | | | | | | Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | ||||
| * | Update synapse/handlers/deactivate_account.py | Brendan Abolivier | 2019-09-27 | 1 | -0/+4 |
| | | | | | | Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | ||||
| * | Lint | Brendan Abolivier | 2019-09-27 | 1 | -1/+34 |
| | | |||||
* | | Allow membership events which membership isn't join or invite in restricted ↵ | Brendan Abolivier | 2019-09-26 | 1 | -1/+9 |
|/ | | | | rooms | ||||
* | Consider every room as having no retention policy if the feature is disabled | Brendan Abolivier | 2019-09-24 | 1 | -0/+8 |
| | |||||
* | Move get_retention_policy_for_room to RoomWorkerStore | Brendan Abolivier | 2019-09-24 | 1 | -55/+55 |
| | |||||
* | Remove unnecessary cast to list | Brendan Abolivier | 2019-09-20 | 1 | -1/+1 |
| | |||||
* | Lint | Brendan Abolivier | 2019-09-19 | 1 | -1/+2 |
| | |||||
* | Use six.moves.filter when filtering out from MXID | Brendan Abolivier | 2019-09-19 | 1 | -1/+3 |
| | | | | Python 2's filter() function and Python 3's don't return the same type when processing a string (respectively str and filter), therefore use six's compatibility mapping (which resolves to itertools.ifilter() if using Python2), then generate a string from the filtered list, in order to ensure consistent behaviour between Python 2 and Python 3. | ||||
* | Merge pull request #2 from matrix-org/babolivier/dinsic-3pid-invite | Brendan Abolivier | 2019-09-10 | 1 | -9/+14 |
|\ | | | | | Don't treat 3PID revocation as a new 3PID invite | ||||
| * | Process revocations in _on_membership_or_invite_direct | Brendan Abolivier | 2019-09-09 | 1 | -18/+11 |
| | | |||||
| * | Typo | Brendan Abolivier | 2019-09-06 | 1 | -1/+1 |
| | | |||||
| * | Only filter on 3PID invite tokens | Brendan Abolivier | 2019-09-06 | 1 | -6/+6 |
| | | |||||
| * | Merge branch 'dinsic' into babolivier/dinsic-3pid-invite | Brendan Abolivier | 2019-09-06 | 1 | -0/+48 |
| |\ | |||||
| * | | Don't process revoked/redacted events as part of the room's membership info | Brendan Abolivier | 2019-09-06 | 1 | -2/+2 |
| | | | |||||
| * | | Don't treat 3PID revokation as a new 3PID invite | Brendan Abolivier | 2019-09-06 | 1 | -7/+19 |
| | | | |||||
* | | | Rename io.open import to limite side-effects | Brendan Abolivier | 2019-09-09 | 1 | -2/+2 |
| | | | |||||
* | | | Lint | Brendan Abolivier | 2019-09-09 | 1 | -1/+1 |
| | | | |||||
* | | | Revert "Merge pull request #5932 from ↵ | Brendan Abolivier | 2019-09-09 | 2 | -4/+2 |
| | | | | | | | | | | | | | | | | | | | | | matrix-org/babolivier/account_validity_template_encode" This reverts commit 84e695f506faf54982b9e19dceb9c02acffad95f, reversing changes made to 99eec6d2d5cc76e645c3fd7ca6cda85b2bab6feb. | ||||
* | | | Read all files as UTF-8 | Brendan Abolivier | 2019-09-09 | 1 | -1/+2 |
| | | | |||||
* | | | Revert "Ensure the password reset template is correctly converted to binary" | Brendan Abolivier | 2019-09-09 | 1 | -2/+1 |
| | | | | | | | | | | | | This reverts commit 665dd9f7f8db2f8d38f454d4d5b96efcf163a5db. | ||||
* | | | Ensure the password reset template is correctly converted to binary | Brendan Abolivier | 2019-09-09 | 1 | -1/+2 |
| |/ |/| | | | | | Regardless of the Python version | ||||
* | | Lint | Brendan Abolivier | 2019-09-05 | 1 | -2/+0 |
| | | |||||
* | | Forbid changing the name, avatar or topic of a direct room | Brendan Abolivier | 2019-09-05 | 1 | -0/+50 |
|/ | |||||
* | Bump requirement for six to 1.12 | Brendan Abolivier | 2019-08-29 | 1 | -1/+1 |
| | |||||
* | Fix encoding for account validity HTML files on Python 2 | Brendan Abolivier | 2019-08-29 | 1 | -1/+3 |
| | |||||
* | Merge branch 'dinsic' into babolivier/dinsic-message-retention | Brendan Abolivier | 2019-08-28 | 8 | -42/+190 |
|\ | |||||
| * | Merge pull request #5812 from matrix-org/babolivier/account-validity-messages dinsic_2019-08-12 | Michael Kaye | 2019-08-12 | 5 | -9/+69 |
| |\ | | | | | | | Account validity: allow defining HTML templates to serve the user on account renewal attempt | ||||
| | * | Lint | Brendan Abolivier | 2019-08-01 | 2 | -13/+8 |
| | | | |||||
| | * | Allow defining HTML templates to serve the user on account renewal | Brendan Abolivier | 2019-08-01 | 5 | -9/+74 |
| | | | |||||
| * | | Merge pull request #5781 from matrix-org/baboliver/loopingcall-args dinsic_2019-08-08 | Michael Kaye | 2019-08-08 | 1 | -2/+4 |
| |\ \ | | | | | | | | | Add ability to pass arguments to looping calls | ||||
| | * | | Add kwargs and doc | Brendan Abolivier | 2019-07-29 | 1 | -2/+4 |
| | | | | |||||
| | * | | Add ability to pass arguments to looping calls | Brendan Abolivier | 2019-07-29 | 1 | -2/+2 |
| | | | | |||||
| * | | | Merge pull request #5760 from ↵ | Michael Kaye | 2019-08-08 | 1 | -14/+85 |
| |\ \ \ | | |_|/ | |/| | | | | | | | | | | matrix-org/babolivier/access-rules-public-restricted Force the access rule to be "restricted" if the join rule is "public" | ||||
| | * | | Explain rationale | Brendan Abolivier | 2019-08-01 | 1 | -0/+4 |
| | | | | |||||
| | * | | Incorporate review | Brendan Abolivier | 2019-07-30 | 1 | -15/+13 |
| | | | | |||||
| | * | | Merge ifs | Brendan Abolivier | 2019-07-25 | 1 | -5/+4 |
| | | | | |||||
| | * | | Doc | Brendan Abolivier | 2019-07-25 | 1 | -2/+14 |
| | | | | |||||
| | * | | Only check the join rule on room creation if an access rule is also provided | Brendan Abolivier | 2019-07-25 | 1 | -12/+12 |
| | | | | |||||
| | * | | Implement restrictions on new events | Brendan Abolivier | 2019-07-24 | 1 | -1/+40 |
| | | | | |||||
| | * | | Implement restriction on public room creation | Brendan Abolivier | 2019-07-24 | 1 | -11/+30 |
| | |/ | |||||
| * | | Ignore redactions of redactions in get_events_as_list | Brendan Abolivier | 2019-07-31 | 1 | -4/+1 |
| | | | |||||
| * | | Ignore invalid redactions in _get_event_from_row | Brendan Abolivier | 2019-07-31 | 1 | -0/+5 |
| | | | |||||
| * | | Should now work, unless we can't find the redaction event which happens for ↵ | Brendan Abolivier | 2019-07-30 | 1 | -18/+18 |
| | | | | | | | | | | | | some reason (need to investigate) | ||||
| * | | Don't make the checks depend on recheck_redaction | Brendan Abolivier | 2019-07-30 | 1 | -20/+23 |
| | | | |||||
| * | | Do checks sooner | Brendan Abolivier | 2019-07-29 | 1 | -21/+19 |
| | | | |||||
| * | | Check room ID and type of redacted event | Brendan Abolivier | 2019-07-29 | 1 | -10/+22 |
| |/ | |||||
* / | Implement per-room message retention policies | Brendan Abolivier | 2019-08-28 | 10 | -7/+689 |
|/ | |||||
* | Merge branch 'dinsic' into babolivier/3pid-invite | Brendan Abolivier | 2019-07-17 | 1 | -0/+4 |
|\ | |||||
| * | Merge pull request #5646 from matrix-org/babolivier/profile-allow-self dinsic_2019-07-09 | Brendan Abolivier | 2019-07-09 | 1 | -0/+4 |
| |\ | | | | | | | Port #5644 to dinsic | ||||
| | * | Allow newly-registered users to lookup their own profiles | Brendan Abolivier | 2019-07-09 | 1 | -0/+4 |
| | | | | | | | | | | | | When a user creates an account and the 'require_auth_for_profile_requests' config flag is set, and a client that performed the registration wants to lookup the newly-created profile, the request will be denied because the user doesn't share a room with themselves yet. | ||||
* | | | There's no third_party_signed property in an invite's content | Brendan Abolivier | 2019-07-17 | 1 | -6/+3 |
| | | | |||||
* | | | Fix check of the association between a 3PID invite and the subsequent ↵ | Brendan Abolivier | 2019-07-17 | 1 | -1/+7 |
|/ / | | | | | | | m.room.member event in the 3rd party rules | ||||
* | | Merge pull request #5610 from matrix-org/babolivier/power-levels dinsic_2019-07-04 | Brendan Abolivier | 2019-07-04 | 1 | -34/+120 |
|\ \ | | | | | | | Implement new restrictions on power levels | ||||
| * \ | Merge branch 'babolivier/power-levels' of github.com:matrix-org/synapse into ↵ | Brendan Abolivier | 2019-07-03 | 1 | -0/+1 |
| |\ \ | | | | | | | | | | | | | babolivier/power-levels | ||||
| | * | | Update synapse/third_party_rules/access_rules.py | Brendan Abolivier | 2019-07-03 | 1 | -0/+1 |
| | | | | | | | | | | | | Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | ||||
| * | | | Incorporate review | Brendan Abolivier | 2019-07-03 | 1 | -6/+10 |
| |/ / | |||||
| * | | Incorporate review | Brendan Abolivier | 2019-07-03 | 1 | -8/+12 |
| | | | |||||
| * | | Change the rule for applying PL restrictions | Brendan Abolivier | 2019-07-03 | 1 | -3/+7 |
| | | | |||||
| * | | Default return value for events we're not interested in | Brendan Abolivier | 2019-07-03 | 1 | -0/+2 |
| | | | |||||
| * | | Refactor part of the access rules module | Brendan Abolivier | 2019-07-03 | 1 | -33/+47 |
| | | | | | | | | | | | | Since we're not processing only membership events and 3PID invites anymore, it's nice to know which function is supposed to process what. | ||||
| * | | Implement restrictions for power levels | Brendan Abolivier | 2019-07-03 | 1 | -0/+57 |
| |/ | |||||
* | | Only ratelimit when sending the email | Brendan Abolivier | 2019-06-28 | 1 | -1/+2 |
| | | | | | | | | If we do the opposite, an event can arrive after or while sending the email and the 3PID invite event will get ratelimited. | ||||
* | | Don't update the ratelimiter before sending a 3PID invite | Brendan Abolivier | 2019-06-28 | 1 | -1/+1 |
|/ | | | | This would cause emails being sent, but Synapse responding with a 429 when creating the event. The client would then retry, and with bad timing the same scenario would happen again. Some testing I did ended up sending me 10 emails for one single invite because of this. | ||||
* | Merge pull request #5574 from matrix-org/babolivier/fix-3pid-bind dinsic_2019-06-27 | Brendan Abolivier | 2019-06-27 | 1 | -3/+8 |
|\ | | | | | Fix new 3PID bindings being associated with rewritten IS's server names instead of the original one | ||||
| * | Fix new 3PID bindings being associated with rewritten IS's server names ↵ | Brendan Abolivier | 2019-06-27 | 1 | -3/+8 |
| | | | | | | | | | | | | instead of the original one This would make unbind requests fail because Synapse is using the server name it has in DB as destination_is to generate signature, and Sydent uses its own server name there when verifying it, so if a mismatch happens, which is the case if the name gets rewritten for routing purposes, the unbind requests fail on the signature verification. | ||||
* | | Split public rooms directory auth config in two | Brendan Abolivier | 2019-06-24 | 3 | -15/+39 |
| | | |||||
* | | Merge pull request #5495 from matrix-org/babolivier/deactivate_bg_job_typo dinsic_2019-06-19 | Brendan Abolivier | 2019-06-19 | 1 | -1/+1 |
|\ \ | | | | | | | Port "Fix typo in deactivation background job" to dinsic | ||||
| * | | Fix typo in deactivation background job | Brendan Abolivier | 2019-06-19 | 1 | -1/+1 |
| | | | |||||
* | | | Don't process 3PIDs in _apply_restricted | Brendan Abolivier | 2019-06-18 | 1 | -1/+3 |
| | | | |||||
* | | | Lint | Brendan Abolivier | 2019-06-18 | 1 | -1/+0 |
| | | | |||||
* | | | Incorporate review | Brendan Abolivier | 2019-06-18 | 1 | -78/+69 |
| | | | |||||
* | | | Fixes | Brendan Abolivier | 2019-06-18 | 1 | -0/+5 |
| | | | |||||
* | | | Docstrings | Brendan Abolivier | 2019-06-17 | 1 | -27/+154 |
| | | | |||||
* | | | Rename into RoomAccessRules | Brendan Abolivier | 2019-06-17 | 2 | -1/+1 |
| | | | |||||
* | | | Fix function call | Brendan Abolivier | 2019-06-17 | 1 | -1/+1 |
| | | | |||||
* | | | Implement rules change | Brendan Abolivier | 2019-06-17 | 1 | -1/+40 |
| | | | |||||
* | | | Improve doc | Brendan Abolivier | 2019-06-17 | 1 | -3/+8 |
| | | | |||||
* | | | Implement 3PID invite hook | Brendan Abolivier | 2019-06-17 | 1 | -7/+49 |
| | | | |||||
* | | | Implement restricted rules and room creation hook | Brendan Abolivier | 2019-06-17 | 1 | -11/+43 |
| | | | |||||
* | | | Implement rules for direct | Brendan Abolivier | 2019-06-17 | 1 | -12/+100 |
| | | | |||||
* | | | Backbone | Brendan Abolivier | 2019-06-17 | 1 | -0/+11 |
| | | | |||||
* | | | Base | Brendan Abolivier | 2019-06-17 | 2 | -0/+45 |
|/ / | |||||
* | | Make check_threepid_can_be_invited async | Brendan Abolivier | 2019-06-17 | 1 | -0/+1 |
| | | |||||
* | | Add third party rules hook for 3PID invites | Brendan Abolivier | 2019-06-17 | 2 | -1/+41 |
| | | |||||
* | | Add third party rules hook into create room | Erik Johnston | 2019-06-17 | 2 | -6/+37 |
| | | |||||
* | | Merge pull request #5471 from matrix-org/erikj/3pid_remote_invite_state | Brendan Abolivier | 2019-06-17 | 1 | -6/+0 |
|\ \ | | | | | | | Port "Fix 3PID invite room state over federation" to dinsic | ||||
| * | | Fix 3PID invite room state over federation. | Erik Johnston | 2019-06-14 | 1 | -6/+0 |
| | | | | | | | | | | | | | | | | | | | | | Fixes that when a user exchanges a 3PID invite for a proper invite over federation it does not include the `invite_room_state` key. This was due to synapse incorrectly sending out two invite requests. | ||||
* | | | Merge branch 'babolivier/third_party_event_rules' into dinsic | Brendan Abolivier | 2019-06-14 | 6 | -4/+189 |
|\ \ \ | |||||
| * | | | Add plugin APIs for implementations of custom event rules. | Brendan Abolivier | 2019-06-14 | 6 | -4/+191 |
| | | | | |||||
* | | | | Fix background job for deactivated flag | Brendan Abolivier | 2019-06-14 | 1 | -2/+4 |
| | | | | |||||
* | | | | Don't send renewal emails to deactivated users | Brendan Abolivier | 2019-06-14 | 4 | -2/+25 |
| | | | | |||||
* | | | | Track deactivated accounts in the database (#5378) | Brendan Abolivier | 2019-06-14 | 3 | -0/+137 |
| | | | | |||||
* | | | | Merge branch 'dinsic' into babolivier/userdir_hide_users | Brendan Abolivier | 2019-06-14 | 1 | -0/+1 |
|\ \ \ \ | |||||
| * | | | | Make index unique | Brendan Abolivier | 2019-06-14 | 1 | -0/+1 |
| | | | | | |||||
* | | | | | Merge branch 'babolivier/fix_profile_replication' into ↵ | Brendan Abolivier | 2019-06-13 | 2 | -2/+15 |
|\| | | | | | | | | | | | | | | | | | | | babolivier/userdir_hide_users | ||||
| * | | | | Lint | Brendan Abolivier | 2019-06-13 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | Fix snafu | Brendan Abolivier | 2019-06-13 | 1 | -2/+3 |
| | | | | | |||||
| * | | | | Create the index in a background update | Brendan Abolivier | 2019-06-13 | 2 | -3/+15 |
| | | | | | |||||
| * | | | | Lint | Brendan Abolivier | 2019-06-12 | 1 | -1/+0 |
| | | | | | |||||
| * | | | | Merge branch 'dinsic' into babolivier/fix_profile_replication | Brendan Abolivier | 2019-06-12 | 124 | -1623/+8245 |
| |\ \ \ \ | |||||
* | | | | | | Lint | Brendan Abolivier | 2019-06-12 | 1 | -1/+0 |
| | | | | | | |||||
* | | | | | | Merge branch 'dinsic' into babolivier/userdir_hide_users | Brendan Abolivier | 2019-06-12 | 125 | -1623/+8245 |
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | |||||
| * | | | | | Regenerate full schemas | Brendan Abolivier | 2019-06-12 | 2 | -2/+17 |
| | | | | | | |||||
| * | | | | | Fix path for password policy endpoints | Brendan Abolivier | 2019-06-12 | 1 | -2/+2 |
| | | | | | | |||||
| * | | | | | Merge branch 'master' into dinsic | Brendan Abolivier | 2019-06-12 | 109 | -1337/+6437 |
| |\ \ \ \ \ | | | |_|/ / | | |/| | | | |||||
| | * | | | | 1.0.0 v1.0.0 | Erik Johnston | 2019-06-11 | 1 | -1/+1 |
| | | | | | | |||||
| | * | | | | Bump bleach version so that tests can run on old deps. | Erik Johnston | 2019-06-11 | 1 | -1/+1 |
| | | | | | | |||||
| | * | | | | Change password reset links to /_matrix. | Erik Johnston | 2019-06-11 | 4 | -7/+7 |
| | | |/ / | | |/| | | |||||
| | * | | | 1.0.0rc3 v1.0.0rc3 | Erik Johnston | 2019-06-11 | 1 | -1/+1 |
| | | | | | |||||
| | * | | | Fix defaults on checking threepids | Erik Johnston | 2019-06-10 | 2 | -1/+2 |
| | | | | | |||||
| | * | | | Merge pull request #5418 from matrix-org/erikj/fix_send_fed_with_limit_zero | Erik Johnston | 2019-06-10 | 1 | -0/+4 |
| | |\ \ \ | | | | | | | | | | | | | Fix bug sending federation transactions with lots of EDUs | ||||
| | | * | | | Fix bug sending federation transactions with lots of EDUs | Erik Johnston | 2019-06-10 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we try and send a transaction with lots of EDUs and we run out of space, we call get_new_device_msgs_for_remote with a limit of 0, which then failed. | ||||
| | * | | | | 1.0.0rc2 v1.0.0rc2 | Erik Johnston | 2019-06-10 | 1 | -1/+1 |
| | | | | | | |||||
| | * | | | | Merge pull request #5417 from matrix-org/rav/shared_ssl_context | Erik Johnston | 2019-06-10 | 2 | -75/+110 |
| | |\ \ \ \ | | | |/ / / | | |/| | | | Share an SSL context object between SSL connections | ||||
| | | * | | | rename gutwrenched attr | Richard van der Hoff | 2019-06-10 | 1 | -5/+9 |
| | | | | | | |||||
| | | * | | | Fix federation connections to literal IP addresses | Richard van der Hoff | 2019-06-10 | 2 | -6/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | turns out we need a shiny version of service_identity to enforce this correctly. | ||||
| | | * | | | clean up impl, and import idna directly | Richard van der Hoff | 2019-06-10 | 2 | -15/+12 |
| | | | | | | |||||
| | | * | | | Share an SSL context object between SSL connections | Richard van der Hoff | 2019-06-09 | 1 | -60/+89 |
| | | | | | | | | | | | | | | | | | | | | | | | | This involves changing how the info callbacks work. | ||||
| | * | | | | Merge branch 'erikj/fix_null_valid_until_ms' of ↵ | Erik Johnston | 2019-06-10 | 1 | -0/+8 |
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | github.com:matrix-org/synapse into release-v1.0.0 | ||||
| | | * | | | | Fix key verification when key stored with null valid_until_ms | Erik Johnston | 2019-06-10 | 1 | -0/+8 |
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some keys are stored in the synapse database with a null valid_until_ms which caused an exception to be thrown when using that key. We fix this by treating nulls as zeroes, i.e. they keys will match verification requests with a minimum_valid_until_ms of zero (i.e. don't validate ts) but will not match requests with a non-zero minimum_valid_until_ms. Fixes #5391. | ||||
| | * / / / | Improve startup checks for insecure notary configs (#5392) | Richard van der Hoff | 2019-06-10 | 2 | -11/+23 |
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's not really a problem to trust notary responses signed by the old key so long as we are also doing TLS validation. This commit adds a check to the config parsing code at startup to check that we do not have the insecure matrix.org key without tls validation, and refuses to start without it. This allows us to remove the rather alarming-looking warning which happens at runtime. | ||||
| | * | | | 1.0.0rc1 v1.0.0rc1 | Neil Johnson | 2019-06-07 | 1 | -1/+1 |
| | | | | | |||||
| | * | | | Prevent multiple device list updates from breaking a batch send (#5156) | Andrew Morgan | 2019-06-06 | 2 | -31/+126 |
| | | | | | | | | | | | | | | | fixes #5153 | ||||
| | * | | | Set default room version to v4. (#5379) | Neil Johnson | 2019-06-06 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | Set default room version to v4. | ||||
| | * | | | Merge pull request #5320 from matrix-org/hawkowl/full-schema-v1 | Erik Johnston | 2019-06-06 | 5 | -2/+2352 |
| | |\ \ \ | | | | | | | | | | | | | Make a full SQL schema | ||||
| | | * | | | fix maybe | Amber H. Brown | 2019-06-07 | 1 | -20/+2 |
| | | | | | | |||||
| | | * | | | just user dir? | Amber H. Brown | 2019-06-07 | 1 | -1/+19 |
| | | | | | | |||||
| | | * | | | remove background updates that arent needed | Amber H. Brown | 2019-06-07 | 1 | -33/+1 |
| | | | | | | |||||
| | | * | | | add more comments | Amber Brown | 2019-06-06 | 1 | -0/+5 |
| | | | | | | |||||
| | | * | | | Merge remote-tracking branch 'origin/develop' into hawkowl/full-schema-v1 | Amber Brown | 2019-06-04 | 39 | -323/+294 |
| | | |\ \ \ | |||||
| | | * | | | | add stuff in bg updates | Amber Brown | 2019-06-04 | 1 | -10/+62 |
| | | | | | | | |||||
| | | * | | | | WHY IS THIS CALLED A SLIGHTLY DIFFERENT THING | Amber Brown | 2019-06-03 | 1 | -0/+1 |
| | | | | | | | |||||
| | | * | | | | more fix | Amber Brown | 2019-06-03 | 1 | -0/+38 |
| | | | | | | | |||||
| | | * | | | | fix schemas | Amber Brown | 2019-06-03 | 4 | -61/+20 |
| | | | | | | | |||||
| | | * | | | | full schema | Amber Brown | 2019-06-03 | 3 | -0/+2315 |
| | | | | | | | |||||
| | | * | | | | prepare | Amber Brown | 2019-06-03 | 1 | -2/+14 |
| | | | | | | | |||||
| | * | | | | | Add ability to perform password reset via email without trusting the ↵ | Andrew Morgan | 2019-06-06 | 17 | -60/+871 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | identity server (#5377) Sends password reset emails from the homeserver instead of proxying to the identity server. This is now the default behaviour for security reasons. If you wish to continue proxying password reset requests to the identity server you must now enable the email.trust_identity_server_for_password_resets option. This PR is a culmination of 3 smaller PRs which have each been separately reviewed: * #5308 * #5345 * #5368 | ||||
| | * | | | | | Stop hardcoding trust of old matrix.org key (#5374) | Richard van der Hoff | 2019-06-06 | 2 | -74/+226 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are a few changes going on here: * We make checking the signature on a key server response optional: if no verify_keys are specified, we trust to TLS to validate the connection. * We change the default config so that it does not require responses to be signed by the old key. * We replace the old 'perspectives' config with 'trusted_key_servers', which is also formatted slightly differently. * We emit a warning to the logs every time we trust a key server response signed by the old key. | ||||
| | * | | | | | Fix missing logcontext for PresenceHandler.on_shutdown. (#5369) | Richard van der Hoff | 2019-06-06 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes some warnings, and a scary-looking stacktrace when sytest kills the process. | ||||
| | * | | | | | Merge pull request #5221 from matrix-org/erikj/fix_worker_sytest | Erik Johnston | 2019-06-06 | 1 | -1/+11 |
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | Fix get_max_topological_token to never return None | ||||
| | | * | | | | | Better words | Erik Johnston | 2019-06-06 | 1 | -1/+1 |
| | | | | | | | | |||||
| | | * | | | | | Fix get_max_topological_token to never return None | Erik Johnston | 2019-05-21 | 1 | -1/+11 |
| | | | | | | | | |||||
| | * | | | | | | Merge pull request #5089 from dnaf/m-heroes-empty-room-name | Brendan Abolivier | 2019-06-06 | 1 | -5/+4 |
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | Make /sync return heroes if room name or canonical alias are empty | ||||
| | | * | | | | | | Simplify condition | Brendan Abolivier | 2019-06-06 | 1 | -2/+2 |
| | | | | | | | | | |||||
| | | * | | | | | | Simplify condition | Brendan Abolivier | 2019-06-05 | 1 | -3/+2 |
| | | | | | | | | | |||||
| | | * | | | | | | Merge branch 'develop' into m-heroes-empty-room-name | Brendan Abolivier | 2019-06-05 | 136 | -1945/+5896 |
| | | |\ \ \ \ \ \ | |||||
| | | * | | | | | | | Lint | Katie Wolfe | 2019-04-24 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I probably should've just run autopep8 in the first place... Signed-off-by: Katie Wolfe <katie@dnaf.moe> | ||||
| | | * | | | | | | | Clean up code | Katie Wolfe | 2019-04-24 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Katie Wolfe <katie@dnaf.moe> | ||||
| | | * | | | | | | | Show heroes if room name or canonical alias are empty | Katie Wolfe | 2019-04-24 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #4194 Signed-off-by: Katie Wolfe <katie@dnaf.moe> | ||||
| | | * | | | | | | | Show heroes if room name or canonical alias are empty | Katie Wolfe | 2019-04-24 | 1 | -5/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #4194 Signed-off-by: Katie Wolfe <katie@dnaf.moe> | ||||
| | * | | | | | | | | Merge pull request #5359 from matrix-org/rav/enable_tls_verification | Richard van der Hoff | 2019-06-06 | 1 | -5/+5 |
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | Validate federation server TLS certificates by default. | ||||
| | | * \ \ \ \ \ \ \ | Merge branch 'rav/fix_custom_ca' into rav/enable_tls_verification | Richard van der Hoff | 2019-06-05 | 7 | -22/+121 |
| | | |\ \ \ \ \ \ \ \ | |||||
| | | * | | | | | | | | | Validate federation server TLS certificates by default. | Richard van der Hoff | 2019-06-05 | 1 | -5/+5 |
| | | | | | | | | | | | | |||||
| | * | | | | | | | | | | Merge pull request #5355 from matrix-org/babolivier/heroes_left_members | Brendan Abolivier | 2019-06-06 | 1 | -15/+19 |
| | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Include left members in room summaries' heroes | ||||
| | | * | | | | | | | | | | Do user_id != me checks before deciding whether we should pick heroes from ↵ | Brendan Abolivier | 2019-06-05 | 1 | -15/+19 |
| | | | |_|_|/ / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the joined members or the parted ones | ||||
| | * | | | | | | | | | | Merge pull request #5354 from matrix-org/rav/server_keys/99-room-v5 | Richard van der Hoff | 2019-06-06 | 1 | -5/+5 |
| | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement room v5 which enforces signing key validity | ||||
| | | * | | | | | | | | | | Implement room v5 which enforces signing key validity | Richard van der Hoff | 2019-06-05 | 1 | -5/+5 |
| | | | |/ / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements [MSC2077](https://github.com/matrix-org/matrix-doc/pull/2077) and fixes #5247 and #4364. | ||||
| | * | | | | | | | | | | Merge pull request #5353 from matrix-org/rav/verify_key_logging | Richard van der Hoff | 2019-06-06 | 4 | -46/+76 |
| | |\ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / | | |/| | | | | | | | | | Associate a request_name with each verify request, for logging | ||||
| | | * | | | | | | | | | Associate a request_name with each verify request, for logging | Richard van der Hoff | 2019-06-05 | 4 | -46/+76 |
| | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also: * rename VerifyKeyRequest->VerifyJsonRequest * calculate key_ids on VerifyJsonRequest construction * refactor things to pass around VerifyJsonRequests instead of 4-tuples | ||||
| | * | | | | | | | | | Fix `federation_custom_ca_list` configuration option. | Richard van der Hoff | 2019-06-05 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, setting this option would cause an exception at startup. | ||||
| | * | | | | | | | | | Neilj/add r0.5 to versions (#5360) | Neil Johnson | 2019-06-05 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update _matrix/client/versions to reference support for r0.5.0 | ||||
| | * | | | | | | | | | Fix background updates to handle redactions/rejections (#5352) | Erik Johnston | 2019-06-06 | 3 | -9/+57 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix background updates to handle redactions/rejections In background updates based on current state delta stream we need to handle that we may not have all the events (or at least that `get_events` may raise an exception). | ||||
| | * | | | | | | | | | Merge pull request #5317 from matrix-org/erikj/make_do_auth_non_essential | Erik Johnston | 2019-06-05 | 1 | -12/+46 |
| | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Fix handling of failures when calling /event_auth. | ||||
| | | * | | | | | | | | | Add logging when request fails and clarify we ignore errors. | Erik Johnston | 2019-06-05 | 1 | -4/+12 |
| | | | | | | | | | | | | |||||
| | | * | | | | | | | | | Fix handling of failures when calling /event_auth. | Erik Johnston | 2019-06-03 | 1 | -12/+38 |
| | | | |_|_|_|/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When processing an incoming event over federation, we may try and resolve any unexpected differences in auth events. This is a non-essential process and so should not stop the processing of the event if it fails (e.g. due to the remote disappearing or not implementing the necessary endpoints). Fixes #3330 | ||||
| | * | | | | | | | | | Neilj/mau tracking config explainer (#5284) | Neil Johnson | 2019-06-05 | 1 | -0/+16 |
| | | |/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve documentation of monthly active user blocking and mau_trial_days | ||||
| | * | | | | | | | | Add a test room version where we enforce key validity (#5348) | Richard van der Hoff | 2019-06-05 | 2 | -22/+37 |
| | | |/ / / / / / | | |/| | | | | | | |||||
| | * | | | | | | | Clean up debug logging (#5347) | Richard van der Hoff | 2019-06-05 | 3 | -8/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove some spurious stuff, clarify some other stuff | ||||
| | * | | | | | | | Rename VerifyKeyRequest.deferred field (#5343) | Richard van der Hoff | 2019-06-05 | 1 | -12/+12 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | it's a bit confusing | ||||
| | * | | | | | | | Call RetryLimiter correctly (#5340) | Richard van der Hoff | 2019-06-04 | 1 | -1/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes a regression introduced in #5335. | ||||
| | * | | | | | | | Fix failure to fetch batches of PDUs (#5342) | Richard van der Hoff | 2019-06-04 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FederationClient.get_pdu is called in a loop to fetch a batch of PDUs. A failure to fetch one should not result in a failure of the whole batch. Add the missing `continue`. | ||||
| | * | | | | | | | Rename get_events->get_events_from_store_or_dest (#5344) | Richard van der Hoff | 2019-06-04 | 1 | -20/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have too many things called get_event, and it's hard to figure out what we mean. Also remove some unused params from the signature, and add some logging. | ||||
| | * | | | | | | | Merge pull request #5341 from matrix-org/babolivier/email_config | Brendan Abolivier | 2019-06-04 | 1 | -42/+57 |
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Make account validity renewal emails work when email notifs are disabled | ||||
| | * \ \ \ \ \ \ \ | Merge pull request #5324 from matrix-org/erikj/ignore_null | Erik Johnston | 2019-06-04 | 1 | -0/+16 |
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | Ignore room state with null bytes in for room stats | ||||
| | | * | | | | | | | | Fix | Erik Johnston | 2019-06-03 | 1 | -1/+2 |
| | | | | | | | | | | | |||||
| | | * | | | | | | | | Ignore room state with null bytes in for room stats | Erik Johnston | 2019-06-03 | 1 | -0/+15 |
| | | | |_|_|_|/ / / | | | |/| | | | | | | |||||
| | * | | | | | | | | Avoid rapidly backing-off a server if we ignore the retry interval (#5335) | Richard van der Hoff | 2019-06-04 | 1 | -23/+37 |
| | |\ \ \ \ \ \ \ \ | |||||
| | | * | | | | | | | | Avoid rapidly backing-off a server if we ignore the retry interval | Richard van der Hoff | 2019-06-03 | 1 | -23/+37 |
| | | | | | | | | | | | |||||
| | * | | | | | | | | | Don't do long retries when calling the key notary server. (#5334) | Richard van der Hoff | 2019-06-04 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It takes at least 20 minutes to work through the long_retries schedule (11 attempts, each with a 60 second timeout, and 60 seconds between each request), so if the notary server isn't returning within the timeout, we'll just end up blocking whatever request is happening for 20 minutes. Ain't nobody got time for that. | ||||
| | * | | | | | | | | | Merge pull request #5333 from ↵ | Richard van der Hoff | 2019-06-04 | 2 | -33/+60 |
| | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | matrix-org/rav/server_keys/09_improve_notary_server Fixes for the key-notary server | ||||
| | | * | | | | | | | | | Notary server: make requests to origins in parallel | Richard van der Hoff | 2019-06-04 | 2 | -11/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... else we're guaranteed to time out. | ||||
| | | * | | | | | | | | | Don't bomb out on direct key fetches as soon as one fails | Richard van der Hoff | 2019-06-04 | 1 | -22/+36 |
| | | | | | | | | | | | | |||||
| | | * | | | | | | | | | Reduce timeout for outbound /key/v2/server requests. | Richard van der Hoff | 2019-06-03 | 1 | -0/+13 |
| | | |/ / / / / / / / | |||||
| | * | | | | | | | | | Improve docstrings on MatrixFederationClient. (#5332) | Richard van der Hoff | 2019-06-04 | 1 | -16/+55 |
| | | | | | | | | | | | |||||
| | * | | | | | | | | | Hawkowl/fix missing auth (#5328) | Amber Brown | 2019-06-04 | 1 | -0/+1 |
| | |/ / / / / / / / | |||||
| | * / / / / / / / | Enforce validity period on server_keys for fed requests. (#5321) | Richard van der Hoff | 2019-06-03 | 4 | -61/+119 |
| | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When handling incoming federation requests, make sure that we have an up-to-date copy of the signing key. We do not yet enforce the validity period for event signatures. | ||||
| | * | | | | | | | Merge pull request #5307 from ↵ | Richard van der Hoff | 2019-06-03 | 1 | -12/+2 |
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | matrix-org/rav/server_keys/07-fix-notary-cache-poison Stop overwriting server keys with other keys | ||||
| | | * | | | | | | | Stop overwriting server keys with other keys | Richard van der Hoff | 2019-05-31 | 1 | -12/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a bug where we would discard a key result which the origin server is no longer returning. Fixes #5305. | ||||
| | * | | | | | | | | Unify v1 and v2 REST client APIs (#5226) | Amber Brown | 2019-06-03 | 38 | -311/+292 |
| | | |_|/ / / / / | | |/| | | | | | | |||||
| | * | | | | | | | Merge pull request #5309 from matrix-org/rav/limit_displayname_length | Richard van der Hoff | 2019-06-01 | 2 | -0/+15 |
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Limit displaynames and avatar URLs | ||||
| | | * | | | | | | | Limit displaynames and avatar URLs | Richard van der Hoff | 2019-06-01 | 2 | -0/+15 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These end up in join events everywhere, so let's limit them. Fixes #5079 | ||||
| | * | | | | | | | | Merge pull request #5299 from matrix-org/rav/server_keys/05-rewrite-gsvk-again | Richard van der Hoff | 2019-05-31 | 1 | -48/+53 |
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | Rewrite get_server_verify_keys, again. | ||||
| | | * \ \ \ \ \ \ \ | Merge remote-tracking branch 'origin/develop' into ↵ | Richard van der Hoff | 2019-05-31 | 6 | -128/+141 |
| | | |\ \ \ \ \ \ \ \ | | | | | |/ / / / / / | | | | |/| | | | | | | | | | | | | | | | | | rav/server_keys/05-rewrite-gsvk-again | ||||
| | | * | | | | | | | | Rewrite get_server_verify_keys, again. | Richard van der Hoff | 2019-05-30 | 1 | -48/+53 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attempt to simplify the logic in get_server_verify_keys by splitting it into two methods. | ||||
| | * | | | | | | | | | Merge pull request #5276 from matrix-org/babolivier/account_validity_job_delta | Erik Johnston | 2019-05-31 | 2 | -3/+25 |
| | |\ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / | | |/| | | | | | | | | Allow configuring a range for the account validity startup job | ||||
| | * | | | | | | | | | Merge pull request #5300 from ↵ | Richard van der Hoff | 2019-05-31 | 1 | -25/+8 |
| | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | matrix-org/rav/server_keys/06-fix-serverkeys-handling Remove some pointless exception handling | ||||
| | | * | | | | | | | | | Remove some pointless exception handling | Richard van der Hoff | 2019-05-30 | 1 | -25/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The verify_request deferred already returns a suitable SynapseError, so I don't really know what we expect to achieve by doing more wrapping, other than log spam. Fixes #4278. | ||||
| | * | | | | | | | | | | Merge pull request #5296 from ↵ | Richard van der Hoff | 2019-05-31 | 1 | -17/+21 |
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | matrix-org/rav/server_keys/04-use-attrs-for_verify-request use attr.s for VerifyKeyRequest | ||||
| | | * | | | | | | | | | use attr.s for VerifyKeyRequest | Richard van der Hoff | 2019-05-30 | 1 | -17/+21 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | because namedtuple is awful | ||||
| | * | | | | | | | | | | Merge pull request #5293 from Kagamihime/messages-federation-format | Erik Johnston | 2019-05-31 | 1 | -0/+2 |
| | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix ignored filter field in `/messages` endpoint | ||||
| | | * | | | | | | | | | | Fix ignored filter field in `/messages` endpoint | Eisha Chen-yen-su | 2019-05-30 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug which were causing the "event_format" field to be ignored in the filter of requests to the `/messages` endpoint of the CS API. Signed-off-by: Eisha Chen-yen-su <chenyensu0@gmail.com> | ||||
| | * | | | | | | | | | | | Merge pull request #5294 from matrix-org/erikj/speed_up_room_stats | Erik Johnston | 2019-05-31 | 4 | -87/+111 |
| | |\ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / / / / | | |/| | | | | | | | | | | Speed up room stats background update | ||||
| | | * | | | | | | | | | | Add indices. Remove room_ids accidentally added | Erik Johnston | 2019-05-31 | 2 | -13/+56 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have to do this by re-inserting a background update and recreating tables, as the tables only get created during a background update and will later be deleted. We also make sure that we remove any entries that should have been removed but weren't due to a race that has been fixed in a previous commit. | ||||
| | | * | | | | | | | | | | Join against events to use its room_id index | Erik Johnston | 2019-05-30 | 1 | -1/+6 |
| | | | | | | | | | | | | | |||||
| | | * | | | | | | | | | | Move deletion from table inside txn | Erik Johnston | 2019-05-30 | 1 | -2/+5 |
| | | | | | | | | | | | | | |||||
| | | * | | | | | | | | | | Fetch membership counts all at once | Erik Johnston | 2019-05-30 | 2 | -38/+18 |
| | | | | | | | | | | | | | |||||
| | | * | | | | | | | | | | Get events all at once | Erik Johnston | 2019-05-30 | 1 | -33/+26 |
| | | | | | | | | | | | | | |||||
| | * | | | | | | | | | | | Merge branch 'master' into develop | Erik Johnston | 2019-05-30 | 1 | -1/+1 |
| | |\ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / | | |/| | | | | | | | | | | |||||
| | * | | | | | | | | | | | Add index to temp table | Erik Johnston | 2019-05-30 | 1 | -0/+1 |
| | | |/ / / / / / / / / | | |/| | | | | | | | | | |||||
| | * | | | | | | | | | | Merge pull request #5278 from matrix-org/erikj/cleanup_bad_extremities | Erik Johnston | 2019-05-30 | 5 | -181/+436 |
| | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Add DB bg update to cleanup extremities. | ||||
| | | * | | | | | | | | | | Update synapse/storage/events_bg_updates.py | Erik Johnston | 2019-05-30 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | ||||
| | | * | | | | | | | | | | Rename constant | Erik Johnston | 2019-05-30 | 1 | -3/+3 |
| | | | | | | | | | | | | | |||||
| | | * | | | | | | | | | | Move event background updates to a separate file | Erik Johnston | 2019-05-30 | 3 | -369/+405 |
| | | | | | | | | | | | | | |||||
| | | * | | | | | | | | | | Fixup comments and logging | Erik Johnston | 2019-05-30 | 2 | -9/+15 |
| | | | | | | | | | | | | | |||||
| | | * | | | | | | | | | | Log actual number of entries deleted | Erik Johnston | 2019-05-29 | 2 | -5/+13 |
| | | | | | | | | | | | | | |||||
| | | * | | | | | | | | | | Add DB bg update to cleanup extremities. | Erik Johnston | 2019-05-29 | 2 | -0/+205 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to #5269 we may have extremities in our DB that we shouldn't have, so lets add a cleanup task such to remove those. | ||||
| | * | | | | | | | | | | | Merge pull request #5256 from aaronraimist/logout-correct-error | Erik Johnston | 2019-05-30 | 1 | -18/+9 |
| | |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Show correct error when logging out and access token is missing | ||||
| | | * | | | | | | | | | | | Lint | Aaron Raimist | 2019-05-29 | 1 | -2/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Aaron Raimist <aaron@raim.ist> | ||||
| | | * | | | | | | | | | | | Get rid of try except | Aaron Raimist | 2019-05-27 | 1 | -16/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Aaron Raimist <aaron@raim.ist> | ||||
| | | * | | | | | | | | | | | Show correct error when logging out and access token is missing | Aaron Raimist | 2019-05-24 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Aaron Raimist <aaron@raim.ist> | ||||
| | * | | | | | | | | | | | | Remove spurious debug from MatrixFederationHttpClient.get_json (#5287) v0.99.5.1.dev0 | Richard van der Hoff | 2019-05-29 | 1 | -4/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is just unhelpful spam | ||||
| | * | | | | | | | | | | | | Improve logging for logcontext leaks. (#5288) | Richard van der Hoff | 2019-05-29 | 1 | -9/+13 |
| | | | | | | | | | | | | | | |||||
| | * | | | | | | | | | | | | Implement the SHHS complexity API (#5216) | Amber Brown | 2019-05-30 | 4 | -5/+89 |
| | | | | | | | | | | | | | | |||||
| | * | | | | | | | | | | | | Serve CAS login over r0 (#5286) | Amber Brown | 2019-05-30 | 1 | -2/+2 |
| | | | | | | | | | | | | | | |||||
| | * | | | | | | | | | | | | Fix error when downloading thumbnail with width/height param missing (#5258) | Aaron Raimist | 2019-05-29 | 1 | -2/+2 |
| | | |/ / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix error when downloading thumbnail with width/height param missing Fixes #2748 Signed-off-by: Aaron Raimist <aaron@raim.ist> | ||||
| | * | | | | | | | | | | | Correctly filter out extremities with soft failed prevs (#5274) | Erik Johnston | 2019-05-29 | 1 | -3/+79 |
| | | |_|/ / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we receive a soft failed event we, correctly, *do not* update the forward extremity table with the event. However, if we later receive an event that references the soft failed event we then need to remove the soft failed events prev events from the forward extremities table, otherwise we just build up forward extremities. Fixes #5269 | ||||
| | * | | | | | | | | | | Fix dropped logcontexts during high outbound traffic. (#5277) | Richard van der Hoff | 2019-05-29 | 1 | -7/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #5271. | ||||
| | * | | | | | | | | | | Fix docs on resetting the user directory (#5036) | Aaron Raimist | 2019-05-28 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Aaron Raimist <aaron@raim.ist> | ||||
| | * | | | | | | | | | | Merge pull request #5251 from matrix-org/rav/server_keys/01-check_sig | Richard van der Hoff | 2019-05-28 | 1 | -41/+92 |
| | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that server_keys fetched via a notary server are correctly signed. | ||||
| | | * | | | | | | | | | | Improve error handling/logging for perspectives-key fetching. | Richard van der Hoff | 2019-05-24 | 1 | -28/+77 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In particular, don't give up on the first failure. | ||||
| | | * | | | | | | | | | | Require sig from origin server on perspectives responses | Richard van der Hoff | 2019-05-23 | 1 | -13/+15 |
| | | | | | | | | | | | | | |||||
| | * | | | | | | | | | | | Fix "db txn 'update_presence' from sentinel context" log messages (#5275) | Richard van der Hoff | 2019-05-28 | 1 | -52/+47 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #4414. | ||||
| | * | | | | | | | | | | | Merge pull request #5268 from matrix-org/babolivier/account_validity_fix_schema | Brendan Abolivier | 2019-05-28 | 1 | -0/+3 |
| | |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix schema update for account validity | ||||
| | * \ \ \ \ \ \ \ \ \ \ \ | Merge pull request #5260 from matrix-org/travis/fix-room-bg-task | Erik Johnston | 2019-05-25 | 1 | -1/+1 |
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix logging for room stats background update | ||||
| | | * | | | | | | | | | | | | Fix logging for room stats background update | Travis Ralston | 2019-05-25 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | |||||
| | * | | | | | | | | | | | | | Merge pull request #5257 from aaronraimist/fix-error-code-publicrooms | Erik Johnston | 2019-05-25 | 1 | -1/+1 |
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix error code for invalid parameter | ||||
| | | * | | | | | | | | | | | | | Fix error code for invalid parameter | Aaron Raimist | 2019-05-24 | 1 | -1/+1 |
| | | | |_|_|/ / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Aaron Raimist <aaron@raim.ist> | ||||
| | * / | | | | | | | | | | | | Simplification to Keyring.wait_for_previous_lookups. (#5250) | Richard van der Hoff | 2019-05-24 | 1 | -7/+4 |
| | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The list of server names was redundant, since it was equivalent to the keys on the server_to_deferred map. This reduces the number of large lists being passed around, and has the benefit of deduplicating the entries in `wait_on`. | ||||
| | * | | | | | | | | | | | | Fix appservice timestamp massaging (#5233) | Tulir Asokan | 2019-05-24 | 1 | -1/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Tulir Asokan <tulir@maunium.net> | ||||
| | * | | | | | | | | | | | | Add missing blank line in config (#5249) | Richard van der Hoff | 2019-05-24 | 1 | -0/+1 |
| | | | | | | | | | | | | | |