Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #6301 from matrix-org/babolivier/msc2326 | Andrew Morgan | 2020-03-16 | 3 | -5/+254 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f496d2587': Incorporate review Factor out an _AsyncEventContextImpl (#6298) Update synapse/storage/data_stores/main/schema/delta/56/event_labels.sql Add more data to the event_labels table and fix the indexes Add unstable feature flag Lint Incorporate review Lint Changelog Add integration tests for /messages Add more integration testing Add integration tests for sync Add unit tests Add index on label Implement filtering Store labels for new events Add database table for keeping track of labels on events | ||||
| * | Incorporate review | Brendan Abolivier | 2019-11-01 | 2 | -8/+8 |
| | | |||||
| * | Incorporate review | Brendan Abolivier | 2019-11-01 | 2 | -10/+10 |
| | | |||||
| * | Lint | Brendan Abolivier | 2019-10-30 | 2 | -31/+30 |
| | | |||||
| * | Add integration tests for /messages | Brendan Abolivier | 2019-10-30 | 1 | -1/+101 |
| | | |||||
| * | Add more integration testing | Brendan Abolivier | 2019-10-30 | 1 | -6/+39 |
| | | |||||
| * | Add integration tests for sync | Brendan Abolivier | 2019-10-30 | 2 | -5/+122 |
| | | |||||
* | | Merge pull request #6294 from matrix-org/erikj/add_state_storage | Andrew Morgan | 2020-03-16 | 1 | -1/+2 |
|\| | |||||
* | | Add domain validation when creating room with list of invitees (#6121) | Andrew Morgan | 2020-02-26 | 1 | -0/+9 |
|\| | |||||
| * | Add domain validation when creating room with list of invitees (#6121) | werner291 | 2019-10-10 | 1 | -0/+9 |
| | | |||||
* | | send 404 as http-status when filter-id is unknown to the server (#2380) | Andrew Morgan | 2020-02-26 | 1 | -1/+1 |
|\| | |||||
| * | send 404 as http-status when filter-id is unknown to the server (#2380) | krombel | 2019-10-10 | 1 | -1/+1 |
| | | | | | | | | | | | | | | This fixed the weirdness of 400 vs 404 as http status code in the case the filter id is not known by the server. As e.g. matrix-js-sdk expects 404 to catch this situation this leads to unwanted behaviour. | ||||
* | | Merge pull request #6125 from matrix-org/babolivier/deactivation-invite | Andrew Morgan | 2020-02-26 | 1 | -17/+3 |
|\| | |||||
| * | ok | Brendan Abolivier | 2019-09-27 | 1 | -1/+3 |
| | | |||||
| * | Lint | Brendan Abolivier | 2019-09-27 | 1 | -7/+1 |
| | | |||||
| * | Add test to validate the change | Brendan Abolivier | 2019-09-27 | 1 | -13/+57 |
| | | |||||
* | | Move lookup-related functions from RoomMemberHandler to IdentityHandler (#5978) | Andrew Morgan | 2020-02-26 | 2 | -2/+9 |
|\| | |||||
* | | Stop advertising unsupported flows for registration (#6107) | Andrew Morgan | 2020-02-25 | 1 | -12/+17 |
|\| | |||||
| * | Stop advertising unsupported flows for registration (#6107) | Richard van der Hoff | 2019-09-25 | 1 | -12/+17 |
| | | | | | | | | | | | | | | If email or msisdn verification aren't supported, let's stop advertising them for registration. Fixes #6100. | ||||
* | | Refactor the user-interactive auth handling (#6105) | Andrew Morgan | 2020-02-25 | 1 | -10/+16 |
|\| | |||||
| * | Refactor the user-interactive auth handling (#6105) | Richard van der Hoff | 2019-09-25 | 1 | -10/+16 |
| | | | | | | | | | | | | | | Pull the checkers out to their own classes, rather than having them lost in a massive 1000-line class which does everything. This is also preparation for some more intelligent advertising of flows, as per #6100 | ||||
* | | Refactor code for calculating registration flows (#6106) | Andrew Morgan | 2020-02-25 | 1 | -12/+67 |
|\| | |||||
| * | Refactor code for calculating registration flows (#6106) | Richard van der Hoff | 2019-09-25 | 1 | -12/+67 |
| | | | | | | | | | | | | | | | | | | because, frankly, it looked like it was written by an axe-murderer. This should be a non-functional change, except that where `m.login.dummy` was previously advertised *before* `m.login.terms`, it will now be advertised afterwards. AFAICT that should have no effect, and will be more consistent with the flows that involve passing a 3pid. | ||||
* | | Use the federation blacklist for requests to untrusted Identity Servers (#6000) | Andrew Morgan | 2020-02-25 | 2 | -1/+14 |
|\| | |||||
* | | Merge pull request #6015 from matrix-org/erikj/ratelimit_admin_redaction | Andrew Morgan | 2020-02-25 | 1 | -0/+25 |
|\| | |||||
| * | Fix comments | Erik Johnston | 2019-09-11 | 1 | -2/+2 |
| | | | | | | Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | ||||
| * | Add test for admin redaction ratelimiting. | Erik Johnston | 2019-09-11 | 1 | -0/+25 |
| | | |||||
| * | Fix and refactor room and user stats (#5971) | Erik Johnston | 2019-09-04 | 1 | -2/+6 |
| | | | | | | Previously the stats were not being correctly populated. | ||||
* | | Remove extraneous unittest.DEBUG's | Andrew Morgan | 2020-02-25 | 1 | -1/+0 |
| | | |||||
* | | Remove unnecessary parentheses around return statements (#5931) | Andrew Morgan | 2020-02-24 | 1 | -1/+1 |
|\| | |||||
| * | Remove unnecessary parentheses around return statements (#5931) | Andrew Morgan | 2019-08-30 | 1 | -1/+1 |
| | | | | | | | | | | Python will return a tuple whether there are parentheses around the returned values or not. I'm just sick of my editor complaining about this all over the place :) | ||||
* | | Revert "Use the v2 lookup API for 3PID invites (#5897)" | Andrew Morgan | 2020-02-24 | 3 | -21/+4 |
| | | | | | | | | | | This reverts commit 978f263e7c5d1eb440efaf07abc5009408ade25d, reversing changes made to 4f6ee99818d9c338944a10585d0aea4c7349d456. | ||||
* | | Use the v2 lookup API for 3PID invites (#5897) | Andrew Morgan | 2020-02-24 | 3 | -4/+21 |
|\| | |||||
* | | Merge pull request #5877 from ↵ | Andrew Morgan | 2020-02-21 | 1 | -0/+1 |
|\| | | | | | | | Awesome-Technologies/remove_shared_secret_registration | ||||
| * | Add tests | Brendan Abolivier | 2019-08-01 | 1 | -0/+37 |
| | | |||||
* | | Replace returnValue with return (#5736) | Andrew Morgan | 2020-02-19 | 1 | -1/+1 |
|\| | |||||
| * | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -1/+1 |
| | | |||||
* | | Remove the ability to query relations when the original event was redacted. ↵ | Andrew Morgan | 2020-02-19 | 1 | -3/+113 |
|\| | | | | | | | (#5629) | ||||
| * | Remove the ability to query relations when the original event was redacted. ↵ | Andrew Morgan | 2019-07-18 | 1 | -3/+113 |
| | | | | | | | | | | | | | | (#5629) Fixes #5594 Forbid viewing relations on an event once it has been redacted. | ||||
* | | Ignore redactions of m.room.create events (#5701) | Andrew Morgan | 2020-02-19 | 1 | -0/+20 |
|\| | |||||
| * | Ignore redactions of m.room.create events (#5701) | Richard van der Hoff | 2019-07-17 | 1 | -0/+20 |
| | | |||||
* | | More refactoring in `get_events_as_list` (#5707) | Andrew Morgan | 2020-02-19 | 1 | -0/+159 |
|\| | |||||
| * | More refactoring in `get_events_as_list` (#5707) | Richard van der Hoff | 2019-07-17 | 1 | -0/+159 |
| | | | | | | | | | | | | | | | | We can now use `_get_events_from_cache_or_db` rather than going right back to the database, which means that (a) we can benefit from caching, and (b) it opens the way forward to more extensive checks on the original event. We now always require the original event to exist before we will serve up a redaction. | ||||
* | | Implement access token expiry (#5660) | Andrew Morgan | 2020-02-17 | 1 | -0/+108 |
|\| | |||||
| * | Implement access token expiry (#5660) | Richard van der Hoff | 2019-07-12 | 1 | -0/+108 |
| | | | | | | | | Record how long an access token is valid for, and raise a soft-logout once it expires. | ||||
* | | Merge pull request #5638 from matrix-org/babolivier/invite-json | Andrew Morgan | 2020-02-17 | 1 | -4/+5 |
|\| | |||||
* | | Include the original event in /relations (#5626) | Andrew Morgan | 2020-02-17 | 1 | -0/+5 |
|\| | |||||
| * | Include the original event in /relations (#5626) | Andrew Morgan | 2019-07-09 | 1 | -0/+5 |
| | | | | | | When asking for the relations of an event, include the original event in the response. This will mostly be used for efficiently showing edit history, but could be useful in other circumstances. | ||||
| * | Lint | Brendan Abolivier | 2019-07-08 | 1 | -2/+2 |
| | | |||||
| * | Add test case | Brendan Abolivier | 2019-07-08 | 1 | -0/+47 |
| | | |||||
* | | Add origin_server_ts and sender fields to m.replace (#5613) | Andrew Morgan | 2020-02-17 | 1 | -6/+18 |
|\| | |||||
| * | Add origin_server_ts and sender fields to m.replace (#5613) | Andrew Morgan | 2019-07-05 | 1 | -6/+18 |
| | | | | | | | | | | Riot team would like some extra fields as part of m.replace, so here you go. Fixes: #5598 | ||||
* | | Move logging utilities out of the side drawer of util/ and into logging/ (#5606) | Andrew Morgan | 2020-02-14 | 1 | -1/+1 |
|\| | |||||
| * | Move logging utilities out of the side drawer of util/ and into logging/ (#5606) | Amber Brown | 2019-07-04 | 1 | -1/+1 |
| | | |||||
| * | Split public rooms directory auth config in two | Brendan Abolivier | 2019-06-24 | 1 | -1/+1 |
| | | |||||
* | | Run Black. (#5482) | Andrew Morgan | 2020-02-13 | 2 | -6/+6 |
|\| | |||||
| * | Run Black. (#5482) | Amber Brown | 2019-06-20 | 9 | -90/+73 |
| | | |||||
| * | Merge pull request #5440 from matrix-org/babolivier/third_party_event_rules | Brendan Abolivier | 2019-06-14 | 1 | -0/+79 |
| |\ | | | | | | | Allow server admins to define implementations of extra rules for allowing or denying incoming events | ||||
| * | | Don't send renewal emails to deactivated users | Brendan Abolivier | 2019-06-14 | 1 | -25/+42 |
| | | | |||||
| * | | Track deactivated accounts in the database (#5378) | Brendan Abolivier | 2019-06-14 | 1 | -0/+45 |
| | | | |||||
| * | | Merge branch 'master' of github.com:matrix-org/synapse into develop | Erik Johnston | 2019-06-11 | 3 | -12/+241 |
| |\ \ | |||||
| * \ \ | Merge pull request #5363 from ↵ | Brendan Abolivier | 2019-06-10 | 1 | -0/+35 |
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | matrix-org/babolivier/account_validity_send_mail_auth Don't check whether the user's account is expired on /send_mail requests | ||||
* | | | | | Dinsic Blacking with black==18.6b2 | Andrew Morgan | 2020-02-11 | 11 | -379/+237 |
| | | | | | |||||
* | | | | | Add limit_profile_requests_to_known_users option (#18) | Andrew Morgan | 2019-12-05 | 1 | -0/+1 |
| | | | | | |||||
* | | | | | Hide expired users from user directory, optionally show on renewal (#13) | Andrew Morgan | 2019-11-14 | 1 | -0/+135 |
| | | | | | |||||
* | | | | | Create configurable ratelimiter for 3pid invites (#11) | Andrew Morgan | 2019-11-12 | 1 | -0/+9 |
| | | | | | |||||
* | | | | | Don't apply retention policy based filtering on state events | Brendan Abolivier | 2019-11-06 | 1 | -0/+10 |
| | | | | | | | | | | | | | | | | | | | | As per MSC1763, 'Retention is only considered for non-state events.', so don't filter out state events based on the room's retention policy. | ||||
* | | | | | Fixup tests | Brendan Abolivier | 2019-10-04 | 1 | -3/+7 |
| | | | | | |||||
* | | | | | Fix git messing up | Brendan Abolivier | 2019-09-27 | 1 | -2/+3 |
| | | | | | |||||
* | | | | | ok | Brendan Abolivier | 2019-09-27 | 1 | -1/+3 |
| | | | | | |||||
* | | | | | Lint | Brendan Abolivier | 2019-09-27 | 1 | -0/+51 |
| | | | | | |||||
* | | | | | Merge pull request #2 from matrix-org/babolivier/dinsic-3pid-invite | Brendan Abolivier | 2019-09-10 | 1 | -0/+64 |
|\ \ \ \ \ | | | | | | | | | | | | | Don't treat 3PID revocation as a new 3PID invite | ||||
| * | | | | | Lint | Brendan Abolivier | 2019-09-06 | 1 | -1/+0 |
| | | | | | | |||||
| * | | | | | Fix bogus conflict resolution | Brendan Abolivier | 2019-09-06 | 1 | -0/+1 |
| | | | | | | |||||
| * | | | | | Merge branch 'dinsic' into babolivier/dinsic-3pid-invite | Brendan Abolivier | 2019-09-06 | 1 | -8/+112 |
| |\ \ \ \ \ | |||||
| * | | | | | | Don't process revoked/redacted events as part of the room's membership info | Brendan Abolivier | 2019-09-06 | 1 | -0/+10 |
| | | | | | | | |||||
| * | | | | | | Don't treat 3PID revokation as a new 3PID invite | Brendan Abolivier | 2019-09-06 | 1 | -0/+55 |
| | | | | | | | |||||
* | | | | | | | Revert "Merge pull request #5932 from ↵ | Brendan Abolivier | 2019-09-09 | 1 | -3/+2 |
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | matrix-org/babolivier/account_validity_template_encode" This reverts commit 84e695f506faf54982b9e19dceb9c02acffad95f, reversing changes made to 99eec6d2d5cc76e645c3fd7ca6cda85b2bab6feb. | ||||
* | | | | | | Add tests | Brendan Abolivier | 2019-09-05 | 1 | -0/+105 |
|/ / / / / | |||||
* | | | | | Fix encoding for account validity HTML files on Python 2 | Brendan Abolivier | 2019-08-29 | 1 | -2/+3 |
| | | | | | |||||
* | | | | | Merge branch 'dinsic' into babolivier/dinsic-message-retention | Brendan Abolivier | 2019-08-28 | 2 | -2/+141 |
|\ \ \ \ \ | |||||
| * \ \ \ \ | Merge pull request #5812 from matrix-org/babolivier/account-validity-messages dinsic_2019-08-12 | Michael Kaye | 2019-08-12 | 1 | -0/+37 |
| |\ \ \ \ \ | | | | | | | | | | | | | | | Account validity: allow defining HTML templates to serve the user on account renewal attempt | ||||
| | * | | | | | Add tests | Brendan Abolivier | 2019-08-01 | 1 | -0/+37 |
| | | | | | | | |||||
| * | | | | | | Fix status code for forbidden events | Brendan Abolivier | 2019-07-25 | 1 | -6/+6 |
| | | | | | | | |||||
| * | | | | | | Turns out the default preset is public_chat | Brendan Abolivier | 2019-07-24 | 1 | -5/+3 |
| | | | | | | | |||||
| * | | | | | | Add test case | Brendan Abolivier | 2019-07-24 | 1 | -2/+106 |
| |/ / / / / | |||||
* / / / / / | Implement per-room message retention policies | Brendan Abolivier | 2019-08-28 | 1 | -0/+319 |
|/ / / / / | |||||
* | | | | | Merge pull request #5646 from matrix-org/babolivier/profile-allow-self dinsic_2019-07-09 | Brendan Abolivier | 2019-07-09 | 1 | -0/+47 |
|\ \ \ \ \ | | | | | | | | | | | | | Port #5644 to dinsic | ||||
| * | | | | | Lint | Brendan Abolivier | 2019-07-09 | 1 | -2/+2 |
| | | | | | | |||||
| * | | | | | Add test case | Brendan Abolivier | 2019-07-09 | 1 | -0/+47 |
| | | | | | | |||||
* | | | | | | Add tests | Brendan Abolivier | 2019-07-03 | 1 | -4/+52 |
|/ / / / / | |||||
* | | | | | Split public rooms directory auth config in two | Brendan Abolivier | 2019-06-24 | 1 | -1/+1 |
| | | | | | |||||
* | | | | | Add tests for constraints on changing the rule for a room | Brendan Abolivier | 2019-06-18 | 1 | -0/+60 |
| | | | | | |||||
* | | | | | Add tests for 3PID invites | Brendan Abolivier | 2019-06-18 | 1 | -12/+146 |
| | | | | | |||||
* | | | | | Remove unused import | Brendan Abolivier | 2019-06-18 | 1 | -1/+0 |
| | | | | | |||||
* | | | | | Add tests for inviting with access rules | Brendan Abolivier | 2019-06-18 | 1 | -2/+102 |
| | | | | | |||||
* | | | | | Remove unused imports | Brendan Abolivier | 2019-06-18 | 1 | -3/+0 |
| | | | | | |||||
* | | | | | Lint | Brendan Abolivier | 2019-06-18 | 1 | -1/+1 |
| | | | | | |||||
* | | | | | Add tests for room creation hook | Brendan Abolivier | 2019-06-18 | 1 | -0/+136 |
| | | | | | |||||
* | | | | | Merge branch 'babolivier/third_party_event_rules' into dinsic | Brendan Abolivier | 2019-06-14 | 1 | -0/+79 |
|\ \ \ \ \ | | |_|_|/ | |/| | | | |||||
| * | | | | Add plugin APIs for implementations of custom event rules. | Brendan Abolivier | 2019-06-14 | 1 | -0/+79 |
| |/ / / | |||||
* | | | | Fix test | Brendan Abolivier | 2019-06-14 | 1 | -1/+2 |
| | | | | |||||
* | | | | Don't send renewal emails to deactivated users | Brendan Abolivier | 2019-06-14 | 1 | -25/+42 |
| | | | | |||||
* | | | | Track deactivated accounts in the database (#5378) | Brendan Abolivier | 2019-06-14 | 1 | -0/+45 |
| | | | | |||||
* | | | | Merge branch 'dinsic' into babolivier/userdir_hide_users | Brendan Abolivier | 2019-06-12 | 8 | -18/+896 |
|\ \ \ \ | |||||
| * \ \ \ | Merge branch 'master' into dinsic | Brendan Abolivier | 2019-06-12 | 6 | -17/+324 |
| |\ \ \ \ | | | |_|/ | | |/| | | |||||
| | * | | | Bump bleach version so that tests can run on old deps. | Erik Johnston | 2019-06-11 | 2 | -12/+0 |
| | | | | | |||||
| | * | | | Change password reset links to /_matrix. | Erik Johnston | 2019-06-11 | 1 | -0/+241 |
| | |/ / | |||||
| | * | | Unify v1 and v2 REST client APIs (#5226) | Amber Brown | 2019-06-03 | 1 | -1/+1 |
| | | | | |||||
| | * | | Merge pull request #5309 from matrix-org/rav/limit_displayname_length | Richard van der Hoff | 2019-06-01 | 1 | -2/+60 |
| | |\ \ | | | | | | | | | | | Limit displaynames and avatar URLs | ||||
| | | * | | add some tests | Richard van der Hoff | 2019-06-01 | 1 | -2/+60 |
| | | | | | |||||
| | * | | | Merge pull request #5276 from matrix-org/babolivier/account_validity_job_delta | Erik Johnston | 2019-05-31 | 1 | -5/+10 |
| | |\ \ \ | | | | | | | | | | | | | Allow configuring a range for the account validity startup job | ||||
| | * | | | | Add config option for setting homeserver's default room version (#5223) | Andrew Morgan | 2019-05-23 | 1 | -2/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaces DEFAULT_ROOM_VERSION constant with a method that first checks the config, then returns a hardcoded value if the option is not present. That hardcoded value is now located in the server.py config file. | ||||
| | * | | | | Room Statistics (#4338) | Amber Brown | 2019-05-21 | 1 | -0/+17 |
| | | |/ / | | |/| | | |||||
| * | | | | Merge branch 'master' into dinsic | Brendan Abolivier | 2019-06-11 | 2 | -1/+572 |
| |\| | | | |||||
| | * | | | Merge pull request #5212 from matrix-org/erikj/deny_multiple_reactions | Erik Johnston | 2019-05-21 | 1 | -1/+26 |
| | |\ \ \ | | | | | | | | | | | | | Block attempts to annotate the same event twice | ||||
| | | * | | | Block attempts to annotate the same event twice | Erik Johnston | 2019-05-20 | 1 | -1/+26 |
| | | | | | | |||||
| | * | | | | Merge pull request #5204 from ↵ | Brendan Abolivier | 2019-05-21 | 1 | -0/+55 |
| | |\ \ \ \ | | | |/ / / | | |/| | | | | | | | | | | | | | | | matrix-org/babolivier/account_validity_expiration_date Add startup background job for account validity | ||||
| | * | | | | Rename relation types to match MSC | Erik Johnston | 2019-05-20 | 1 | -11/+11 |
| | | | | | | |||||
| | * | | | | Merge pull request #5209 from matrix-org/erikj/reactions_base | Erik Johnston | 2019-05-20 | 1 | -0/+539 |
| | |\ \ \ \ | | | | | | | | | | | | | | | Land basic reaction and edit support. | ||||
| | | * | | | | Fixup comments | Erik Johnston | 2019-05-20 | 1 | -2/+2 |
| | | | | | | | |||||
| | | * | | | | Correctly update aggregation counts after redaction | Erik Johnston | 2019-05-20 | 1 | -0/+37 |
| | | | | | | | |||||
| | | * | | | | Make tests use different user for each reaction it sends | Erik Johnston | 2019-05-17 | 1 | -12/+68 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | As users aren't allowed to react with the same emoji more than once. | ||||
| | | * | | | | Add basic editing support | Erik Johnston | 2019-05-16 | 1 | -9/+82 |
| | | | | | | | |||||
| | | * | | | | Check that event is visible in new APIs | Erik Johnston | 2019-05-16 | 1 | -1/+1 |
| | | | | | | | |||||
| | | * | | | | Add aggregations API | Erik Johnston | 2019-05-16 | 1 | -3/+248 |
| | | | | | | | |||||
| | | * | | | | Add simple pagination API | Erik Johnston | 2019-05-15 | 1 | -0/+30 |
| | | | | | | | |||||
| | | * | | | | Add simple send_relation API and track in DB | Erik Johnston | 2019-05-15 | 1 | -0/+98 |
| | | | | | | | |||||
| | * | | | | | Merge pull request #5196 from matrix-org/babolivier/per_room_profiles | Brendan Abolivier | 2019-05-17 | 1 | -1/+69 |
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | Add an option to disable per-room profiles | ||||
| | * \ \ \ \ \ | Merge pull request #5174 from matrix-org/dbkr/add_dummy_flow_to_recaptcha_only | David Baker | 2019-05-16 | 1 | -1/+8 |
| | |\ \ \ \ \ \ | | | |_|/ / / / | | |/| | | | | | Re-order registration stages to do msisdn & email auth last | ||||
| | | * | | | | | And now I realise why the test is failing... | David Baker | 2019-05-13 | 1 | -1/+8 |
| | | | | | | | | |||||
* | | | | | | | | Lint | Brendan Abolivier | 2019-06-10 | 1 | -2/+2 |
| | | | | | | | | |||||
* | | | | | | | | Lint | Brendan Abolivier | 2019-06-10 | 1 | -1/+1 |
| | | | | | | | | |||||
* | | | | | | | | Add test case | Brendan Abolivier | 2019-06-10 | 1 | -0/+51 |
|/ / / / / / / | |||||
* | | | | | | | Merge branch 'babolivier/account_validity_send_mail_auth' into dinsic dinsic_2019-06-10 | Brendan Abolivier | 2019-06-10 | 1 | -0/+35 |
|\ \ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | | | |||||
| * | | | | | | Don't check whether the user's account is expired on /send_mail requests | Brendan Abolivier | 2019-06-05 | 1 | -0/+35 |
| | |_|_|/ / | |/| | | | | |||||
* | | | | | | Merge branch 'babolivier/account_validity_job_delta' of ↵ dinsic_2019-05-31 | Erik Johnston | 2019-05-31 | 1 | -5/+10 |
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | | github.com:matrix-org/synapse into dinsic | ||||
| * | | | | | Move delta from +10% to -10% | Brendan Abolivier | 2019-05-31 | 1 | -2/+2 |
| | | | | | | |||||
| * | | | | | Make max_delta equal to period * 10% | Brendan Abolivier | 2019-05-31 | 1 | -17/+1 |
| | | | | | | |||||
| * | | | | | Typo | Brendan Abolivier | 2019-05-28 | 1 | -1/+1 |
| | | | | | | |||||
| * | | | | | Allow configuring a range for the account validity startup job | Brendan Abolivier | 2019-05-28 | 1 | -0/+21 |
| |/ / / / | | | | | | | | | | | | | | | | | | | | | When enabling the account validity feature, Synapse will look at startup for registered account without an expiration date, and will set one equals to 'now + validity_period' for them. On large servers, it can mean that a large number of users will have the same expiration date, which means that they will all be sent a renewal email at the same time, which isn't ideal. In order to mitigate this, this PR allows server admins to define a 'max_delta' so that the expiration date is a random value in the [now + validity_period ; now + validity_period + max_delta] range. This allows renewal emails to be progressively sent over a configured period instead of being sent all in one big batch. | ||||
* | | | | | Merge pull request #5214 from matrix-org/babolivier/password-policy | Brendan Abolivier | 2019-05-22 | 1 | -0/+181 |
|\ \ \ \ \ | | | | | | | | | | | | | Allow server admins to define and enforce a password policy (MSC2000) | ||||
| * | | | | | Test whole dict instead of individual fields | Brendan Abolivier | 2019-05-22 | 1 | -5/+7 |
| | | | | | | |||||
| * | | | | | Also test the /password client route | Brendan Abolivier | 2019-05-21 | 1 | -1/+34 |
| | | | | | | |||||
| * | | | | | First implementation of MSC2000 | Brendan Abolivier | 2019-05-20 | 1 | -0/+146 |
| | |_|_|/ | |/| | | | |||||
* | | | | | Merge branch 'babolivier/account_validity_expiration_date' into dinsic | Brendan Abolivier | 2019-05-21 | 1 | -0/+55 |
|\ \ \ \ \ | | |/ / / | |/| | | | |||||
| * | | | | Add startup background job for account validity | Brendan Abolivier | 2019-05-17 | 1 | -0/+55 |
| |/ / / | | | | | | | | | | | | | If account validity is enabled in the server's configuration, this job will run at startup as a background job and will stick an expiration date to any registered account missing one. | ||||
* | | | | Merge branch 'babolivier/per_room_profiles' into dinsic dinsic_2019-05-17 | Brendan Abolivier | 2019-05-17 | 8 | -39/+120 |
|\| | | | |||||
| * | | | Lint | Brendan Abolivier | 2019-05-16 | 1 | -1/+0 |
| | | | | |||||
| * | | | Lint | Brendan Abolivier | 2019-05-16 | 1 | -1/+3 |
| | | | | |||||
| * | | | Forgot copyright | Brendan Abolivier | 2019-05-16 | 1 | -0/+1 |
| | | | | |||||
| * | | | Add test case | Brendan Abolivier | 2019-05-16 | 1 | -1/+67 |
| |/ / | |||||
| * / | Migrate all tests to use the dict-based config format instead of hanging ↵ | Amber Brown | 2019-05-13 | 8 | -34/+48 |
| |/ | | | | | | | items off HomeserverConfig (#5171) | ||||
* | | Merge branch 'release-v0.99.4' into dinsic dinsic_2019-05-14 | Brendan Abolivier | 2019-05-14 | 12 | -686/+484 |
|\| | |||||
| * | Run Black on the tests again (#5170) | Amber Brown | 2019-05-10 | 5 | -134/+72 |
| | | |||||
| * | Fix bogus imports in tests (#5154) | Brendan Abolivier | 2019-05-08 | 3 | -5/+6 |
| | | |||||
| * | add options to require an access_token to GET /profile and /publicRooms on ↵ | Matthew Hodgson | 2019-05-08 | 2 | -1/+123 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CS API (#5083) This commit adds two config options: * `restrict_public_rooms_to_local_users` Requires auth to fetch the public rooms directory through the CS API and disables fetching it through the federation API. * `require_auth_for_profile_requests` When set to `true`, requires that requests to `/profile` over the CS API are authenticated, and only returns the user's profile if the requester shares a room with the profile's owner, as per MSC1301. MSC1301 also specifies a behaviour for federation (only returning the profile if the server asking for it shares a room with the profile's owner), but that's currently really non-trivial to do in a not too expensive way. Next step is writing down a MSC that allows a HS to specify which user sent the profile query. In this implementation, Synapse won't send a profile query over federation if it doesn't believe it already shares a room with the profile's owner, though. Groups have been intentionally omitted from this commit. | ||||
| * | Do checks on aliases for incoming m.room.aliases events (#5128) | Brendan Abolivier | 2019-05-08 | 1 | -0/+169 |
| | | | | | | | | | | Follow-up to #5124 Also added a bunch of checks to make sure everything (both the stuff added on #5124 and this PR) works as intended. | ||||
| * | Add admin api for sending server_notices (#5121) | Richard van der Hoff | 2019-05-02 | 9 | -10/+10 |
| | | |||||
| * | Move admin api impl to its own package | Richard van der Hoff | 2019-05-01 | 10 | -636/+27 |
| | | | | | | | | It doesn't really belong under rest/client/v1 any more. | ||||
| * | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2019-04-17 | 3 | -2/+191 |
| |\ | | | | | | | | | | babolivier/account_expiration | ||||
| | * | Merge pull request #5047 from matrix-org/babolivier/account_expiration | Brendan Abolivier | 2019-04-17 | 1 | -1/+99 |
| | |\ | | | | | | | | | Send out emails with links to extend an account's validity period | ||||
| * | | | Add management endpoints for account validity | Brendan Abolivier | 2019-04-17 | 1 | -8/+87 |
| | |/ | |/| | |||||
| * | | Send out emails with links to extend an account's validity period | Brendan Abolivier | 2019-04-17 | 1 | -1/+99 |
| | | | |||||
* | | | Fix failing test | Brendan Abolivier | 2019-05-09 | 1 | -2/+2 |
| | | | |||||
* | | | Incorporate review | Brendan Abolivier | 2019-05-09 | 1 | -0/+2 |
| | | | |||||
* | | | Fix test | Brendan Abolivier | 2019-05-09 | 1 | -0/+7 |
| | | | |||||
* | | | Incorporate review | Brendan Abolivier | 2019-05-07 | 1 | -3/+3 |
| | | | |||||
* | | | Bunch of tests | Brendan Abolivier | 2019-04-30 | 1 | -2/+124 |
| | | | |||||
* | | | Tests | Brendan Abolivier | 2019-04-30 | 1 | -5/+36 |
| | | | |||||
* | | | [DINSIC] Add ability to proxy identity lookups (#5048) | Andrew Morgan | 2019-04-16 | 1 | -2/+0 |
| |/ |/| | |||||
* | | Merge pull request #5027 from matrix-org/babolivier/account_expiration | Brendan Abolivier | 2019-04-09 | 1 | -2/+49 |
|\| | | | | | Add time-based account expiration | ||||
| * | Add account expiration feature | Brendan Abolivier | 2019-04-09 | 1 | -2/+49 |
| | | |||||
* | | Add config option to block users from looking up 3PIDs (#5010) | Brendan Abolivier | 2019-04-04 | 1 | -0/+65 |
| | | |||||
* | | Add unit test for deleting groups | Erik Johnston | 2019-04-03 | 1 | -0/+124 |
| | | |||||
* | | Collect room-version variations into one place (#4969) | Richard van der Hoff | 2019-04-01 | 1 | -2/+2 |
|/ | | | | Collect all the things that make room-versions different to one another into one place, so that it's easier to define new room versions. | ||||
* | Some more porting to HomeserverTestCase and remove old RESTHelper (#4913) | Amber Brown | 2019-03-22 | 1 | -125/+0 |
| | |||||
* | Merge pull request #4908 from matrix-org/erikj/block_peek_on_blocked_rooms | Erik Johnston | 2019-03-21 | 1 | -1/+65 |
|\ | | | | | Deny peeking into rooms that have been blocked | ||||
| * | isort | Erik Johnston | 2019-03-21 | 1 | -1/+1 |
| | | |||||
| * | Deny peeking into rooms that have been blocked | Erik Johnston | 2019-03-21 | 1 | -1/+65 |
| | | |||||
* | | Fix typo and add description | Erik Johnston | 2019-03-21 | 1 | -1/+5 |
|/ | |||||
* | Rejig testcase to make it more extensible | Erik Johnston | 2019-03-21 | 1 | -17/+22 |
| | |||||
* | Remove debug | Erik Johnston | 2019-03-21 | 1 | -1/+0 |
| | |||||
* | Add tests | Erik Johnston | 2019-03-21 | 1 | -1/+66 |
| | |||||
* | Fix registration test | Richard van der Hoff | 2019-03-19 | 1 | -1/+2 |
| | | | | | * Set allow_guest_access = True, since we rely on it * config doesn't have a `hostname` attribute; it is `server_name` | ||||
* | Add ratelimiting on failed login attempts (#4865) | Brendan Abolivier | 2019-03-18 | 1 | -0/+45 |
| | |||||
* | Add ratelimiting on login (#4821) | Brendan Abolivier | 2019-03-15 | 2 | -2/+122 |
| | | | Add two ratelimiters on login (per-IP address and per-userID). | ||||
* | Merge pull request #4772 from jbweston/jbweston/server-version-api | Erik Johnston | 2019-03-05 | 1 | -2/+36 |
|\ | | | | | Add 'server_version' endpoint to admin API | ||||
| * | Add 'server_version' endpoint to admin API | Joseph Weston | 2019-03-01 | 1 | -1/+35 |
| | | | | | | | | | | This is required because the 'Server' HTTP header is not always passed through proxies. | ||||
| * | Import 'admin' module rather than 'register_servlets' directly | Joseph Weston | 2019-03-01 | 1 | -2/+2 |
| | | | | | | | | | | | | We will later need also to import 'register_servlets' from the 'login' module, so we un-pollute the namespace now to keep the logical changes separate. | ||||
* | | Add rate-limiting on registration (#4735) | Brendan Abolivier | 2019-03-05 | 4 | -7/+55 |
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rate-limiting for registration * Add unit test for registration rate limiting * Add config parameters for rate limiting on auth endpoints * Doc * Fix doc of rate limiting function Co-Authored-By: babolivier <contact@brendanabolivier.com> * Incorporate review * Fix config parsing * Fix linting errors * Set default config for auth rate limiting * Fix tests * Add changelog * Advance reactor instead of mocked clock * Move parameters to registration specific config and give them more sensible default values * Remove unused config options * Don't mock the rate limiter un MAU tests * Rename _register_with_store into register_with_store * Make CI happy * Remove unused import * Update sample config * Fix ratelimiting test for py2 * Add non-guest test | ||||
* | Move register_device into handler | Erik Johnston | 2019-02-18 | 1 | -70/+23 |
| | |||||
* | Fix unit tests | Erik Johnston | 2019-02-18 | 1 | -6/+15 |
| | |||||
* | rework format of change password capability | Neil Johnson | 2019-01-29 | 1 | -2/+2 |
| | |||||
* | support change_password in capabilities end-point | Neil Johnson | 2019-01-29 | 1 | -0/+23 |
| | |||||
* | isort | Neil Johnson | 2019-01-29 | 1 | -1/+2 |
| | |||||
* | enforce auth for capabilities endpoint | Neil Johnson | 2019-01-29 | 1 | -4/+19 |
| | |||||
* | Support room version capabilities in CS API (MSC1804) | Neil Johnson | 2019-01-25 | 1 | -0/+39 |
| | |||||
* | Remove v1 only REST APIs now we don't ship matrix console (#4334) | Amber Brown | 2018-12-29 | 2 | -145/+44 |
| | |||||
* | create support user (#4141) | Neil Johnson | 2018-12-14 | 1 | -5/+28 |
| | | | | | | Allow for the creation of a support user. A support user can access the server, join rooms, interact with other users, but does not appear in the user directory nor does it contribute to monthly active user limits. | ||||
* | Fix fallback auth on Python 3 (#4197) | Amber Brown | 2018-11-19 | 1 | -0/+104 |
| | |||||
* | Add a test for the public T&Cs form | Richard van der Hoff | 2018-11-14 | 1 | -0/+7 |
| | |||||
* | Remove some boilerplate in tests (#4156) | Amber Brown | 2018-11-07 | 5 | -178/+117 |
| | |||||
* | Tests for user consent resource (#4140) | Amber Brown | 2018-11-06 | 1 | -0/+111 |
| | |||||
* | Fix typing being reset causing infinite syncs (#4127) | Amber Brown | 2018-11-03 | 1 | -0/+123 |
| | |||||
* | Fix search 500ing (#4122) | Amber Brown | 2018-10-31 | 1 | -1/+105 |
| | |||||
* | Port tests/ to Python 3 (#3808) | Amber Brown | 2018-09-07 | 2 | -311/+258 |
| | |||||
* | Port storage/ to Python 3 (#3725) | Amber Brown | 2018-08-31 | 1 | -4/+10 |
| | |||||
* | Integrate presence from hotfixes (#3694) | Amber Brown | 2018-08-18 | 2 | -46/+105 |
| | |||||
* | Fix the tests | Amber Brown | 2018-08-15 | 5 | -45/+24 |
| | |||||
* | Implement a new test baseclass to cut down on boilerplate (#3684) | Amber Brown | 2018-08-14 | 1 | -37/+29 |
| | |||||
* | Run tests under PostgreSQL (#3423) | Amber Brown | 2018-08-13 | 9 | -5/+9 |
| | |||||
* | Run black. | black | 2018-08-10 | 8 | -128/+117 |
| | |||||
* | Test fixes for Python 3 (#3647) | Amber Brown | 2018-08-09 | 7 | -36/+36 |
| | |||||
* | Admin API for creating new users (#3415) | Amber Brown | 2018-07-20 | 1 | -0/+305 |
| | |||||
* | Move v1-only APIs into their own module & isolate deprecated ones (#3460) | Amber Brown | 2018-07-19 | 5 | -86/+27 |
| | |||||
* | Refactor REST API tests to use explicit reactors (#3351) | Amber Brown | 2018-07-17 | 7 | -921/+902 |
| | |||||
* | Make auth & transactions more testable (#3499) | Amber Brown | 2018-07-14 | 1 | -1/+4 |
| | |||||
* | run isort | Amber Brown | 2018-07-09 | 10 | -41/+44 |
| | |||||
* | Pass around the reactor explicitly (#3385) | Amber Brown | 2018-06-22 | 1 | -3/+3 |
| | |||||
* | Fix logcontext leak in HttpTransactionCache | Richard van der Hoff | 2018-05-21 | 1 | -0/+21 |
| | | | | ONE DAY I WILL PURGE THE WORLD OF THIS EVIL | ||||
* | Stop the transaction cache caching failures | Richard van der Hoff | 2018-05-21 | 1 | -0/+54 |
| | | | | | | The transaction cache has some code which tries to stop it caching failures, but if the callback function failed straight away, then things would happen backwards and we'd end up with the failure stuck in the cache. | ||||
* | Burminate v1auth | Adrian Tschira | 2018-04-30 | 4 | -13/+18 |
| | | | | | | | | | | | | | | | | | | This closes #2602 v1auth was created to account for the differences in status code between the v1 and v2_alpha revisions of the protocol (401 vs 403 for invalid tokens). However since those protocols were merged, this makes the r0 version/endpoint internally inconsistent, and violates the specification for the r0 endpoint. This might break clients that rely on this inconsistency with the specification. This is said to affect the legacy angular reference client. However, I feel that restoring parity with the spec is more important. Either way, it is critical to inform developers about this change, in case they rely on the illegal behaviour. Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | Use six.moves.urlparse | Adrian Tschira | 2018-04-15 | 1 | -7/+7 |
| | | | | | | The imports were shuffled around a bunch in py3 Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | move handling of auto_join_rooms to RegisterHandler | Krombel | 2018-03-14 | 1 | -0/+1 |
| | | | | | | | | | | | | | Currently the handling of auto_join_rooms only works when a user registers itself via public register api. Registrations via registration_shared_secret and ModuleApi do not work This auto_joins the users in the registration handler which enables the auto join feature for all 3 registration paths. This is related to issue #2725 Signed-Off-by: Matthias Kesler <krombel@krombel.de> | ||||
* | s/replication_client/federation_client/ | Erik Johnston | 2018-03-13 | 4 | -11/+11 |
| | |||||
* | Fix tests | Erik Johnston | 2018-03-13 | 4 | -11/+11 |
| | |||||
* | Move RoomMemberHandler out of Handlers | Erik Johnston | 2018-03-01 | 1 | -1/+1 |
| | |||||
* | mock registrations_require_3pid | Matthew Hodgson | 2018-01-19 | 1 | -0/+1 |
| | |||||
* | Remove dead code | Richard van der Hoff | 2018-01-09 | 1 | -3/+0 |
| | | | | pointless function is pointless | ||||
* | Refactor UI auth implementation | Richard van der Hoff | 2017-12-05 | 1 | -4/+7 |
| | | | | | Instead of returning False when auth is incomplete, throw an exception which can be caught with a wrapper. | ||||
* | Fix test | David Baker | 2017-10-17 | 1 | -0/+1 |
| | |||||
* | Split out profile handler to fix tests | Erik Johnston | 2017-08-25 | 1 | -2/+1 |
| | |||||
* | Add groups to sync stream | Erik Johnston | 2017-07-20 | 1 | -2/+2 |
| | |||||
* | use jsonschema.FormatChecker for RoomID and UserID strings | pik | 2017-03-23 | 1 | -2/+2 |
| | | | | | | * use a valid filter in rest/client/v2_alpha test Signed-off-by: pik <alexander.maznev@gmail.com> | ||||
* | Add basic implementation of local device list changes | Erik Johnston | 2017-01-25 | 1 | -2/+2 |
| | |||||
* | Linearize updates to membership via PUT /state/ | Erik Johnston | 2017-01-09 | 2 | -3/+6 |
| | |||||
* | Stop generating refresh tokens | Richard van der Hoff | 2016-11-28 | 1 | -8/+4 |
| | | | | | | | Since we're not doing refresh tokens any more, we should start killing off the dead code paths. /tokenrefresh itself is a bit of a thornier subject, since there might be apps out there using it, but we can at least not generate refresh tokens on new logins. | ||||
* | Clean transactions based on time. Add HttpTransactionCache tests. | Kegan Dougal | 2016-11-14 | 1 | -0/+69 |
| | |||||
* | Merge pull request #1098 from matrix-org/markjh/bearer_token | Mark Haines | 2016-10-25 | 2 | -0/+4 |
|\ | | | | | Allow clients to supply access_tokens as headers | ||||
| * | Fix unit tests | Mark Haines | 2016-09-12 | 2 | -0/+4 |
| | | |||||
* | | Merge pull request #1164 from pik/error-codes | Erik Johnston | 2016-10-19 | 1 | -40/+87 |
|\ \ | | | | | | | Clarify Error codes for GET /filter/ | ||||
| * | | Refactor test_filter to use real DataStore | pik | 2016-10-18 | 1 | -43/+81 |
| | | | | | | | | | | | | * add tests for filter api errors | ||||
| * | | Error codes for filters | Alexander Maznev | 2016-10-14 | 1 | -3/+12 |
| | | | | | | | | | | | | | | | | | | * add tests Signed-off-by: Alexander Maznev <alexander.maznev@gmail.com> | ||||
* | | | rest/client/v1/register: use the correct requester in createUser | Patrik Oldsberg | 2016-10-06 | 1 | -21/+9 |
| | | | | | | | | | | | | Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com> | ||||
* | | | storage/appservice: make appservice methods only relying on the cache ↵ | Patrik Oldsberg | 2016-10-06 | 1 | -1/+1 |
|/ / | | | | | | | synchronous | ||||
* / | Time out typing over federation | Erik Johnston | 2016-09-23 | 1 | -4/+1 |
|/ | |||||
* | More 0_0 in tests | Mark Haines | 2016-08-25 | 1 | -2/+2 |
| | |||||
* | Add `create_requester` function | Richard van der Hoff | 2016-07-26 | 1 | -8/+5 |
| | | | | | Wrap the `Requester` constructor with a function which provides sensible defaults, and use it throughout | ||||
* | Implement deleting devices | Richard van der Hoff | 2016-07-26 | 1 | -4/+10 |
| |