Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix typo | Erik Johnston | 2020-07-15 | 1 | -1/+1 |
| | |||||
* | Use get_users_in_room rather than state handler in typing for speed | Erik Johnston | 2020-07-15 | 1 | -2/+2 |
| | |||||
* | Convert E2E key and room key handlers to async/await. (#7851) | Patrick Cloke | 2020-07-15 | 2 | -124/+98 |
| | |||||
* | Add delete room admin endpoint (#7613) | Dirk Klimpel | 2020-07-14 | 1 | -2/+206 |
| | | | | | | | | | | | | | | | | | | The Delete Room admin API allows server admins to remove rooms from server and block these rooms. `DELETE /_synapse/admin/v1/rooms/<room_id>` It is a combination and improvement of "[Shutdown room](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/shutdown_room.md)" and "[Purge room](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/purge_room.md)" API. Fixes: #6425 It also fixes a bug in [synapse/storage/data_stores/main/room.py](synapse/storage/data_stores/main/room.py) in ` get_room_with_stats`. It should return `None` if the room is unknown. But it returns an `IndexError`. https://github.com/matrix-org/synapse/blob/901b1fa561e3cc661d78aa96d59802cf2078cb0d/synapse/storage/data_stores/main/room.py#L99-L105 Related to: - #5575 - https://github.com/Awesome-Technologies/synapse-admin/issues/17 Signed-off-by: Dirk Klimpel dirk@klimpel.org | ||||
* | Support handling registration requests across multiple client readers. (#7830) | Patrick Cloke | 2020-07-13 | 1 | -1/+2 |
| | |||||
* | Do not use canonicaljson to magically handle decoding bytes from JSON. (#7802) | Patrick Cloke | 2020-07-10 | 1 | -1/+1 |
| | |||||
* | Fix resync remote devices on receive PDU in worker mode. (#7815) | Erik Johnston | 2020-07-10 | 1 | -8/+19 |
| | | | | | | The replication client requires that arguments are given as keyword arguments, which was not done in this case. We also pull out the logic so that we can catch and handle any exceptions raised, rather than leaving them unhandled. | ||||
* | Fix recursion error when fetching auth chain over federation (#7817) | Erik Johnston | 2020-07-10 | 1 | -12/+37 |
| | | | | | | | | | | | | | | | When fetching the state of a room over federation we receive the event IDs of the state and auth chain. We then fetch those events that we don't already have. However, we used a function that recursively fetched any missing auth events for the fetched events, which can lead to a lot of recursion if the server is missing most of the auth chain. This work is entirely pointless because would have queued up the missing events in the auth chain to be fetched already. Let's just diable the recursion, since it only gets called from one place anyway. | ||||
* | `update_membership` declaration: now always returns an event id. (#7809) | Richard van der Hoff | 2020-07-09 | 2 | -5/+5 |
| | |||||
* | Fix `can only concatenate list (not "tuple") to list` exception (#7810) | Richard van der Hoff | 2020-07-09 | 1 | -1/+1 |
| | | | It seems auth_events can be either a list or a tuple, depending on Things. | ||||
* | Generate real events when we reject invites (#7804) | Richard van der Hoff | 2020-07-09 | 3 | -76/+158 |
| | | | | | | | | Fixes #2181. The basic premise is that, when we fail to reject an invite via the remote server, we can generate our own out-of-band leave event and persist it as an outlier, so that we have something to send to the client. | ||||
* | Add `HomeServer.signing_key` property (#7805) | Richard van der Hoff | 2020-07-08 | 2 | -2/+2 |
| | | | ... instead of duplicating `config.signing_key[0]` everywhere | ||||
* | Stop passing bytes when dumping JSON (#7799) | Patrick Cloke | 2020-07-08 | 1 | -2/+2 |
| | |||||
* | Refactor getting replication updates from database v2. (#7740) | Erik Johnston | 2020-07-07 | 1 | -0/+3 |
| | |||||
* | Convert the appservice handler to async/await. (#7775) | Patrick Cloke | 2020-07-06 | 1 | -42/+32 |
| | |||||
* | isort 5 compatibility (#7786) | Will Hunt | 2020-07-05 | 2 | -4/+2 |
| | | | The CI appears to use the latest version of isort, which is a problem when isort gets a major version bump. Rather than try to pin the version, I've done the necessary to make isort5 happy with synapse. | ||||
* | Fix inconsistent handling of upper and lower cases of email addresses. (#7021) | Dirk Klimpel | 2020-07-03 | 1 | -2/+3 |
| | | | fixes #7016 | ||||
* | Merge tag 'v1.16.0rc2' into develop | Patrick Cloke | 2020-07-02 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Synapse 1.16.0rc2 (2020-07-02) ============================== Synapse 1.16.0rc2 includes the security fixes released with Synapse 1.15.2. Please see [below](https://github.com/matrix-org/synapse/blob/master/CHANGES.md#synapse-1152-2020-07-02) for more details. Improved Documentation ---------------------- - Update postgres image in example `docker-compose.yaml` to tag `12-alpine`. ([\#7696](https://github.com/matrix-org/synapse/issues/7696)) Internal Changes ---------------- - Add some metrics for inbound and outbound federation latencies: `synapse_federation_server_pdu_process_time` and `synapse_event_processing_lag_by_event`. ([\#7771](https://github.com/matrix-org/synapse/issues/7771)) | ||||
| * | Merge branch 'master' into release-v1.16.0 | Patrick Cloke | 2020-07-02 | 3 | -35/+14 |
| |\ | |||||
| * | | Fix new metric where we used ms instead of seconds (#7771) | Erik Johnston | 2020-07-01 | 1 | -1/+1 |
| | | | | | | | | | | | | Introduced in #7755, not yet released. | ||||
* | | | Merge branch 'master' into develop | Patrick Cloke | 2020-07-02 | 3 | -35/+14 |
|\ \ \ | | |/ | |/| | |||||
| * | | Correctly handle outliers as prev events over federation | Erik Johnston | 2020-07-02 | 1 | -3/+3 |
| | | | |||||
| * | | Ensure that HTML pages served from Synapse include headers to avoid embedding. | Patrick Cloke | 2020-07-02 | 2 | -32/+11 |
| | | | |||||
* | | | Add early returns to `_check_for_soft_fail` (#7769) | Richard van der Hoff | 2020-07-01 | 1 | -64/+55 |
| | | | | | | | | | | | | my editor was complaining about unset variables, so let's add some early returns to fix that and reduce indentation/cognitive load. | ||||
* | | | Type checking for `FederationHandler` (#7770) | Richard van der Hoff | 2020-07-01 | 1 | -17/+30 |
| |/ |/| | | | fix a few things to make this pass mypy. | ||||
* | | Back out MSC2625 implementation (#7761) | Brendan Abolivier | 2020-07-01 | 1 | -3/+0 |
| | | |||||
* | | Additional configuration options for auto-join rooms (#7763) | Patrick Cloke | 2020-06-30 | 1 | -62/+168 |
| | | |||||
* | | Add some metrics for inbound and outbound federation processing times (#7755) | Erik Johnston | 2020-06-30 | 1 | -0/+6 |
| | | |||||
* | | Yield during large v2 state res. (#7735) | Erik Johnston | 2020-06-24 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | State res v2 across large data sets can be very CPU intensive, and if all the relevant events are in the cache the algorithm will run from start to finish within a single reactor tick. This can result in blocking the reactor tick for several seconds, which can have major repercussions on other requests. To fix this we simply add the occaisonal `sleep(0)` during iterations to yield execution until the next reactor tick. The aim is to only do this for large data sets so that we don't impact otherwise quick resolutions.= | ||||
* | | Convert directory handler to async/await (#7727) | Patrick Cloke | 2020-06-22 | 2 | -40/+32 |
| | | |||||
* | | Convert the typing handler to async/await. (#7679) | Patrick Cloke | 2020-06-17 | 1 | -18/+11 |
| | | |||||
* | | Implement unread counter (MSC2625) (#7673) | Brendan Abolivier | 2020-06-17 | 1 | -0/+3 |
|\ \ | | | | | | | Implementation of https://github.com/matrix-org/matrix-doc/pull/2625 | ||||
| * \ | Merge branch 'develop' into babolivier/mark_unread | Brendan Abolivier | 2020-06-15 | 14 | -82/+60 |
| |\ \ | |||||
| * \ \ | Merge branch 'develop' into babolivier/mark_unread | Brendan Abolivier | 2020-06-15 | 2 | -29/+57 |
| |\ \ \ | |||||
| * | | | | Appease mypy | Brendan Abolivier | 2020-06-10 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | Lint | Brendan Abolivier | 2020-06-10 | 1 | -3/+3 |
| | | | | | |||||
| * | | | | Use temporary prefixes as per the MSC | Brendan Abolivier | 2020-06-10 | 1 | -1/+3 |
| | | | | | |||||
| * | | | | Add a new unread_counter to sync responses | Brendan Abolivier | 2020-06-10 | 1 | -0/+1 |
| | |_|/ | |/| | | |||||
* | | | | Refactor getting replication updates from database. (#7636) | Erik Johnston | 2020-06-16 | 2 | -11/+58 |
| | | | | | | | | | | | | The aim here is to make it easier to reason about when streams are limited and when they're not, by moving the logic into the database functions themselves. This should mean we can kill of `db_query_to_update_function` function. | ||||
* | | | | Replace all remaining six usage with native Python 3 equivalents (#7704) | Dagfinn Ilmari Mannsåker | 2020-06-16 | 6 | -22/+13 |
| | | | | |||||
* | | | | Convert the device message and pagination handlers to async/await. (#7678) | Patrick Cloke | 2020-06-16 | 2 | -31/+18 |
| | | | | |||||
* | | | | Ensure etag is a string for GET room_keys/version response (#7691) | Hubert Chathi | 2020-06-15 | 1 | -0/+1 |
| | | | | |||||
* | | | | Fix "There was no active span when trying to log." error (#7698) | Erik Johnston | 2020-06-15 | 1 | -0/+1 |
| |_|/ |/| | | |||||
* | | | Replace iteritems/itervalues/iterkeys with native versions. (#7692) | Patrick Cloke | 2020-06-15 | 13 | -81/+59 |
| | | | |||||
* | | | Fix a typo when comparing the URI & method during UI Auth. (#7689) | Patrick Cloke | 2020-06-12 | 1 | -1/+1 |
| |/ |/| | |||||
* | | Add option to enable encryption by default for new rooms (#7639) | Andrew Morgan | 2020-06-10 | 2 | -29/+57 |
|/ | | | | | | | | | Fixes https://github.com/matrix-org/synapse/issues/2431 Adds config option `encryption_enabled_by_default_for_room_type`, which determines whether encryption should be enabled with the default encryption algorithm in private or public rooms upon creation. Whether the room is private or public is decided based upon the room creation preset that is used. Part of this PR is also pulling out all of the individual instances of `m.megolm.v1.aes-sha2` into a constant variable to eliminate typos ala https://github.com/matrix-org/synapse/pull/7637 Based on #7637 | ||||
* | Convert the registration handler to async/await. (#7649) | Patrick Cloke | 2020-06-08 | 1 | -66/+41 |
| | |||||
* | Convert user directory handler and related classes to async/await. (#7640) | Patrick Cloke | 2020-06-05 | 4 | -107/+73 |
| | |||||
* | Add an option to disable autojoin for guest accounts (#6637) | Travis Ralston | 2020-06-05 | 1 | -1/+7 |
| | | | | Fixes https://github.com/matrix-org/synapse/issues/3177 | ||||
* | Typo fixes. | Patrick Cloke | 2020-06-05 | 1 | -1/+1 |
| | |||||
* | Allow new users to be registered via the admin API even if the monthly ↵ | Dirk Klimpel | 2020-06-05 | 1 | -1/+6 |
| | | | | active user limit has been reached (#7263) | ||||
* | Performance improvements and refactor of Ratelimiter (#7595) | Andrew Morgan | 2020-06-05 | 4 | -56/+38 |
| | | | | | | | | | | While working on https://github.com/matrix-org/synapse/issues/5665 I found myself digging into the `Ratelimiter` class and seeing that it was both: * Rather undocumented, and * causing a *lot* of config checks This PR attempts to refactor and comment the `Ratelimiter` class, as well as encourage config file accesses to only be done at instantiation. Best to be reviewed commit-by-commit. | ||||
* | Cleanups to the OpenID Connect integration (#7628) | Richard van der Hoff | 2020-06-03 | 1 | -7/+20 |
| | | | | docs, default configs, comments. Nothing very significant. | ||||
* | Check if the localpart is reserved for guests earlier in the registration ↵ | Brendan Abolivier | 2020-06-03 | 1 | -9/+9 |
| | | | | | flow (#7625) This is so the user is warned about the username not being valid as soon as possible, rather than only once they've finished UIA. | ||||
* | Fix exceptions when fetching events from a down host. (#7622) | Erik Johnston | 2020-06-03 | 1 | -1/+1 |
| | | | We already caught some exceptions, but not all. | ||||
* | Clean up exception handling in SAML2ResponseResource (#7614) | Richard van der Hoff | 2020-06-03 | 1 | -30/+11 |
| | | | | | | | | | | | | | * Expose `return_html_error`, and allow it to take a Jinja2 template instead of a raw string * Clean up exception handling in SAML2ResponseResource * use the existing code in `return_html_error` instead of re-implementing it (giving it a jinja2 template rather than inventing a new form of template) * do the exception-catching in the REST layer rather than in the handler layer, to make sure we catch all exceptions. | ||||
* | Process cross-signing keys when resyncing device lists (#7594) | Brendan Abolivier | 2020-06-01 | 2 | -18/+62 |
| | | | It looks like `user_device_resync` was ignoring cross-signing keys from the results received from the remote server. This patch fixes this, by processing these keys using the same process `_handle_signing_key_updates` does (and effectively factor that part out of that function). | ||||
* | Convert groups local and server to async/await. (#7600) | Patrick Cloke | 2020-06-01 | 1 | -47/+35 |
| | |||||
* | Don't fail all of an iteration of the device list retry loop on error (#7609) | Brendan Abolivier | 2020-06-01 | 1 | -15/+21 |
| | | | Without this patch, if an error happens which isn't caught by `user_device_resync`, then `_maybe_retry_device_resync` would fail, without retrying the next users in the iteration. This patch fixes this so that it now only logs an error in this case. | ||||
* | Fix 'FederationGroupsRoomsServlet' API when group has room server is not in. ↵ | Erik Johnston | 2020-05-29 | 1 | -8/+12 |
| | | | | (#7599) | ||||
* | allow emails to be passed through SAML (#7385) | Christopher Cooper | 2020-05-27 | 1 | -2/+10 |
| | | | Signed-off-by: Christopher Cooper <cooperc@ocf.berkeley.edu> | ||||
* | Convert identity handler to async/await. (#7561) | Patrick Cloke | 2020-05-26 | 2 | -63/+46 |
| | |||||
* | Optimise some references to hs.config (#7546) | Richard van der Hoff | 2020-05-22 | 1 | -3/+5 |
| | | | These are surprisingly expensive, and we only really need to do them at startup. | ||||
* | Add option to move event persistence off master (#7517) | Erik Johnston | 2020-05-22 | 5 | -19/+61 |
| | |||||
* | Add ability to wait for replication streams (#7542) | Erik Johnston | 2020-05-22 | 5 | -70/+140 |
| | | | | | | | The idea here is that if an instance persists an event via the replication HTTP API it can return before we receive that event over replication, which can lead to races where code assumes that persisting an event immediately updates various caches (e.g. current state of the room). Most of Synapse doesn't hit such races, so we don't do the waiting automagically, instead we do so where necessary to avoid unnecessary delays. We may decide to change our minds here if it turns out there are a lot of subtle races going on. People probably want to look at this commit by commit. | ||||
* | Convert sending mail to async/await. (#7557) | Erik Johnston | 2020-05-22 | 1 | -5/+4 |
| | | | | Mainly because sometimes the email push code raises exceptions where the stack traces have gotten lost, which is hopefully fixed by this. | ||||
* | On upgrade room only send canonical alias once. (#7547) | Erik Johnston | 2020-05-22 | 1 | -55/+60 |
| | | | | | | | | Instead of doing a complicated dance of deleting and moving aliases one by one, which sends a canonical alias update into the old room for each one, lets do it all in one go. This also changes the function to move *all* local alias events to the new room, however that happens later on anyway. | ||||
* | Fix exception reporting due to HTTP request errors. (#7556) | Erik Johnston | 2020-05-22 | 1 | -0/+7 |
| | | | | These are business as usual errors, rather than stuff we want to log at error. | ||||
* | Retry to sync out of sync device lists (#7453) | Brendan Abolivier | 2020-05-21 | 1 | -7/+73 |
| | | | | | | | | | | | When a call to `user_device_resync` fails, we don't currently mark the remote user's device list as out of sync, nor do we retry to sync it. https://github.com/matrix-org/synapse/pull/6776 introduced some code infrastructure to mark device lists as stale/out of sync. This commit uses that code infrastructure to mark device lists as out of sync if processing an incoming device list update makes the device handler realise that the device list is out of sync, but we can't resync right now. It also adds a looping call to retry all failed resync every 30s. This shouldn't cause too much spam in the logs as this commit also removes the "Failed to handle device list update for..." warning logs when catching `NotRetryingDestination`. Fixes #7418 | ||||
* | Hash passwords earlier in the password reset process (#7538) | Patrick Cloke | 2020-05-20 | 1 | -4/+1 |
| | | | | This now matches the logic of the registration process as modified in 56db0b1365965c02ff539193e26c333b7f70d101 / #7523. | ||||
* | Omit displayname or avatar_url if they aren't set instead of returning null ↵ | Aaron Raimist | 2020-05-19 | 1 | -2/+6 |
| | | | | | | | | | (#7497) Per https://github.com/matrix-org/matrix-doc/issues/1436#issuecomment-410089470 they should be omitted instead of returning null or "". They aren't marked as required in the spec. Fixes https://github.com/matrix-org/synapse/issues/7333 Signed-off-by: Aaron Raimist <aaron@raim.ist> | ||||
* | Merge tag 'v1.13.0rc3' into develop | Patrick Cloke | 2020-05-18 | 1 | -7/+2 |
|\ | | | | | | | | | | | | | | | Synapse 1.13.0rc3 (2020-05-18) Bugfixes: - Hash passwords as early as possible during registration. #7523 | ||||
| * | Hash passwords earlier in the registration process (#7523) | Patrick Cloke | 2020-05-18 | 1 | -7/+2 |
| | | |||||
* | | Add type hints to room member handlers (#7513) | Patrick Cloke | 2020-05-15 | 2 | -139/+173 |
| | | |||||
* | | Support UI Authentication for OpenID Connect accounts (#7457) | Patrick Cloke | 2020-05-15 | 2 | -20/+60 |
| | | |||||
* | | Update the room member handler to use async/await. (#7507) | Patrick Cloke | 2020-05-15 | 2 | -74/+58 |
| | | |||||
* | | Ignore incoming presence updates when presence is disabled (#7508) | Andrew Morgan | 2020-05-15 | 1 | -2/+4 |
| | | |||||
* | | Merge tag 'v1.13.0rc2' into develop | Richard van der Hoff | 2020-05-14 | 1 | -19/+18 |
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Synapse 1.13.0rc2 (2020-05-14) ============================== Bugfixes -------- - Fix a long-standing bug which could cause messages not to be sent over federation, when state events with state keys matching user IDs (such as custom user statuses) were received. ([\#7376](https://github.com/matrix-org/synapse/issues/7376)) - Restore compatibility with non-compliant clients during the user interactive authentication process, fixing a problem introduced in v1.13.0rc1. ([\#7483](https://github.com/matrix-org/synapse/issues/7483)) Internal Changes ---------------- - Fix linting errors in new version of Flake8. ([\#7470](https://github.com/matrix-org/synapse/issues/7470)) | ||||
| * | Do not validate that the client dict is stable during UI Auth. (#7483) | Patrick Cloke | 2020-05-13 | 1 | -19/+18 |
| | | | | | | | | This backs out some of the validation for the client dictionary and logs if this changes during a user interactive authentication session instead. | ||||
* | | Allow censoring of events to happen on workers. (#7492) | Erik Johnston | 2020-05-13 | 1 | -2/+0 |
| | | | | | | This is safe as we can now write to cache invalidation stream on workers, and is required for when we move event persistence off master. | ||||
* | | Convert federation handler to async/await. (#7459) | Patrick Cloke | 2020-05-11 | 2 | -21/+16 |
| | | |||||
* | | Convert search code to async/await. (#7460) | Patrick Cloke | 2020-05-11 | 1 | -24/+20 |
| | | |||||
* | | Merge branch 'release-v1.13.0' into develop | Andrew Morgan | 2020-05-11 | 1 | -14/+40 |
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * release-v1.13.0: Don't UPGRADE database rows RST indenting Put rollback instructions in upgrade notes Fix changelog typo Oh yeah, RST Absolute URL it is then Fix upgrade notes link Provide summary of upgrade issues in changelog. Fix ) Move next version notes from changelog to upgrade notes Changelog fixes 1.13.0rc1 Documentation on setting up redis (#7446) Rework UI Auth session validation for registration (#7455) Fix errors from malformed log line (#7454) Drop support for redis.dbid (#7450) | ||||
| * | Rework UI Auth session validation for registration (#7455) | Patrick Cloke | 2020-05-08 | 1 | -14/+40 |
| | | | | | | | | Be less strict about validation of UI authentication sessions during registration to match client expecations. | ||||
* | | Implement OpenID Connect-based login (#7256) | Quentin Gliech | 2020-05-08 | 2 | -2/+1000 |
| | | |||||
* | | Merge branch 'release-v1.13.0' into develop | Brendan Abolivier | 2020-05-07 | 1 | -1/+3 |
|\| | |||||
| * | Add a configuration setting for the dummy event threshold (#7422) | Brendan Abolivier | 2020-05-07 | 1 | -1/+3 |
| | | | | | | Add dummy_events_threshold which allows configuring the number of forward extremities a room needs for Synapse to send forward extremities in it. | ||||
* | | Add more type hints to SAML handler. (#7445) | Patrick Cloke | 2020-05-07 | 1 | -12/+16 |
| | | |||||
* | | Merge branch 'release-v1.13.0' into develop | Richard van der Hoff | 2020-05-06 | 1 | -4/+8 |
|\| | |||||
| * | Merge branch 'release-v1.13.0' into erikj/faster_device_lists_fetch | Richard van der Hoff | 2020-05-05 | 9 | -281/+250 |
| |\ | |||||
| * | | Speed up fetching device lists changes in sync. | Erik Johnston | 2020-05-05 | 1 | -4/+8 |
| | | | | | | | | | | | | | | | Currently we copy `users_who_share_room` needlessly about three times, which is expensive when the set is large (which it can easily be). | ||||
* | | | Convert the room handler to async/await. (#7396) | Patrick Cloke | 2020-05-04 | 1 | -24/+18 |
| |/ |/| | |||||
* | | async/await is_server_admin (#7363) | Andrew Morgan | 2020-05-01 | 9 | -281/+250 |
|/ | |||||
* | Persist user interactive authentication sessions (#7302) | Patrick Cloke | 2020-04-30 | 3 | -116/+63 |
| | | | | | By persisting the user interactive authentication sessions to the database, this fixes situations where a user hits different works throughout their auth session and also allows sessions to persist through restarts of Synapse. | ||||
* | Apply federation check for /publicRooms with filter list (#7367) | Andrew Morgan | 2020-04-30 | 1 | -1/+5 |
| | |||||
* | Convert some of the federation handler methods to async/await. (#7338) | Patrick Cloke | 2020-04-24 | 1 | -25/+24 |
| | |||||
* | Stop the master relaying USER_SYNC for other workers (#7318) | Richard van der Hoff | 2020-04-22 | 3 | -105/+135 |
| | | | | | | | Long story short: if we're handling presence on the current worker, we shouldn't be sending USER_SYNC commands over replication. In an attempt to figure out what is going on here, I ended up refactoring some bits of the presencehandler code, so the first 4 commits here are non-functional refactors to move this code slightly closer to sanity. (There's still plenty to do here :/). Suggest reviewing individual commits. Fixes (I hope) #7257. | ||||
* | Merge branch 'release-v1.12.4' into develop | Richard van der Hoff | 2020-04-22 | 1 | -9/+139 |
|\ | |||||
| * | Query missing cross-signing keys on local sig upload (#7289) | Andrew Morgan | 2020-04-22 | 1 | -9/+139 |
| | | |||||
* | | import urllib.parse when using urllib.parse.quote (#7319) | Andrew Morgan | 2020-04-22 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'release-v1.12.4' into develop | Richard van der Hoff | 2020-04-20 | 1 | -129/+9 |
|\| | |||||
| * | Revert "Query missing cross-signing keys on local sig upload" | Richard van der Hoff | 2020-04-20 | 1 | -129/+9 |
| | | | | | | | | | | | | This was incorrectly merged to the release branch before it was ready. This reverts commit 72fe2affb6ac86d433b80b6452da57052365aa26. | ||||
* | | Merge branch 'release-v1.12.4' into develop | Richard van der Hoff | 2020-04-20 | 1 | -9/+129 |
|\| | |||||
| * | Always send the user updates to their own device list (#7160) | David Baker | 2020-04-20 | 2 | -3/+18 |
| | | |||||
| * | Query missing cross-signing keys on local sig upload | Andrew Morgan | 2020-04-17 | 1 | -9/+129 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add changelog Save retrieved keys to the db lint Fix and de-brittle remote result dict processing Use query_user_devices instead, assume only master, self_signing key types Make changelog more useful Remove very specific exception handling Wrap get_verify_key_from_cross_signing_key in a try/except Note that _get_e2e_cross_signing_verify_key can raise a SynapseError lint Add comment explaining why this is useful Only fetch master and self_signing key types Fix log statements, docstrings Remove extraneous items from remote query try/except lint Factor key retrieval out into a separate function Send device updates, modeled after SigningKeyEduUpdater._handle_signing_key_updates Update method docstring | ||||
| * | Only register devices edu handler on the master process (#7255) | Andrew Morgan | 2020-04-14 | 1 | -7/+11 |
| | | |||||
* | | Reject unknown UI auth sessions (instead of silently generating a new one) ↵ | Patrick Cloke | 2020-04-20 | 1 | -65/+94 |
| | | | | | | | | (#7268) | ||||
* | | Use a template for the SSO success page to allow for customization. (#7279) | Patrick Cloke | 2020-04-17 | 1 | -32/+12 |
| | | |||||
* | | Convert auth handler to async/await (#7261) | Patrick Cloke | 2020-04-15 | 4 | -111/+115 |
| | | |||||
* | | Only register devices edu handler on the master process (#7255) | Andrew Morgan | 2020-04-14 | 1 | -7/+11 |
| | | |||||
* | | Check on room creation if the user is allowed to publish the room to the ↵ | PeerD | 2020-04-13 | 1 | -0/+7 |
| | | | | | | | | room directory. (#7260) | ||||
* | | typos | Matthew Hodgson | 2020-04-11 | 1 | -1/+1 |
| | | |||||
* | | Default PL100 to enable encryption in a room (#7230) | Andrew Morgan | 2020-04-09 | 1 | -0/+1 |
| | | |||||
* | | Do not allow a deactivated user to login via SSO. (#7240) | Patrick Cloke | 2020-04-09 | 3 | -6/+32 |
| | | |||||
* | | Improve error responses when a remote server doesn't allow you to access its ↵ | Andrew Morgan | 2020-04-06 | 1 | -11/+12 |
| | | | | | | | | public rooms list (#6899) | ||||
* | | Support CAS in UI Auth flows. (#7186) | Patrick Cloke | 2020-04-03 | 2 | -74/+91 |
| | | |||||
* | | Support SAML in the user interactive authentication workflow. (#7102) | Patrick Cloke | 2020-04-01 | 2 | -14/+153 |
| | | |||||
* | | Allow admins to create aliases when they are not in the room (#7191) | Patrick Cloke | 2020-04-01 | 1 | -1/+5 |
| | | |||||
* | | Rewrite prune_old_outbound_device_pokes for efficiency (#7159) | Richard van der Hoff | 2020-03-30 | 1 | -23/+2 |
| | | | | | | | | make sure we clear out all but one update for the user | ||||
* | | Transfer alias mappings when joining an upgraded room (#6946) | Andrew Morgan | 2020-03-30 | 1 | -0/+3 |
| | | |||||
* | | Merge pull request #7160 from ↵ | David Baker | 2020-03-30 | 2 | -3/+18 |
|\ \ | | | | | | | | | | | | | matrix-org/dbkr/always_send_own_device_list_updates Always send the user updates to their own device list | ||||
| * | | Add explanatory comment | Andrew Morgan | 2020-03-30 | 2 | -1/+4 |
| | | | |||||
| * | | black | David Baker | 2020-03-30 | 1 | -1/+3 |
| | | | |||||
| * | | Just add own user ID to the list we track device changes for | David Baker | 2020-03-30 | 2 | -7/+11 |
| | | | |||||
| * | | Fix undefined variable & remove debug logging | David Baker | 2020-03-27 | 1 | -10/+2 |
| | | | |||||
| * | | black | David Baker | 2020-03-27 | 1 | -4/+4 |
| | | | |||||
| * | | Always send the user updates to their own device list | David Baker | 2020-03-27 | 2 | -6/+20 |
| | | | | | | | | | | | | | | | This will allow clients to notify users about new devices even if the user isn't in any rooms (yet). | ||||
* | | | Add options to prevent users from changing their profile. (#7096) | Dirk Klimpel | 2020-03-27 | 1 | -0/+16 |
|/ / | |||||
* | | Merge pull request #7151 from matrix-org/jaywink/saml-redirect-fix | Jason Robinson | 2020-03-26 | 1 | -0/+4 |
|\ \ | | | | | | | Allow RedirectResponse in SAML response handler | ||||
| * | | Allow RedirectResponse in SAML response handler | Jason Robinson | 2020-03-26 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | Allow custom SAML handlers to redirect after processing an auth response. Fixes #7149 Signed-off-by: Jason Robinson <jasonr@matrix.org> | ||||
* | | | Refactor the CAS code (move the logic out of the REST layer to a handler) ↵ | Patrick Cloke | 2020-03-26 | 1 | -0/+204 |
| | | | | | | | | | | | | (#7136) | ||||
* | | | Allow server admins to define and enforce a password policy (MSC2000). (#7118) | Dirk Klimpel | 2020-03-26 | 2 | -0/+95 |
|/ / | |||||
* | | Validate that the session is not modified during UI-Auth (#7068) | Patrick Cloke | 2020-03-26 | 1 | -4/+33 |
| | | |||||
* | | Clean up some LoggingContext stuff (#7120) | Richard van der Hoff | 2020-03-24 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Pull Sentinel out of LoggingContext ... and drop a few unnecessary references to it * Factor out LoggingContext.current_context move `current_context` and `set_context` out to top-level functions. Mostly this means that I can more easily trace what's actually referring to LoggingContext, but I think it's generally neater. * move copy-to-parent into `stop` this really just makes `start` and `stop` more symetric. It also means that it behaves correctly if you manually `set_log_context` rather than using the context manager. * Replace `LoggingContext.alive` with `finished` Turn `alive` into `finished` and make it a bit better defined. | ||||
* | | Use the proper error code when a canonical alias that does not exist is ↵ | Patrick Cloke | 2020-03-23 | 1 | -19/+38 |
| | | | | | | | | used. (#7109) | ||||
* | | Remove concept of a non-limited stream. (#7011) | Erik Johnston | 2020-03-20 | 2 | -4/+11 |
|/ | |||||
* | Add an option to the set password API to choose whether to logout other ↵ | Patrick Cloke | 2020-03-18 | 1 | -16/+25 |
| | | | | devices. (#7085) | ||||
* | Remove special casing of `m.room.aliases` events (#7034) | Patrick Cloke | 2020-03-17 | 1 | -15/+1 |
| | |||||
* | Revert "Add options to disable setting profile info for prevent changes. ↵ | Richard van der Hoff | 2020-03-17 | 1 | -16/+0 |
| | | | | | | | (#7053)" This reverts commit 54dd28621b070ca67de9f773fe9a89e1f4dc19da, reversing changes made to 6640460d054e8f4444046a34bdf638921b31c01e. | ||||
* | Fix buggy condition in account validity handler (#7074) | Brendan Abolivier | 2020-03-16 | 1 | -1/+5 |
| | |||||
* | Add type annotations and comments to auth handler (#7063) | Patrick Cloke | 2020-03-12 | 1 | -89/+104 |
| | |||||
* | Don't filter out dummy events when we're checking the visibility of state | Brendan Abolivier | 2020-03-11 | 1 | -1/+1 |
| | |||||
* | Add options to disable setting profile info for prevent changes. (#7053) | Brendan Abolivier | 2020-03-10 | 1 | -0/+16 |
|\ | |||||
| * | lint, fix tests | dklimpel | 2020-03-09 | 1 | -1/+3 |
| | | |||||
| * | updates after review | dklimpel | 2020-03-09 | 1 | -4/+4 |
| | | |||||
| * | lint | dklimpel | 2020-03-08 | 1 | -4/+2 |
| | | |||||
| * | changelog | dklimpel | 2020-03-08 | 1 | -2/+8 |
| | | |||||
| * | Add options to disable setting profile info for prevent changes. | dklimpel | 2020-03-08 | 1 | -0/+10 |
| | | |||||
* | | SAML2: render a comprehensible error page if something goes wrong | Brendan Abolivier | 2020-03-10 | 1 | -1/+19 |
| | | | | | | | | | | | | If an error happened while processing a SAML AuthN response, or a client ends up doing a `GET` request to `/authn_response`, then render a customisable error page rather than a confusing error. | ||||
* | | Lint | Brendan Abolivier | 2020-03-06 | 1 | -2/+1 |
| | | |||||
* | | Mention the session ID in the error message | Brendan Abolivier | 2020-03-06 | 1 | -2/+3 |
| | | |||||
* | | Lint | Brendan Abolivier | 2020-03-06 | 1 | -1/+2 |
| | | |||||
* | | Make sure that is_verified is a boolean when processing room keys | Brendan Abolivier | 2020-03-06 | 1 | -0/+6 |
| | | |||||
* | | Allow deleting an alias if the user has sufficient power level (#6986) | Patrick Cloke | 2020-03-04 | 1 | -33/+74 |
| | | |||||
* | | Merge branch 'master' into develop | Brendan Abolivier | 2020-03-03 | 2 | -3/+76 |
|\ \ | |||||
| * | | Fix wrong handler being used in SAML handler | Brendan Abolivier | 2020-03-03 | 1 | -3/+2 |
| | | | |||||
| * | | Factor out complete_sso_login and expose it to the Module API | Brendan Abolivier | 2020-03-03 | 1 | -0/+74 |
| | | | |||||
* | | | Validate the alt_aliases property of canonical alias events (#6971) | Patrick Cloke | 2020-03-03 | 2 | -10/+51 |
| |/ |/| | |||||
* | | Store room version on invite (#6983) | Richard van der Hoff | 2020-02-26 | 1 | -0/+12 |
| | | | | | | | | | | When we get an invite over federation, store the room version in the rooms table. The general idea here is that, when we pull the invite out again, we'll want to know what room_version it belongs to (so that we can later redact it if need be). So we need to store it somewhere... | ||||
* | | Port PresenceHandler to async/await (#6991) | Erik Johnston | 2020-02-26 | 2 | -108/+89 |
| | | |||||
* | | Remove redundant store_room call (#6979) | Richard van der Hoff | 2020-02-24 | 1 | -23/+0 |
| | | | | | | | | | | `_process_received_pdu` is only called by `on_receive_pdu`, which ignores any events for unknown rooms, so this is redundant. | ||||
* | | Upsert room version when we join over federation (#6968) | Richard van der Hoff | 2020-02-24 | 1 | -10/+12 |
| | | | | | | | | | | | | | | | | This is intended as a precursor to storing room versions when we receive an invite over federation, but has the happy side-effect of fixing #3374 at last. In short: change the store_room with try/except to a proper upsert which updates the right columns. | ||||
* | | Change displayname of user as admin in rooms (#6876) | Dirk Klimpel | 2020-02-21 | 1 | -1/+11 |
| | | |||||
* | | Stop returning aliases as part of the room list. (#6970) | Patrick Cloke | 2020-02-21 | 1 | -9/+0 |
| | | |||||
* | | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) | Patrick Cloke | 2020-02-21 | 9 | -35/+33 |
| | | | | | | | | Ensure good comprehension hygiene using flake8-comprehensions. | ||||
* | | Merge branch 'master' into develop | Richard van der Hoff | 2020-02-21 | 1 | -5/+5 |
|\| | |||||
| * | Small grammar fixes to the ACME v1 deprecation notice (#6944) | Andrew Morgan | 2020-02-21 | 1 | -5/+5 |
| | | | | | | Some small fixes to the copy in #6907. | ||||
* | | Do not send alias events when creating / upgrading a room (#6941) | Patrick Cloke | 2020-02-20 | 2 | -40/+15 |
|/ | | | Stop emitting room alias update events during room creation/upgrade. | ||||
* | Merge pull request #6949 from matrix-org/rav/list_room_aliases_peekable | Richard van der Hoff | 2020-02-19 | 5 | -33/+22 |
|\ | | | | | Make room alias lists peekable | ||||
| * | Make room alias lists peekable | Richard van der Hoff | 2020-02-19 | 1 | -1/+3 |
| | | | | | | | | | | | | As per https://github.com/matrix-org/matrix-doc/pull/2432#pullrequestreview-360566830, make room alias lists accessible to users outside world_readable rooms. | ||||
| * | Add `allow_departed_users` param to `check_in_room_or_world_readable` | Richard van der Hoff | 2020-02-19 | 3 | -6/+14 |
| | | | | | | | | | | | | | | ... and set it everywhere it's called. while we're here, rename it for consistency with `check_user_in_room` (and to help check that I haven't missed any instances) | ||||
| * | Refactor the membership check methods in Auth | Richard van der Hoff | 2020-02-18 | 2 | -28/+7 |
| | | | | | | | | | | these were getting a bit unwieldy, so let's combine `check_joined_room` and `check_user_was_in_room` into a single `check_user_in_room`. | ||||
* | | Merge pull request #6945 from matrix-org/babolivier/fix-retention-debug-log | Brendan Abolivier | 2020-02-19 | 1 | -1/+1 |
|\ \ | |/ |/| | Fix log in message retention purge jobs | ||||
| * | Fix log in message retention purge jobs | Brendan Abolivier | 2020-02-18 | 1 | -1/+1 |
| | | |||||
* | | Implement GET /_matrix/client/r0/rooms/{roomId}/aliases (#6939) | Richard van der Hoff | 2020-02-18 | 1 | -1/+16 |
| | | | | | | | | | | per matrix-org/matrix-doc#2432 | ||||
* | | Merge pull request #6907 from matrix-org/babolivier/acme-config | Brendan Abolivier | 2020-02-18 | 1 | -1/+15 |
|\ \ | |/ |/| | Add mention and warning about ACME v1 deprecation to the TLS config | ||||
| * | Make the log more noticeable | Brendan Abolivier | 2020-02-18 | 1 | -1/+2 |
| | | |||||
| * | Print the error as an error log and raise the same exception we got | Brendan Abolivier | 2020-02-18 | 1 | -9/+10 |
| | | |||||
| * | Lint | Brendan Abolivier | 2020-02-13 | 1 | -6/+7 |
| | | |||||
| * | Lint | Brendan Abolivier | 2020-02-13 | 1 | -7/+6 |
| | | |||||
| * | Add a comprehensive error when failing to register for an ACME account | Brendan Abolivier | 2020-02-13 | 1 | -1/+13 |
| | | |||||
* | | Stop sending events when creating or deleting aliases (#6904) | Patrick Cloke | 2020-02-18 | 2 | -40/+41 |
| | | | | | | Stop sending events when creating or deleting associations (room aliases). Send an updated canonical alias event if one of the alt_aliases is deleted. | ||||
* | | Raise the default power levels for invites, tombstones and server acls (#6834) | Andrew Morgan | 2020-02-17 | 1 | -1/+9 |
| | | |||||
* | | Filter the results of user directory searching via the spam checker (#6888) | Patrick Cloke | 2020-02-14 | 1 | -2/+12 |
|/ | | | Add a method to the spam checker to filter the user directory results. | ||||
* | Merge branch 'release-v1.10.0' into develop | Richard van der Hoff | 2020-02-11 | 1 | -0/+1 |
|\ | |||||
| * | filter out m.room.aliases from /sync state blocks (#6884) | Matthew Hodgson | 2020-02-10 | 1 | -0/+1 |
| | | | | | | We forgot to filter out aliases from /sync state blocks as well as the timeline. | ||||
* | | Reject device display names that are too long (#6882) | Patrick Cloke | 2020-02-10 | 1 | -1/+13 |
| | | | | | | | | | | | | | | | | * Reject device display names that are too long. Too long is currently defined as 100 characters in length. * Add a regression test for rejecting a too long device display name. | ||||
* | | Add support for putting fed user query API on workers (#6873) | Erik Johnston | 2020-02-07 | 1 | -19/+16 |
| | | |||||
* | | Allow moving group read APIs to workers (#6866) | Erik Johnston | 2020-02-07 | 1 | -131/+139 |
| | | |||||
* | | Admin api to add an email address (#6789) | Dirk Klimpel | 2020-02-07 | 2 | -0/+10 |
| | | |||||
* | | Limit the number of events that can be requested when backfilling events (#6864) | Patrick Cloke | 2020-02-06 | 1 | -0/+4 |
| | | | | | | Limit the maximum number of events requested when backfilling events. | ||||
* | | pass room version into FederationClient.send_join (#6854) | Richard van der Hoff | 2020-02-06 | 1 | -2/+1 |
| | | | | | | | | ... which allows us to sanity-check the create event. | ||||
* | | Third party event rules Update (#6781) | PeerD | 2020-02-06 | 1 | -1/+5 |
| | | |||||
* | | Reduce amount of logging at INFO level. (#6862) | Erik Johnston | 2020-02-06 | 4 | -11/+11 |
| | | | | | | | | | | | | | | | | A lot of the things we log at INFO are now a bit superfluous, so lets make them DEBUG logs to reduce the amount we log by default. Co-Authored-By: Brendan Abolivier <babolivier@matrix.org> Co-authored-by: Brendan Abolivier <github@brendanabolivier.com> | ||||
* | | Merge pull request #6823 from matrix-org/rav/redact_changes/5 | Richard van der Hoff | 2020-02-06 | 1 | -6/+2 |
|\ \ | | | | | | | pass room versions around | ||||
| * | | Pass room version object into `FederationClient.get_pdu` | Richard van der Hoff | 2020-02-05 | 1 | -6/+2 |
| | | | |||||
* | | | Merge tag 'v1.10.0rc2' into develop | Erik Johnston | 2020-02-06 | 4 | -17/+69 |
|\ \ \ | |/ / |/| / | |/ | | | | | | | | | | | | | | | | | | | | | | | | | Synapse 1.10.0rc2 (2020-02-06) ============================== Bugfixes -------- - Fix an issue with cross-signing where device signatures were not sent to remote servers. ([\#6844](https://github.com/matrix-org/synapse/issues/6844)) - Fix to the unknown remote device detection which was introduced in 1.10.rc1. ([\#6848](https://github.com/matrix-org/synapse/issues/6848)) Internal Changes ---------------- - Detect unexpected sender keys on remote encrypted events and resync device lists. ([\#6850](https://github.com/matrix-org/synapse/issues/6850)) | ||||
| * | Check sender_key matches on inbound encrypted events. (#6850) | Erik Johnston | 2020-02-05 | 2 | -14/+66 |
| | | | | | | If they don't then the device lists are probably out of sync. | ||||
| * | Fix detecting unknown devices from remote encrypted events. (#6848) | Erik Johnston | 2020-02-04 | 3 | -3/+3 |
| | | | | | | | | | | | | | | | | We were looking at the wrong event type (`m.room.encryption` vs `m.room.encrypted`). Also fixup the duplicate `EvenTypes` entries. Introduced in #6776. | ||||
* | | Merge pull request #6837 from matrix-org/rav/federation_async | Richard van der Hoff | 2020-02-04 | 3 | -235/+211 |
|\ \ | | | | | | | Port much of `synapse.handlers.federation` to async/await. | ||||
| * | | make FederationHandler.send_invite async | Richard van der Hoff | 2020-02-03 | 2 | -6/+4 |
| | | | |||||
| * | | make FederationHandler.on_get_missing_events async | Richard van der Hoff | 2020-02-03 | 1 | -5/+4 |
| | | | |||||
| * | | make FederationHandler.user_joined_room async | Richard van der Hoff | 2020-02-03 | 1 | -3/+3 |
| | | | |||||
| * | | make FederationHandler._clean_room_for_join async | Richard van der Hoff | 2020-02-03 | 1 | -4/+4 |
| | | | |||||
| * | | make FederationHandler._notify_persisted_event async | Richard van der Hoff | 2020-02-03 | 1 | -4/+6 |
| | | | |||||
| * | | make FederationHandler.persist_events_and_notify async | Richard van der Hoff | 2020-02-03 | 1 | -10/+10 |
| | | | |||||
| * | | make FederationHandler._make_and_verify_event async | Richard van der Hoff | 2020-02-03 | 1 | -5/+10 |
| | | | |||||
| * | | make FederationHandler.do_remotely_reject_invite async | Richard van der Hoff | 2020-02-03 | 2 | -8/+11 |
| | | | |||||
| * | | make FederationHandler._check_for_soft_fail async | Richard van der Hoff | 2020-02-03 | 1 | -13/+9 |
| | | | |||||
| * | | make FederationHandler._persist_auth_tree async | Richard van der Hoff | 2020-02-03 | 1 | -11/+7 |
| | | | |||||
| * | | make FederationHandler.do_invite_join async | Richard van der Hoff | 2020-02-03 | 2 | -18/+18 |
| | | | |||||
| * | | make FederationHandler.on_event_auth async | Richard van der Hoff | 2020-02-03 | 1 | -5/+4 |
| | | | |||||
| * | | make FederationHandler.on_exchange_third_party_invite_request async | Richard van der Hoff | 2020-02-03 | 1 | -14/+12 |
| | | | |||||
| * | | make FederationHandler.construct_auth_difference async | Richard van der Hoff | 2020-02-03 | 1 | -3/+4 |
| | | | |||||
| * | | make FederationHandler._update_context_for_auth_events async | Richard van der Hoff | 2020-02-03 | 1 | -10/+10 |
| | | | |||||
| * | | make FederationHandler._update_auth_events_and_context_for_auth async | Richard van der Hoff | 2020-02-03 | 1 | -20/+21 |
| | | | |||||
| * | | make FederationHandler.do_auth async | Richard van der Hoff | 2020-02-03 | 1 | -10/+14 |
| | | | |||||
| * | | make FederationHandler._prep_event async | Richard van der Hoff | 2020-02-03 | 1 | -23/+10 |
| | | | |||||
| * | | make FederationHandler._handle_new_event async | Richard van der Hoff | 2020-02-03 | 1 | -6/+7 |
| | | | |||||
| * | | make FederationHandler._handle_new_events async | Richard van der Hoff | 2020-02-03 | 1 | -8/+6 |
| | | | |||||
| * | | make FederationHandler.on_make_leave_request async | Richard van der Hoff | 2020-02-03 | 1 | -13/+10 |
| | | | |||||
| * | | make FederationHandler.on_send_leave_request async | Richard van der Hoff | 2020-02-03 | 1 | -5/+3 |
| | | | |||||
| * | | make FederationHandler.on_make_join_request async | Richard van der Hoff | 2020-02-03 | 1 | -13/+10 |
| | | | |||||
| * | | make FederationHandler.on_invite_request async | Richard van der Hoff | 2020-02-03 | 1 | -5/+4 |
| | | | |||||
| * | | make FederationHandler.on_send_join_request async | Richard van der Hoff | 2020-02-03 | 1 | -9/+7 |
| | | | |||||
| * | | make FederationHandler.on_query_auth async | Richard van der Hoff | 2020-02-03 | 1 | -7/+6 |
| |/ | |||||
* / | Add typing to SyncHandler (#6821) | Erik Johnston | 2020-02-03 | 1 | -341/+364 |
|/ | | | | Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | ||||
* | pass room_version into compute_event_signature (#6807) | Richard van der Hoff | 2020-01-31 | 1 | -1/+4 |
| | |||||
* | Merge pull request #6820 from matrix-org/rav/get_room_version_id | Richard van der Hoff | 2020-01-31 | 4 | -14/+16 |
|\ | | | | | Make `get_room_version` return a RoomVersion object | ||||
| * | s/get_room_version/get_room_version_id/ | Richard van der Hoff | 2020-01-31 | 4 | -14/+16 |
| | | | | | | | | | | ... to make way for a forthcoming get_room_version which returns a RoomVersion object. | ||||
* | | Fix bug with getting missing auth event during join 500'ed (#6810) | Erik Johnston | 2020-01-31 | 1 | -1/+5 |
|/ | |||||
* | pass room version into FederationHandler.on_invite_request (#6805) | Richard van der Hoff | 2020-01-30 | 1 | -3/+3 |
| | |||||
* | Resync remote device list when detected as stale. (#6786) | Erik Johnston | 2020-01-30 | 2 | -4/+24 |
| | |||||
* | Make /directory/room/<alias> handle restrictive power levels | Richard van der Hoff | 2020-01-29 | 1 | -1/+6 |
| | | | | | Fixes a bug where the alias would be added, but `PUT /directory/room/<alias>` would return a 403. | ||||
* | Set the PL for aliases events to 0. | Richard van der Hoff | 2020-01-29 | 1 | -2/+15 |
| | |||||
* | Factor out a `copy_power_levels_contents` method | Richard van der Hoff | 2020-01-29 | 1 | -12/+11 |
| | | | | I'm going to need another copy (hah!) of this. | ||||
* | Fix bug when querying remote user keys that require a resync. (#6796) | Erik Johnston | 2020-01-29 | 1 | -1/+2 |
| | | | | We ended up only returning a single device, rather than all of them. | ||||
* | Detect unknown remote devices and mark cache as stale (#6776) | Erik Johnston | 2020-01-28 | 2 | -2/+75 |
| | | | | We just mark the fact that the cache may be stale in the database for now. | ||||
* | Pass room version object into event_auth.check and check_redaction (#6788) | Richard van der Hoff | 2020-01-28 | 2 | -9/+17 |
| | | | | | | | These are easier to work with than the strings and we normally have one around. This fixes `FederationHander._persist_auth_tree` which was passing a RoomVersion object into event_auth.check instead of a string. | ||||
* | Add `rooms.room_version` column (#6729) | Erik Johnston | 2020-01-27 | 2 | -35/+82 |
| | | | This is so that we don't have to rely on pulling it out from `current_state_events` table. | ||||
* | Validate client_secret parameter (#6767) | Andrew Morgan | 2020-01-24 | 1 | -1/+3 |
| | |||||
* | Remove unnecessary abstractions in admin handler (#6751) | Andrew Morgan | 2020-01-22 | 1 | -62/+0 |
| | |||||
* | Add more logging around message retention policies support (#6717) | Brendan Abolivier | 2020-01-17 | 1 | -0/+13 |
| | | | So we can debug issues like #6683 more easily | ||||
* | Merge pull request #6714 from matrix-org/babolivier/retention_select_event | Brendan Abolivier | 2020-01-17 | 1 | -1/+1 |
|\ | | | | | Fix instantiation of message retention purge jobs | ||||
| * | Fix instantiation of message retention purge jobs | Brendan Abolivier | 2020-01-15 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When figuring out which topological token to start a purge job at, we need to do the following: 1. Figure out a timestamp before which events will be purged 2. Select the first stream ordering after that timestamp 3. Select info about the first event after that stream ordering 4. Build a topological token from that info In some situations (e.g. quiet rooms with a short max_lifetime), there might not be an event after the stream ordering at step 3, therefore we abort the purge with the error `No event found`. To mitigate that, this patch fetches the first event _before_ the stream ordering, instead of after. | ||||
* | | Merge pull request #6724 from matrix-org/rav/log_saml_attributes | Richard van der Hoff | 2020-01-17 | 1 | -1/+12 |
|\ \ | | | | | | | Log saml assertions rather than the whole response | ||||
| * | | Log saml assertions rather than the whole response | Richard van der Hoff | 2020-01-16 | 1 | -1/+12 |
| | | | | | | | | | | | | | | | | | | ... since the whole response is huge. We even need to break up the assertions, since kibana otherwise truncates them. | ||||
* | | | Delegate remote_user_id mapping to the saml mapping provider (#6723) | Richard van der Hoff | 2020-01-17 | 1 | -6/+21 |
|/ / | | | | | Turns out that figuring out a remote user id for the SAML user isn't quite as obvious as it seems. Factor it out to the SamlMappingProvider so that it's easy to control. | ||||
* | | Add StateMap type alias (#6715) | Erik Johnston | 2020-01-16 | 3 | -28/+31 |
| | | |||||
* | | Port synapse.replication.tcp to async/await (#6666) | Erik Johnston | 2020-01-16 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | * Port synapse.replication.tcp to async/await * Newsfile * Correctly document type of on_<FOO> functions as async * Don't be overenthusiastic with the asyncing.... |