summary refs log tree commit diff
path: root/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Implement MSC2290 (#6043)Andrew Morgan2020-02-251-6/+5
|\
* | Add 'failure_ts' column to 'destinations' table (#6016)Andrew Morgan2020-02-253-4/+138
|\|
| * Add 'failure_ts' column to 'destinations' table (#6016)Richard van der Hoff2019-09-173-4/+138
| | | | | | | | Track the time that a server started failing at, for general analysis purposes.
* | Fix well-known lookups with the federation certificate whitelist (#5997)Andrew Morgan2020-02-251-0/+40
|\|
| * Fix well-known lookups with the federation certificate whitelist (#5997)Amber Brown2019-09-141-0/+40
| |
* | Fix for structured logging tests stomping on logs (#6023)Andrew Morgan2020-02-252-6/+23
|\|
| * Fix for structured logging tests stomping on logs (#6023)Amber Brown2019-09-132-6/+23
| |
* | Merge pull request #6020 from matrix-org/jaywink/allow-support-users-to-registerAndrew Morgan2020-02-251-0/+18
|\|
| * Ensure support users can be registered even if MAU limit is reachedJason Robinson2019-09-111-0/+18
| | | | | | | | | | | | | | | | | | This allows support users to be created even on MAU limits via the admin API. Support users are excluded from MAU after creation, so it makes sense to exclude them in creation - except if the whole host is in disabled state. Signed-off-by: Jason Robinson <jasonr@matrix.org>
* | Merge pull request #6015 from matrix-org/erikj/ratelimit_admin_redactionAndrew Morgan2020-02-251-0/+25
|\|
| * Fix commentsErik Johnston2019-09-111-2/+2
| | | | | | Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
| * Add test for admin redaction ratelimiting.Erik Johnston2019-09-111-0/+25
| |
* | Fix existing v2 identity server calls (MSC2140) (#6013)Andrew Morgan2020-02-252-1/+1
|\|
* | Merge pull request #6004 from matrix-org/jaywink/autojoin-create-real-usersAndrew Morgan2020-02-251-2/+27
|\|
| * Merge pull request #6004 from matrix-org/jaywink/autojoin-create-real-usersJason Robinson2019-09-091-2/+27
| |\ | | | | | | Only count real users when checking for auto-creation of auto-join room
| | * Only count real users when checking for auto-creation of auto-join roomJason Robinson2019-09-091-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously if the first registered user was a "support" or "bot" user, when the first real user registers, the auto-join rooms were not created. Fix to exclude non-real (ie users with a special user type) users when counting how many users there are to determine whether we should auto-create a room. Signed-off-by: Jason Robinson <jasonr@matrix.org>
* | | Merge pull request #5934 from matrix-org/erikj/censor_redactionsAndrew Morgan2020-02-251-1/+76
|\| |
| * | Merge pull request #5934 from matrix-org/erikj/censor_redactionsErik Johnston2019-09-091-1/+76
| |\ \ | | | | | | | | Censor redactions in DB after a month
| | * \ Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-09-058-119/+544
| | |\ \ | | | | | | | | | | | | | | | erikj/censor_redactions
| | * | | Fix testErik Johnston2019-09-051-1/+3
| | | | |
| | * | | Make redaction retention period configurableErik Johnston2019-09-051-1/+3
| | | | |
| | * | | Censor redactions in DB after a monthErik Johnston2019-08-301-0/+71
| | | | |
* | | | | Add a build info metric to Prometheus (#6005)Andrew Morgan2020-02-251-2/+20
|\| | | |
| * | | | Add a build info metric to Prometheus (#6005)Amber Brown2019-09-101-2/+20
| | |_|/ | |/| |
* | | | Servers-known-about statistic (#5981)Andrew Morgan2020-02-253-60/+125
|\| | |
| * | | Servers-known-about statistic (#5981)Amber Brown2019-09-073-60/+125
| | |/ | |/|
* | | Remove extraneous unittest.DEBUG'sAndrew Morgan2020-02-252-2/+0
| | |
* | | Increase expected state events in tests for new room by oneAndrew Morgan2020-02-251-1/+6
| | |
* | | Fix and refactor room and user stats (#5971)Andrew Morgan2020-02-251-111/+532
|\| |
| * | Fix and refactor room and user stats (#5971)Erik Johnston2019-09-042-113/+538
| | | | | | | | | Previously the stats were not being correctly populated.
* | | Remove unnecessary parentheses around return statements (#5931)Andrew Morgan2020-02-246-6/+6
|\| |
| * | Remove unnecessary parentheses around return statements (#5931)Andrew Morgan2019-08-306-6/+6
| |/ | | | | | | | | 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 Morgan2020-02-244-26/+4
| | | | | | | | | | This reverts commit 978f263e7c5d1eb440efaf07abc5009408ade25d, reversing changes made to 4f6ee99818d9c338944a10585d0aea4c7349d456.
* | Merge pull request #5902 from matrix-org/hs/exempt-support-users-from-consentAndrew Morgan2020-02-241-0/+1
|\|
| * Merge pull request #5902 from matrix-org/hs/exempt-support-users-from-consentWill Hunt2019-08-281-0/+1
| |\ | | | | | | Exempt support users from consent
| | * Fix registration testHalf-Shot2019-08-231-0/+1
| | |
* | | Use the v2 lookup API for 3PID invites (#5897)Andrew Morgan2020-02-244-4/+26
|\| |
* | | Config templating (#5900)Andrew Morgan2020-02-213-1/+196
|\| |
| * | Config templating (#5900)Jorik Schellekens2019-08-283-1/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Template config files * Imagine a system composed entirely of x, y, z etc and the basic operations.. Wait George, why XOR? Why not just neq? George: Eh, I didn't think of that.. Co-Authored-By: Erik Johnston <erik@matrix.org>
* | | Implement a structured logging output system. (#5680)Andrew Morgan2020-02-214-2/+456
|\| |
| * | Implement a structured logging output system. (#5680)Amber Brown2019-08-284-2/+456
| | |
* | | Merge pull request #5864 from matrix-org/erikj/reliable_lookupsAndrew Morgan2020-02-214-7/+65
|\| |
| * | Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-08-222-39/+50
| |\| | | | | | | | | | erikj/reliable_lookups
| * | Remove test debugsErik Johnston2019-08-203-3/+0
| | |
| * | Refactor MatrixFederationAgent to retry SRV.Erik Johnston2019-08-152-5/+66
| | | | | | | | | | | | | | | | | | | | | | | | This refactors MatrixFederationAgent to move the SRV lookup into the endpoint code, this has two benefits: 1. Its easier to retry different host/ports in the same way as HostnameEndpoint. 2. We avoid SRV lookups if we have a free connection in the pool
* | | Merge pull request #5877 from ↵Andrew Morgan2020-02-211-0/+1
|\ \ \ | | |/ | |/| | | | Awesome-Technologies/remove_shared_secret_registration
* | | Merge pull request #5850 from matrix-org/erikj/retry_well_known_on_failAndrew Morgan2020-02-211-35/+48
|\| |
| * | Merge pull request #5850 from matrix-org/erikj/retry_well_known_on_failErik Johnston2019-08-221-35/+48
| |\ \ | | | | | | | | Retry well known on fail
| | * | Change jitter to be a factor rather than absolute valueErik Johnston2019-08-201-2/+2
| | | |
| | * | Retry well known on fail.Erik Johnston2019-08-151-33/+46
| | |/ | | | | | | | | | | | | | | | If we have recently seen a valid well-known for a domain we want to retry on (non-final) errors a few times, to handle temporary blips in networking/etc.
* | | Refactor the Appservice scheduler code (#5886)Andrew Morgan2020-02-211-4/+2
|\| |
| * | Refactor the Appservice scheduler codeRichard van der Hoff2019-08-201-4/+2
| |/ | | | | | | | | | | | | | | Get rid of the labyrinthine `recoverer_fn` code, and clean up the startup code (it seemed to be previously inexplicably split between `ApplicationServiceScheduler.start` and `_Recoverer.start`). Add some docstrings too.
* | Merge pull request #5844 from matrix-org/erikj/retry_well_known_lookupAndrew Morgan2020-02-202-2/+71
|\|
| * Retry well-known lookup before expiry.Erik Johnston2019-08-132-2/+71
| | | | | | | | | | | | | | | | | | This gives a bit of a grace period where we can attempt to refetch a remote `well-known`, while still using the cached result if that fails. Hopefully this will make the well-known resolution a bit more torelant of failures, rather than it immediately treating failures as "no result" and caching that for an hour.
* | Merge pull request #5836 from matrix-org/erikj/lower_bound_ttl_well_knownAndrew Morgan2020-02-201-22/+21
|\|
| * Merge pull request #5836 from matrix-org/erikj/lower_bound_ttl_well_knownErik Johnston2019-08-131-22/+21
| |\ | | | | | | Add a lower bound to well-known TTL.
| | * Move well known lookup into a separate clasErik Johnston2019-08-071-20/+19
| | |
| | * Add a lower bound for TTL on well known results.Erik Johnston2019-08-061-2/+2
| | | | | | | | | | | | | | | | | | | | | It costs both us and the remote server for us to fetch the well known for every single request we send, so we add a minimum cache period. This is set to 5m so that we still honour the basic premise of "refetch frequently".
* | | Merge pull request #5788 from matrix-org/rav/metaredactionsAndrew Morgan2020-02-201-0/+70
|\| |
| * | Merge pull request #5788 from matrix-org/rav/metaredactionsRichard van der Hoff2019-08-121-0/+70
| |\ \ | | |/ | |/| Fix handling of redactions of redactions
| | * Handle loops in redaction eventsRichard van der Hoff2019-07-301-0/+70
| | |
| * | Account validity: allow defining HTML templates to serve the us… (#5807)Brendan Abolivier2019-08-011-0/+37
| |\ \ | | | | | | | | Account validity: allow defining HTML templates to serve the user on account renewal attempt
| | * | Add testsBrendan Abolivier2019-08-011-0/+37
| | | |
* | | | Merge pull request #5794 from matrix-org/erikj/share_ssl_options_for_well_knownAndrew Morgan2020-02-201-6/+6
|\| | |
| * | | Merge pull request #5794 from matrix-org/erikj/share_ssl_options_for_well_knownErik Johnston2019-07-311-6/+6
| |\ \ \ | | | | | | | | | | Share SSL options for well-known requests
| | * | | Share SSL options for well-known requestsErik Johnston2019-07-311-6/+6
| | |/ /
* | | | Remove DelayedCall debugging from test runs (#5787)Andrew Morgan2020-02-201-6/+0
|\| | |
| * | | Remove DelayedCall debugging from test runs (#5787)Amber Brown2019-07-311-6/+0
| |/ /
* | | Merge pull request #5746 from matrix-org/erikj/test_bg_update_currnet_stateAndrew Morgan2020-02-201-1/+36
|\| |
| * | Merge pull request #5746 from matrix-org/erikj/test_bg_update_currnet_stateErik Johnston2019-07-301-1/+36
| |\ \ | | | | | | | | Add unit test for current state membership bg update
| | * | Add unit test for current state membership bg updateErik Johnston2019-07-231-1/+36
| | | |
* | | | Remove non-functional 'expire_access_token' setting (#5782)Andrew Morgan2020-02-203-3/+2
|\| | |
| * | | Remove non-functional 'expire_access_token' setting (#5782)Richard van der Hoff2019-07-303-3/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | The `expire_access_token` didn't do what it sounded like it should do. What it actually did was make Synapse enforce the 'time' caveat on macaroons used as access tokens, but since our access token macaroons never contained such a caveat, it was always a no-op. (The code to add 'time' caveats was removed back in v0.18.5, in #1656)
* | | Room Complexity Client Implementation (#5783)Andrew Morgan2020-02-201-3/+74
|\| |
| * | Room Complexity Client Implementation (#5783)Amber Brown2019-07-301-3/+74
| | |
* | | Convert RedactionTestCase to modern test style (#5768)Andrew Morgan2020-02-191-36/+38
|\| |
| * | Convert RedactionTestCase to modern test style (#5768)Richard van der Hoff2019-07-261-36/+38
| | |
* | | Fix some error cases in the caching layer. (#5749)Andrew Morgan2020-02-191-3/+87
|\| |
| * | Fix some error cases in the caching layer. (#5749)Richard van der Hoff2019-07-251-3/+87
| | | | | | | | | | | | | | | | | | | | | There was some inconsistent behaviour in the caching layer around how exceptions were handled - particularly synchronously-thrown ones. This seems to be most easily handled by pushing the creation of ObservableDeferreds down from CacheDescriptor to the Cache.
| * | Merge tag 'v1.2.0rc2' into developAndrew Morgan2019-07-242-6/+17
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Bugfixes -------- - Fix a regression introduced in v1.2.0rc1 which led to incorrect labels on some prometheus metrics. ([\#5734](https://github.com/matrix-org/synapse/issues/5734))
* | \ \ Fix servlet metric names (#5734)Andrew Morgan2020-02-192-6/+17
|\ \ \ \ | | |/ / | |/| |
| * | | Fix servlet metric names (#5734)Jorik Schellekens2019-07-242-6/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix servlet metric names Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Remove redundant check * Cover all return paths
* | | | Replace returnValue with return (#5736)Andrew Morgan2020-02-1913-25/+25
|\ \ \ \ | | |/ / | |/| |
| * | | Replace returnValue with return (#5736)Amber Brown2019-07-2313-25/+25
| | |/ | |/|
* | | Fix stack overflow in Keyring (#5724)Andrew Morgan2020-02-191-29/+0
|\| |
| * | Refactor Keyring._start_key_lookupsRichard van der Hoff2019-07-191-29/+0
| |/ | | | | | | | | There's an awful lot of deferreds and dictionaries flying around here. The whole thing can be made much simpler and achieve the same effect.
* | Support Prometheus_client 0.4.0+ (#5636)Andrew Morgan2020-02-191-3/+1
|\|
| * Support Prometheus_client 0.4.0+ (#5636)Amber Brown2019-07-181-3/+1
| |
* | Remove the ability to query relations when the original event was redacted. ↵Andrew Morgan2020-02-191-3/+113
|\| | | | | | | (#5629)
| * Remove the ability to query relations when the original event was redacted. ↵Andrew Morgan2019-07-181-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 Morgan2020-02-191-0/+20
|\|
| * Ignore redactions of m.room.create events (#5701)Richard van der Hoff2019-07-171-0/+20
| |
* | More refactoring in `get_events_as_list` (#5707)Andrew Morgan2020-02-192-0/+160
|\|
| * More refactoring in `get_events_as_list` (#5707)Richard van der Hoff2019-07-172-0/+160
| | | | | | | | | | | | | | | | 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.
* | Merge pull request #5589 from matrix-org/erikj/admin_exfiltrate_dataAndrew Morgan2020-02-172-1/+211
|\|
| * Merge pull request #5589 from matrix-org/erikj/admin_exfiltrate_dataErik Johnston2019-07-152-1/+211
| |\ | | | | | | Add basic function to get all data for a user out of synapse
| | * Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-07-0522-82/+234
| | |\ | | | | | | | | | | | | erikj/admin_exfiltrate_data
| | * | Fixup from review comments.Erik Johnston2019-07-041-5/+5
| | | |
| | * | Add basic function to get all data for a user out of synapseErik Johnston2019-07-022-1/+211
| | | |
* | | | Implement access token expiry (#5660)Andrew Morgan2020-02-175-11/+136
|\| | |
| * | | Implement access token expiry (#5660)Richard van der Hoff2019-07-125-11/+136
| | | | | | | | | | | | | | | | Record how long an access token is valid for, and raise a soft-logout once it expires.
* | | | Add a mechanism for per-test configs (#5657)Andrew Morgan2020-02-171-1/+54
|\| | |
| * | | Add a mechanism for per-test configs (#5657)Richard van der Hoff2019-07-121-1/+54
| | | | | | | | | | | | | | | | | | | | | | | | It's useful to be able to tweak the homeserver config to be used for each test. This PR adds a mechanism to do so.
* | | | Clean up exception handling for access_tokens (#5656)Andrew Morgan2020-02-171-7/+24
|\| | |
| * | | Clean up exception handling for access_tokens (#5656)Richard van der Hoff2019-07-111-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First of all, let's get rid of `TOKEN_NOT_FOUND_HTTP_STATUS`. It was a hack we did at one point when it was possible to return either a 403 or a 401 if the creds were missing. We always return a 401 in these cases now (thankfully), so it's not needed. Let's also stop abusing `AuthError` for these cases. Honestly they have nothing that relates them to the other places that `AuthError` is used, other than the fact that they are loosely under the 'Auth' banner. It makes no sense for them to share exception classes. Instead, let's add a couple of new exception classes: `InvalidClientTokenError` and `MissingClientTokenError`, for the `M_UNKNOWN_TOKEN` and `M_MISSING_TOKEN` cases respectively - and an `InvalidClientCredentialsError` base class for the two of them.
* | | | Inline issue_access_token (#5659)Andrew Morgan2020-02-171-1/+1
|\| | |
| * | | Inline issue_access_token (#5659)Richard van der Hoff2019-07-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this is only used in one place, so it's clearer if we inline it and reduce the API surface. Also, fixes a buglet where we would create an access token even if we were about to block the user (we would never return the AT, so the user could never use it, but it was still created and added to the db.)
* | | | Merge pull request #5658 from matrix-org/babolivier/is-jsonAndrew Morgan2020-02-171-4/+4
|\| | |
* | | | Remove access-token support from RegistrationStore.register (#5642)Andrew Morgan2020-02-176-58/+24
|\| | |
| * | | Remove access-token support from RegistrationStore.register (#5642)Richard van der Hoff2019-07-106-58/+24
| | | | | | | | | | | | | | | | | | | | The 'token' param is no longer used anywhere except the tests, so let's kill that off too.
* | | | Merge pull request #5638 from matrix-org/babolivier/invite-jsonAndrew Morgan2020-02-171-4/+5
|\| | |
* | | | Include the original event in /relations (#5626)Andrew Morgan2020-02-171-0/+5
|\| | |
| * | | Include the original event in /relations (#5626)Andrew Morgan2019-07-091-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.
| * | | Merge pull request #5644 from matrix-org/babolivier/profile-allow-selfBrendan Abolivier2019-07-091-0/+47
| |\ \ \ | | | | | | | | | | Allow newly-registered users to lookup their own profiles
| | * | | LintBrendan Abolivier2019-07-081-2/+2
| | | | |
| | * | | Add test caseBrendan Abolivier2019-07-081-0/+47
| | | | |
* | | | | Remove access-token support from RegistrationHandler.register (#5641)Andrew Morgan2020-02-171-25/+28
|\| | | |
| * | | | Remove access-token support from RegistrationHandler.register (#5641)Richard van der Hoff2019-07-081-25/+28
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nothing uses this now, so we can remove the dead code, and clean up the API. Since we're changing the shape of the return value anyway, we take the opportunity to give the method a better name.
* | | | Move get_or_create_user to test code (#5628)Andrew Morgan2020-02-171-9/+59
|\| | |
| * | | Move get_or_create_user to test code (#5628)Richard van der Hoff2019-07-081-9/+59
| | | | | | | | | | | | This is only used in tests, so...
* | | | Add origin_server_ts and sender fields to m.replace (#5613)Andrew Morgan2020-02-171-6/+18
|\| | |
| * | | Add origin_server_ts and sender fields to m.replace (#5613)Andrew Morgan2019-07-051-6/+18
| | |/ | |/| | | | | | | | | | Riot team would like some extra fields as part of m.replace, so here you go. Fixes: #5598
* | | Fixes to the federation rate limiter (#5621)Andrew Morgan2020-02-173-6/+137
|\| |
| * | Fixes to the federation rate limiter (#5621)Richard van der Hoff2019-07-053-6/+137
| | | | | | | | | | | | | | | | | | | | | - Put the default window_size back to 1000ms (broken by #5181) - Make the `rc_federation` config actually do something - fix an off-by-one error in the 'concurrent' limit - Avoid creating an unused `_PerHostRatelimiter` object for every single incoming request
* | | Fix with isort==4.3.21 and black==19.3b0Andrew Morgan2020-02-143-4/+3
| | |
* | | Fix signedjson deleted methodAndrew Morgan2020-02-141-4/+12
| | |
* | | Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Andrew Morgan2020-02-1419-65/+65
|\| |
| * | Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-0419-65/+65
| | |
* | | Fix media repo breaking (#5593)Andrew Morgan2020-02-142-12/+33
|\| |
| * | Fix media repo breaking (#5593)Amber Brown2019-07-022-12/+33
| |/
* | Make the http server handle coroutine-making REST servlets (#5475)Andrew Morgan2020-02-142-18/+47
|\|
| * Make the http server handle coroutine-making REST servlets (#5475)Amber Brown2019-06-292-18/+47
| |
* | Update the TLS cipher string and provide configurability for TLS on outgoing ↵Andrew Morgan2020-02-141-1/+114
|\| | | | | | | federation (#5550)
| * Update the TLS cipher string and provide configurability for TLS on outgoing ↵Amber Brown2019-06-281-1/+114
| | | | | | | | federation (#5550)
| * Split public rooms directory auth config in twoBrendan Abolivier2019-06-241-1/+1
| |
* | Pass config_dir_path and data_dir_path into Config.read_config. (#5522)Andrew Morgan2020-02-134-4/+4
|\|
| * Pass config_dir_path and data_dir_path into Config.read_config. (#5522)Richard van der Hoff2019-06-244-4/+4
| | | | | | | | | | | | * Pull config_dir_path and data_dir_path calculation out of read_config_files * Pass config_dir_path and data_dir_path into read_config
* | Run Black. (#5482)Andrew Morgan2020-02-1313-99/+97
|\|
| * Run Black. (#5482)Amber Brown2019-06-2056-710/+684
| |
* | Dinsic Blacking with black==18.6b2Andrew Morgan2020-02-1158-979/+803
| |
* | Merge pull request #5480 from matrix-org/erikj/extremities_dummy_eventsAndrew Morgan2020-02-101-1/+1
|\|
| * Run as background process and fix commentsErik Johnston2019-06-191-1/+1
| |
* | Add experimental option to reduce extremities.Andrew Morgan2020-02-101-0/+41
|\|
| * Add experimental option to reduce extremities.Erik Johnston2019-06-181-0/+41
| | | | | | | | | | | | | | Adds new config option `cleanup_extremities_with_dummy_events` which periodically sends dummy events to rooms with more than 10 extremities. THIS IS REALLY EXPERIMENTAL.
* | Merge commit 'dd927b29e' into dinsic-release-v1.1.0Andrew Morgan2020-02-101-23/+70
|\|
| * Merge pull request #5388 from matrix-org/erikj/fix_email_pushErik Johnston2019-06-171-23/+70
| |\ | | | | | | Fix email notifications for unnamed rooms with multiple people
| | * Add testErik Johnston2019-06-071-1/+28
| | |
| | * Refactor email testsErik Johnston2019-06-071-22/+42
| | |
| * | Merge pull request #5440 from matrix-org/babolivier/third_party_event_rulesBrendan Abolivier2019-06-141-0/+79
| |\ \ | | | | | | | | Allow server admins to define implementations of extra rules for allowing or denying incoming events
* | | | Merge pull request #5461 from matrix-org/erikj/histograms_are_cumalitiveAndrew Morgan2020-02-101-10/+10
|\| | |
| * | | Merge pull request #5461 from matrix-org/erikj/histograms_are_cumalitiveErik Johnston2019-06-141-10/+10
| |\ \ \ | | | | | | | | | | Prometheus histograms are cumalative
| | * | | Prometheus histograms are cumalativeErik Johnston2019-06-141-10/+10
| | | | |
| * | | | Don't send renewal emails to deactivated usersBrendan Abolivier2019-06-141-25/+42
| |/ / /
| * | | Track deactivated accounts in the database (#5378)Brendan Abolivier2019-06-141-0/+45
| | | |
* | | | Merge remote-tracking branch 'dinsic/dinsic' into dinsic-release-v1.1.0Andrew Morgan2020-02-1014-15/+905
|\ \ \ \
| * | | | Add limit_profile_requests_to_known_users option (#18)Andrew Morgan2019-12-051-0/+1
| | | | |
| * | | | Capatilise letters after a - in new user displaynames (#14)Andrew Morgan2019-12-021-0/+28
| | | | |
| * | | | Hide expired users from user directory, optionally show on renewal (#13)Andrew Morgan2019-11-141-0/+135
| | | | |
| * | | | Create configurable ratelimiter for 3pid invites (#11)Andrew Morgan2019-11-121-0/+9
| | | | |
| * | | | Don't apply retention policy based filtering on state eventsBrendan Abolivier2019-11-061-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.
| * | | | Support for routing outbound HTTP requests via a proxy (#6239)Richard van der Hoff2019-11-015-6/+382
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `http_proxy` and `HTTPS_PROXY` env vars can be set to a `host[:port]` value which should point to a proxy. The address of the proxy should be excluded from IP blacklists such as the `url_preview_ip_range_blacklist`. The proxy will then be used for * push * url previews * phone-home stats * recaptcha validation * CAS auth validation It will *not* be used for: * Application Services * Identity servers * Outbound federation * In worker configurations, connections from workers to masters Fixes #4198.
| * | | | Fixup testsBrendan Abolivier2019-10-042-4/+12
| | | | |
| * | | | Lint (again)Brendan Abolivier2019-10-041-3/+1
| | | | |
| * | | | LintBrendan Abolivier2019-10-041-5/+5
| | | | |
| * | | | Add test caseBrendan Abolivier2019-10-041-0/+83
| | | | |
| * | | | Fix git messing upBrendan Abolivier2019-09-271-2/+3
| | | | |
| * | | | okBrendan Abolivier2019-09-271-1/+3
| | | | |
| * | | | LintBrendan Abolivier2019-09-271-0/+51
| | | | |
| * | | | Add unit tests for strip_invalid_mxid_charactersBrendan Abolivier2019-09-191-1/+21
| | | | |
| * | | | Merge pull request #2 from matrix-org/babolivier/dinsic-3pid-inviteBrendan Abolivier2019-09-101-0/+64
| |\ \ \ \ | | | | | | | | | | | | Don't treat 3PID revocation as a new 3PID invite
| | * | | | LintBrendan Abolivier2019-09-061-1/+0
| | | | | |
| | * | | | Fix bogus conflict resolutionBrendan Abolivier2019-09-061-0/+1
| | | | | |
| | * | | | Merge branch 'dinsic' into babolivier/dinsic-3pid-inviteBrendan Abolivier2019-09-061-8/+112
| | |\ \ \ \
| | * | | | | Don't process revoked/redacted events as part of the room's membership infoBrendan Abolivier2019-09-061-0/+10
| | | | | | |
| | * | | | | Don't treat 3PID revokation as a new 3PID inviteBrendan Abolivier2019-09-061-0/+55
| | | | | | |
| * | | | | | Revert "Merge pull request #5932 from ↵Brendan Abolivier2019-09-091-3/+2
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | matrix-org/babolivier/account_validity_template_encode" This reverts commit 84e695f506faf54982b9e19dceb9c02acffad95f, reversing changes made to 99eec6d2d5cc76e645c3fd7ca6cda85b2bab6feb.
| * | | | | Add testsBrendan Abolivier2019-09-051-0/+105
| |/ / / /
* | | | | Merge pull request #5458 from matrix-org/hawkowl/fix-prometheusAndrew Morgan2020-02-101-38/+23
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | fix prometheus rendering errorAmber H. Brown2019-06-141-38/+23
| | | | |
* | | | | Expose statistics on extrems to prometheus (#5384)Andrew Morgan2020-02-103-80/+206
|\| | | | | |/ / / |/| | |
| * | | Expose statistics on extrems to prometheus (#5384)Amber Brown2019-06-133-80/+206
| | | |
| * | | Merge branch 'master' of github.com:matrix-org/synapse into developErik Johnston2019-06-116-24/+253
| |\ \ \
| * \ \ \ Merge branch 'release-v1.0.0' of github.com:matrix-org/synapse into developErik Johnston2019-06-106-106/+341
| |\ \ \ \
| * \ \ \ \ Merge pull request #5415 from matrix-org/erikj/fix_null_valid_until_msErik Johnston2019-06-101-1/+49
| |\ \ \ \ \ | | | | | | | | | | | | | | Fix key verification when key stored with null valid_until_ms
| * \ \ \ \ \ Merge pull request #5363 from ↵Brendan Abolivier2019-06-101-0/+35
| |\ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | matrix-org/babolivier/account_validity_send_mail_auth Don't check whether the user's account is expired on /send_mail requests
* | | | | | | Fix encoding for account validity HTML files on Python 2Brendan Abolivier2019-08-291-2/+3
| | | | | | |
* | | | | | | Merge branch 'dinsic' into babolivier/dinsic-message-retentionBrendan Abolivier2019-08-282-2/+141
|\ \ \ \ \ \ \
| * \ \ \ \ \ \ Merge pull request #5812 from matrix-org/babolivier/account-validity-messages dinsic_2019-08-12Michael Kaye2019-08-121-0/+37
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Account validity: allow defining HTML templates to serve the user on account renewal attempt
| | * | | | | | | Add testsBrendan Abolivier2019-08-011-0/+37
| | | | | | | | |
| * | | | | | | | Fix status code for forbidden eventsBrendan Abolivier2019-07-251-6/+6
| | | | | | | | |
| * | | | | | | | Turns out the default preset is public_chatBrendan Abolivier2019-07-241-5/+3
| | | | | | | | |
| * | | | | | | | Add test caseBrendan Abolivier2019-07-241-2/+106
| |/ / / / / / /
* / / / / / / / Implement per-room message retention policiesBrendan Abolivier2019-08-281-0/+319
|/ / / / / / /
* | | | | | | Merge pull request #5646 from matrix-org/babolivier/profile-allow-self dinsic_2019-07-09Brendan Abolivier2019-07-091-0/+47
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Port #5644 to dinsic
| * | | | | | | LintBrendan Abolivier2019-07-091-2/+2
| | | | | | | |
| * | | | | | | Add test caseBrendan Abolivier2019-07-091-0/+47
| | | | | | | |
* | | | | | | | Add testsBrendan Abolivier2019-07-031-4/+52
| | | | | | | |
* | | | | | | | Add test case for #5574Brendan Abolivier2019-06-281-0/+108
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | There's no test that makes sure #5574 didn't break things or works correctly (my bad), so this PR adds a test case that makes sure of it.
* | | | | | | Split public rooms directory auth config in twoBrendan Abolivier2019-06-241-1/+1
| | | | | | |
* | | | | | | Add tests for constraints on changing the rule for a roomBrendan Abolivier2019-06-181-0/+60
| | | | | | |
* | | | | | | Add tests for 3PID invitesBrendan Abolivier2019-06-181-12/+146
| | | | | | |
* | | | | | | Remove unused importBrendan Abolivier2019-06-181-1/+0
| | | | | | |
* | | | | | | Add tests for inviting with access rulesBrendan Abolivier2019-06-181-2/+102
| | | | | | |
* | | | | | | Remove unused importsBrendan Abolivier2019-06-181-3/+0
| | | | | | |
* | | | | | | LintBrendan Abolivier2019-06-181-1/+1
| | | | | | |
* | | | | | | Add tests for room creation hookBrendan Abolivier2019-06-181-0/+136
| | | | | | |
* | | | | | | Merge branch 'babolivier/third_party_event_rules' into dinsicBrendan Abolivier2019-06-141-0/+79
|\ \ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | |
| * | | | | | Add plugin APIs for implementations of custom event rules.Brendan Abolivier2019-06-141-0/+79
| | |_|_|/ / | |/| | | |
* | | | | | Fix testBrendan Abolivier2019-06-141-1/+2
| | | | | |
* | | | | | Don't send renewal emails to deactivated usersBrendan Abolivier2019-06-141-25/+42
| | | | | |
* | | | | | Track deactivated accounts in the database (#5378)Brendan Abolivier2019-06-141-0/+45
| | | | | |
* | | | | | Merge branch 'dinsic' into babolivier/userdir_hide_usersBrendan Abolivier2019-06-1228-204/+2324
|\ \ \ \ \ \
| * \ \ \ \ \ Merge branch 'master' into dinsicBrendan Abolivier2019-06-1224-202/+1496
| |\ \ \ \ \ \ | | | |_|_|_|/ | | |/| | | |
| | * | | | | Bump bleach version so that tests can run on old deps.Erik Johnston2019-06-114-24/+0
| | | | | | |
| | * | | | | Change password reset links to /_matrix.Erik Johnston2019-06-112-0/+253
| | |/ / / /
| | * | | | Merge pull request #5417 from matrix-org/rav/shared_ssl_contextErik Johnston2019-06-106-106/+341
| | |\ \ \ \ | | | |_|_|/ | | |/| | | Share an SSL context object between SSL connections
| | | * | | fix ci on py2, againRichard van der Hoff2019-06-101-1/+1
| | | | | |
| | | * | | fix CI on python 2.7Richard van der Hoff2019-06-101-6/+4
| | | | | |
| | | * | | Tests for SSL certs for federation connectionsRichard van der Hoff2019-06-106-106/+343
| | | |/ / | | | | | | | | | | | | | | | Add some tests for bad certificates for federation and .well-known connections
| | * / / Fix key verification when key stored with null valid_until_msErik Johnston2019-06-101-1/+49
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | Prevent multiple device list updates from breaking a batch send (#5156)Andrew Morgan2019-06-061-0/+69
| | | | | | | | | | | | fixes #5153
| | * | Set default room version to v4. (#5379)Neil Johnson2019-06-062-1/+8
| | | | | | | | | | | | | | | | Set default room version to v4.
| | * | Add ability to perform password reset via email without trusting the ↵Andrew Morgan2019-06-061-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Hoff2019-06-062-15/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | Merge pull request #5359 from matrix-org/rav/enable_tls_verificationRichard van der Hoff2019-06-061-3/+9
| | |\ \ | | | | | | | | | | Validate federation server TLS certificates by default.
| | | * \ Merge branch 'rav/fix_custom_ca' into rav/enable_tls_verificationRichard van der Hoff2019-06-051-3/+59
| | | |\ \
| | | * | | Validate federation server TLS certificates by default.Richard van der Hoff2019-06-051-3/+9
| | | | | |
| | * | | | Merge pull request #5353 from matrix-org/rav/verify_key_loggingRichard van der Hoff2019-06-061-10/+8
| | |\ \ \ \ | | | |_|/ / | | |/| | | Associate a request_name with each verify request, for logging
| | | * | | Associate a request_name with each verify request, for loggingRichard van der Hoff2019-06-051-10/+8
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also: * rename VerifyKeyRequest->VerifyJsonRequest * calculate key_ids on VerifyJsonRequest construction * refactor things to pass around VerifyJsonRequests instead of 4-tuples
| | * / / Fix background updates to handle redactions/rejections (#5352)Erik Johnston2019-06-061-3/+59
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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).
| | * | Don't bomb out on direct key fetches as soon as one failsRichard van der Hoff2019-06-041-7/+5
| | | |
| | * | Enforce validity period on server_keys for fed requests. (#5321)Richard van der Hoff2019-06-031-27/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | Unify v1 and v2 REST client APIs (#5226)Amber Brown2019-06-033-3/+2
| | | |
| | * | Merge pull request #5309 from matrix-org/rav/limit_displayname_lengthRichard van der Hoff2019-06-011-2/+60
| | |\ \ | | | | | | | | | | Limit displaynames and avatar URLs
| | | * | add some testsRichard van der Hoff2019-06-011-2/+60
| | | | |
| | * | | Merge pull request #5276 from matrix-org/babolivier/account_validity_job_deltaErik Johnston2019-05-311-5/+10
| | |\ \ \ | | | | | | | | | | | | Allow configuring a range for the account validity startup job
| | * \ \ \ Merge pull request #5278 from matrix-org/erikj/cleanup_bad_extremitiesErik Johnston2019-05-301-0/+248
| | |\ \ \ \ | | | | | | | | | | | | | | Add DB bg update to cleanup extremities.
| | | * | | | Add testErik Johnston2019-05-291-0/+248
| | | | | | |
| | * | | | | Implement the SHHS complexity API (#5216)Amber Brown2019-05-301-0/+90
| | |/ / / /
| | * | | | Merge pull request #5251 from matrix-org/rav/server_keys/01-check_sigRichard van der Hoff2019-05-281-9/+75
| | |\ \ \ \ | | | | | | | | | | | | | | Ensure that server_keys fetched via a notary server are correctly signed.
| | | * | | | Require sig from origin server on perspectives responsesRichard van der Hoff2019-05-231-9/+75
| | | | | | |
| | * | | | | Simplification to Keyring.wait_for_previous_lookups. (#5250)Richard van der Hoff2019-05-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
| | * | | | | Merge pull request #5244 from matrix-org/rav/server_keys/00-factor-out-fetchersErik Johnston2019-05-231-6/+28
| | |\| | | | | | | | | | | | | | | | | | Factor out KeyFetchers from KeyRing
| | | * | | | Factor out KeyFetchers from KeyRingRichard van der Hoff2019-05-231-6/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than have three methods which have to have the same interface, factor out a separate interface which is provided by three implementations. I find it easier to grok the code this way.
| | * | | | | Add config option for setting homeserver's default room version (#5223)Andrew Morgan2019-05-231-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.
| | * | | | Store key validity time in the storage layerRichard van der Hoff2019-05-232-22/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a first step to checking that the key is valid at the required moment. The idea here is that, rather than passing VerifyKey objects in and out of the storage layer, we instead pass FetchKeyResult objects, which simply wrap the VerifyKey and add a valid_until_ts field.
| | * | | | Rewrite store_server_verify_key to store several keys at once (#5234)Richard van der Hoff2019-05-232-16/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Storing server keys hammered the database a bit. This replaces the implementation which stored a single key, with one which can do many updates at once.
| | * | | | Room Statistics (#4338)Amber Brown2019-05-212-0/+268
| | | |/ / | | |/| |
| * | | | Merge branch 'master' into dinsicBrendan Abolivier2019-06-115-2/+828
| |\ \ \ \
| | * | | | Add testErik Johnston2019-05-301-0/+248
| | |/ / /