summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* Detect unknown remote devices and mark cache as stale (#6776)Andrew Morgan2020-03-236-8/+126
|\ | | | | | | | | * commit 'e17a11066': Detect unknown remote devices and mark cache as stale (#6776)
| * Detect unknown remote devices and mark cache as stale (#6776)Erik Johnston2020-01-286-8/+126
| | | | | | | | 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)Andrew Morgan2020-03-238-34/+53
|\| | | | | | | | | * commit 'a8ce7aeb4': Pass room version object into event_auth.check and check_redaction (#6788)
| * Pass room version object into event_auth.check and check_redaction (#6788)Richard van der Hoff2020-01-288-34/+53
| | | | | | | | | | | | | | 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.
* | Warn if postgres database has non-C locale. (#6734)Andrew Morgan2020-03-236-1/+81
|\| | | | | | | | | * commit '02b44db92': Warn if postgres database has non-C locale. (#6734)
| * Warn if postgres database has non-C locale. (#6734)Erik Johnston2020-01-286-1/+81
| | | | | | As using non-C locale can cause issues on upgrading OS.
| * Merge branch 'master' into developErik Johnston2020-01-284-2/+23
| |\
* | \ 1.9.1Andrew Morgan2020-03-234-2/+16
|\ \ \ | | |/ | |/| | | | | | | * commit '77d935722': 1.9.1
| * | 1.9.1 v1.9.1 github/release-v1.9.1 release-v1.9.1Erik Johnston2020-01-284-2/+16
| | |
* | | Fix setting `mau_limit_reserved_threepids` config (#6793)Andrew Morgan2020-03-232-1/+8
|\| | | | | | | | | | | | | | * commit 'bdbeeb94e': Fix setting `mau_limit_reserved_threepids` config (#6793)
| * | Fix setting `mau_limit_reserved_threepids` config (#6793)Erik Johnston2020-01-282-1/+8
| | | | | | | | | | | | | | | Calling the invalidation function during initialisation of the data stores introduces a circular dependency, causing Synapse to fail to start.
* | | Add `rooms.room_version` column (#6729)Andrew Morgan2020-03-2311-73/+270
|\ \ \ | | |/ | |/| | | | | | | * commit '8df862e45': Add `rooms.room_version` column (#6729)
| * | Add `rooms.room_version` column (#6729)Erik Johnston2020-01-2711-73/+270
| | | | | | | | | This is so that we don't have to rely on pulling it out from `current_state_events` table.
* | | Propagate cache invalidates from workers to other workers. (#6748)Andrew Morgan2020-03-234-5/+29
|\| | | | | | | | | | | | | | * commit 'd5275fc55': Propagate cache invalidates from workers to other workers. (#6748)
| * | Propagate cache invalidates from workers to other workers. (#6748)Erik Johnston2020-01-274-5/+29
| | | | | | | | | Currently if a worker invalidates a cache it will be streamed to master, which then didn't forward those to other workers.
* | | Merge pull request #6775 from matrix-org/jaywink/worker-docs-tweaksAndrew Morgan2020-03-232-0/+18
|\| | | | | | | | | | | | | | | | | | | | * commit 'f74d178b1': Formatting of changelog Fix federation_reader listeners doc as per PR review Clarifications to the workers documentation
| * | Merge pull request #6775 from matrix-org/jaywink/worker-docs-tweaksBrendan Abolivier2020-01-272-0/+18
| |\ \ | | | | | | | | Clarifications to the workers documentation
| | * | Formatting of changelogJason Robinson2020-01-271-1/+1
| | | | | | | | | | | | Co-Authored-By: Brendan Abolivier <babolivier@matrix.org>
| | * | Fix federation_reader listeners doc as per PR reviewJason Robinson2020-01-271-2/+12
| | | | | | | | | | | | | | | | Signed-off-by: Jason Robinson <jasonr@matrix.org>
| | * | Clarifications to the workers documentationJason Robinson2020-01-242-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add note that user_dir requires disabling user dir updates from the main synapse process. * Add note that federation_reader should have the federation listener resource. Signed-off-by: Jason Robinson <jasonr@matrix.org>
* | | | Validate client_secret parameter (#6767)Andrew Morgan2020-03-236-10/+76
|\| | | | | | | | | | | | | | | | | | | * commit '9f7aaf90b': Validate client_secret parameter (#6767)
| * | | Validate client_secret parameter (#6767)Andrew Morgan2020-01-246-6/+93
| |/ /
* | | Make 'event.redacts' never raise. (#6771)Andrew Morgan2020-03-237-12/+71
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'fa4d609e2': Make 'event.redacts' never raise. (#6771) Fixup changelog Fixup changelog Fixup changelog
| * | Make 'event.redacts' never raise. (#6771)Erik Johnston2020-01-235-6/+62
| | | | | | | | | | | | | | | | | | There are quite a few places that we assume that a redaction event has a corresponding `redacts` key, which is not always the case. So lets cheekily make it so that event.redacts just returns None instead.
| * | Merge branch 'master' into developBrendan Abolivier2020-01-234-5/+20
| |\|
| | * Fixup changelog v1.9.0 github/release-v1.9.0 release-v1.9.0Brendan Abolivier2020-01-231-1/+1
| | |
| | * Fixup changelogBrendan Abolivier2020-01-231-4/+5
| | |
| | * Fixup changelogBrendan Abolivier2020-01-232-2/+4
| | |
| | * Merge branch 'release-v1.9.0' of github.com:matrix-org/synapse into ↵Brendan Abolivier2020-01-232-4/+5
| | |\ | | | | | | | | | | | | release-v1.9.0
* | | \ 1.9.0Andrew Morgan2020-03-233-1/+13
|\ \ \ \ | | |/ / | |/| | | | | | | | | | * commit 'f3eac2b3e': 1.9.0
| * | | 1.9.0Brendan Abolivier2020-01-233-1/+13
| | | |
* | | | a bit of debugging for media storage providers (#6757)Andrew Morgan2020-03-233-0/+8
|\ \ \ \ | | |/ / | |/| | | | | | | | | | * commit '6b7462a13': a bit of debugging for media storage providers (#6757)
| * | | a bit of debugging for media storage providers (#6757)Richard van der Hoff2020-01-233-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | * a bit of debugging for media storage providers * changelog
* | | | Minor fixes to user admin api (#6761)Andrew Morgan2020-03-232-9/+6
|\| | | | | | | | | | | | | | | | | | | * commit '5bd3cb726': Minor fixes to user admin api (#6761)
| * | | Minor fixes to user admin api (#6761)Richard van der Hoff2020-01-232-9/+6
| | | | | | | | | | | | | | | | * don't insist on a password (this is valid if you have an SSO login) * fix reference to undefined `requester`
| * | | Merge branch 'release-v1.9.0' into developAndrew Morgan2020-01-232-4/+5
| |\ \ \ | | | |/ | | |/|
* | | | Update admin room docs with correct endpoints (#6770)Andrew Morgan2020-03-232-4/+5
|\ \ \ \ | | |/ / | |/| | | | | | | | | | * commit 'd31f5f4d8': Update admin room docs with correct endpoints (#6770)
| * | | Update admin room docs with correct endpoints (#6770)Andrew Morgan2020-01-232-4/+5
| | |/ | |/|
* | | Remove unnecessary abstractions in admin handler (#6751)Andrew Morgan2020-03-235-83/+25
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | * commit 'ce84dd9e2': Remove unnecessary abstractions in admin handler (#6751) Fixup warning about workers changes Add deprecation headers Fixup changelog
| * | Remove unnecessary abstractions in admin handler (#6751)Andrew Morgan2020-01-224-73/+11
| |/
| * Fixup warning about workers changes v1.9.0rc1Brendan Abolivier2020-01-221-1/+1
| |
| * Add deprecation headersBrendan Abolivier2020-01-221-0/+4
| |
| * Fixup changelogBrendan Abolivier2020-01-221-10/+10
| |
* | 1.9.0rc1Andrew Morgan2020-03-2349-49/+71
|\| | | | | | | | | * commit '0d0f32bc5': 1.9.0rc1
| * 1.9.0rc1Brendan Abolivier2020-01-2249-49/+71
| |
* | Admin API to list, filter and sort rooms (#6720)Andrew Morgan2020-03-239-9/+789
|\| | | | | | | | | * commit '90a28fb47': Admin API to list, filter and sort rooms (#6720)
| * Admin API to list, filter and sort rooms (#6720)Andrew Morgan2020-01-228-7/+787
| |
* | Merge pull request #6764 from matrix-org/babolivier/fix-thumbnailAndrew Morgan2020-03-233-5/+46
|\| | | | | | | | | | | | | | | * commit 'ae6cf586b': Lint + changelog Remove unused import Add tests for thumbnailing Fix typo in _select_thumbnail
| * Merge pull request #6764 from matrix-org/babolivier/fix-thumbnailBrendan Abolivier2020-01-223-5/+46
| |\ | | | | | | Fix typo in _select_thumbnail
| | * Lint + changelogBrendan Abolivier2020-01-222-3/+2
| | |
| | * Remove unused importBrendan Abolivier2020-01-221-1/+1
| | |
| | * Add tests for thumbnailingBrendan Abolivier2020-01-221-3/+45
| | |
| | * Fix typo in _select_thumbnailBrendan Abolivier2020-01-221-1/+1
| |/
* | Fix and add test to deprecated quarantine media admin api (#6756)Andrew Morgan2020-03-233-5/+13
|\| | | | | | | | | * commit 'aa9b00fb2': Fix and add test to deprecated quarantine media admin api (#6756)
| * Fix and add test to deprecated quarantine media admin api (#6756)Andrew Morgan2020-01-223-5/+13
| |
* | Allow monthly active user limiting support for worker mode, fixes #4639. (#6742)Andrew Morgan2020-03-236-82/+100
|\| | | | | | | | | * commit '5e52d8563': Allow monthly active user limiting support for worker mode, fixes #4639. (#6742)
| * Allow monthly active user limiting support for worker mode, fixes #4639. (#6742)Neil Johnson2020-01-226-82/+100
| |
* | Allow streaming cache invalidate all to workers. (#6749)Andrew Morgan2020-03-236-15/+69
|\| | | | | | | | | * commit '5d7a6ad22': Allow streaming cache invalidate all to workers. (#6749)
| * Allow streaming cache invalidate all to workers. (#6749)Erik Johnston2020-01-226-15/+69
| |
* | Remove unused CI docker compose files (#6754)Andrew Morgan2020-03-234-66/+1
|\| | | | | | | | | * commit '2093f83ea': Remove unused CI docker compose files (#6754)
| * Remove unused CI docker compose files (#6754)Erik Johnston2020-01-224-66/+1
| | | | | | These now exist in the pipelines repo.
* | Avoid attribute error when `password_config` present but empty (#6753)Andrew Morgan2020-03-232-1/+2
|\| | | | | | | | | * commit '837f62266': Avoid attribute error when `password_config` present but empty (#6753)
| * Avoid attribute error when `password_config` present but empty (#6753)Ivan Vilata-i-Balaguer2020-01-222-1/+2
| | | | | | | | | | | | | | | | | | | | The old statement returned `None` for such a `password_config` (like the one created on first run), thus retrieval of the `pepper` key failed with `AttributeError`. Fixes #5315 Signed-off-by: Ivan Vilata i Balaguer <ivan@selidor.net>
* | Port synapse_port_db to async/await (#6718)Andrew Morgan2020-03-233-89/+126
|\| | | | | | | | | * commit '07124d028': Port synapse_port_db to async/await (#6718)
| * Port synapse_port_db to async/await (#6718)Brendan Abolivier2020-01-213-89/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Raise an exception if there are pending background updates So we return with a non-0 code * Changelog * Port synapse_port_db to async/await * Port update_database to async/await * Add version string to mocked homeservers * Remove unused imports * Convert overseen bits to async/await * Fixup logging contexts * Fix imports * Add a way to print an error without raising an exception * Incorporate review
* | Add a DeltaState to track changes to be made to current state (#6716)Andrew Morgan2020-03-233-99/+112
|\| | | | | | | | | * commit '0e6876007': Add a DeltaState to track changes to be made to current state (#6716)
| * Add a DeltaState to track changes to be made to current state (#6716)Erik Johnston2020-01-203-99/+112
| |
* | Fixup synapse.rest to pass mypy (#6732)Andrew Morgan2020-03-2312-35/+56
|\| | | | | | | | | * commit 'b0a66ab83': Fixup synapse.rest to pass mypy (#6732)
| * Fixup synapse.rest to pass mypy (#6732)Erik Johnston2020-01-2012-35/+56
| |
* | Fix `/events/:event_id` deprecated API. (#6731)Andrew Morgan2020-03-234-2/+30
|\| | | | | | | | | * commit '74b74462f': Fix `/events/:event_id` deprecated API. (#6731)
| * Fix `/events/:event_id` deprecated API. (#6731)Erik Johnston2020-01-204-2/+30
| |
* | Fixup synapse.api to pass mypy (#6733)Andrew Morgan2020-03-236-4/+14
|\| | | | | | | | | * commit '0f6e525be': Fixup synapse.api to pass mypy (#6733)
| * Fixup synapse.api to pass mypy (#6733)Erik Johnston2020-01-206-4/+14
| |
* | Fix changing password via user admin API. (#6730)Andrew Morgan2020-03-233-2/+16
|\| | | | | | | | | * commit 'ceecedc68': Fix changing password via user admin API. (#6730)
| * Fix changing password via user admin API. (#6730)Erik Johnston2020-01-203-2/+16
| |
* | Fix empty account_validity config block (#6747)Andrew Morgan2020-03-232-1/+3
|\| | | | | | | | | | | | | | | | | * commit 'e9e066055': Update changelog.d/6747.bugfix Revert "Newsfile" Newsfile Add changelog Fix empty account_validity config block
| * Fix empty account_validity config block (#6747)Andrew Morgan2020-01-202-1/+3
| |\
| | * Update changelog.d/6747.bugfixAndrew Morgan2020-01-201-1/+1
| | | | | | | | | Co-Authored-By: Erik Johnston <erik@matrix.org>
| | * Add changelogAndrew Morgan2020-01-201-0/+1
| | |
| | * Fix empty account_validity config blockAndrew Morgan2020-01-201-1/+2
| | |
| * | Revert "Newsfile"Erik Johnston2020-01-201-1/+0
| | | | | | | | | | | | This reverts commit 11c23af465633b8dd641db60793a19e5b7524e2b.
| * | NewsfileErik Johnston2020-01-201-0/+1
| |/
* | Add more logging around message retention policies support (#6717)Andrew Morgan2020-03-236-2/+24
|\| | | | | | | | | | | | | * commit 'a17f64361': Add more logging around message retention policies support (#6717) Fix up changelog bump version to v1.9.0.dev2
| * Add more logging around message retention policies support (#6717)Brendan Abolivier2020-01-173-0/+22
| | | | | | So we can debug issues like #6683 more easily
| * Fix up changelogErik Johnston2020-01-172-1/+1
| |
| * bump version to v1.9.0.dev2 v1.9.0.dev2Richard van der Hoff2020-01-171-1/+1
| |
* | Fix syntax error in run_upgrade for schema 57 (#6728)Andrew Morgan2020-03-232-3/+5
|\| | | | | | | | | * commit '722b4f302': Fix syntax error in run_upgrade for schema 57 (#6728)
| * Fix syntax error in run_upgrade for schema 57 (#6728)Satsuki Yanagi2020-01-172-3/+5
| | | | | | | | | | | | | | Fix #6727 Related #6655 Co-authored-by: Erik Johnston <erikj@jki.re>
* | Merge pull request #6714 from matrix-org/babolivier/retention_select_eventAndrew Morgan2020-03-235-8/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3b72bb780': bump version to v1.9.0.dev1 Precise changelog Fixup diff Remove get_room_event_after_stream_ordering entirely Lint Rename changelog Changelog Correctly order when selecting before stream ordering Fix typo Fix instantiation of message retention purge jobs
| * Merge pull request #6714 from matrix-org/babolivier/retention_select_eventBrendan Abolivier2020-01-174-7/+8
| |\ | | | | | | Fix instantiation of message retention purge jobs
| | * Precise changelogBrendan Abolivier2020-01-161-1/+1
| | |
| | * Fixup diffBrendan Abolivier2020-01-161-6/+7
| | |
| | * Remove get_room_event_after_stream_ordering entirelyBrendan Abolivier2020-01-162-58/+13
| | |
| | * LintBrendan Abolivier2020-01-161-6/+12
| | |
| | * Rename changelogBrendan Abolivier2020-01-151-0/+0
| | |
| | * ChangelogBrendan Abolivier2020-01-151-0/+1
| | |
| | * Correctly order when selecting before stream orderingBrendan Abolivier2020-01-151-2/+5
| | |
| | * Fix typoBrendan Abolivier2020-01-151-1/+1
| | |
| | * Fix instantiation of message retention purge jobsBrendan Abolivier2020-01-152-13/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | bump version to v1.9.0.dev1 v1.9.0.dev1Richard van der Hoff2020-01-171-1/+1
| | |
* | | Merge pull request #6724 from matrix-org/rav/log_saml_attributesAndrew Morgan2020-03-2311-24/+114
|\| | | | | | | | | | | | | | | | | | | | * commit '59dc87c61': changelog Log saml assertions rather than the whole response move batch_iter to a separate module
| * | Merge pull request #6724 from matrix-org/rav/log_saml_attributesRichard van der Hoff2020-01-1711-24/+114
| |\ \ | | | | | | | | Log saml assertions rather than the whole response
| | * | changelogRichard van der Hoff2020-01-161-0/+1
| | | |
| | * | Log saml assertions rather than the whole responseRichard van der Hoff2020-01-163-1/+72
| | | | | | | | | | | | | | | | | | | | | | | | ... since the whole response is huge. We even need to break up the assertions, since kibana otherwise truncates them.
| | * | move batch_iter to a separate moduleRichard van der Hoff2020-01-168-23/+41
| | | |
* | | | Delegate remote_user_id mapping to the saml mapping provider (#6723)Andrew Morgan2020-03-233-6/+23
|\| | | | | | | | | | | | | | | | | | | * commit '2b6a77fcd': Delegate remote_user_id mapping to the saml mapping provider (#6723)
| * | | Delegate remote_user_id mapping to the saml mapping provider (#6723)Richard van der Hoff2020-01-173-6/+23
| | | | | | | | | | | | 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.
* | | | Wake up transaction queue when remote server comes back online (#6706)Andrew Morgan2020-03-2311-8/+135
|\| | | | | | | | | | | | | | | | | | | * commit 'a8a50f5b5': Wake up transaction queue when remote server comes back online (#6706)
| * | | Wake up transaction queue when remote server comes back online (#6706)Erik Johnston2020-01-1711-8/+135
| | | | | | | | | | | | | | | | | | | | This will be used to retry outbound transactions to a remote server if we think it might have come back up.
* | | | Clarify the `account_validity` and `email` sections of the sample ↵Andrew Morgan2020-03-235-272/+320
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | configuration. (#6685) * commit '5ce0b17e3': Clarify the `account_validity` and `email` sections of the sample configuration. (#6685)
| * | | Clarify the `account_validity` and `email` sections of the sample ↵Richard van der Hoff2020-01-175-272/+320
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | configuration. (#6685) Generally try to make this more comprehensible, and make it match the conventions. I've removed the documentation for all the settings which allow you to change the names of the template files, because I can't really see why they are useful.
* | | Add StateMap type alias (#6715)Andrew Morgan2020-03-2314-93/+115
|\| | | | | | | | | | | | | | * commit 'd386f2f33': Add StateMap type alias (#6715)
| * | Add StateMap type alias (#6715)Erik Johnston2020-01-1614-93/+115
| | |
* | | Add tips for the changelog to the pull request template (#6663)Andrew Morgan2020-03-233-3/+8
|\| | | | | | | | | | | | | | * commit '7b14c4a01': Add tips for the changelog to the pull request template (#6663)
| * | Add tips for the changelog to the pull request template (#6663)Andrew Morgan2020-01-163-3/+8
| | |
* | | Add org.matrix.e2e_cross_signing to unstable_features in /versions as per ↵Andrew Morgan2020-03-232-0/+3
|\| | | | | | | | | | | | | | | | | | | | MSC1756 (#6712) * commit '38e0e59f4': Add org.matrix.e2e_cross_signing to unstable_features in /versions as per MSC1756 (#6712)
| * | Add org.matrix.e2e_cross_signing to unstable_features in /versions as per ↵Neil Johnson2020-01-162-0/+3
| | | | | | | | | | | | MSC1756 (#6712)
* | | Port synapse.replication.tcp to async/await (#6666)Andrew Morgan2020-03-2315-105/+80
|\| | | | | | | | | | | | | | * commit '48c3a9688': Port synapse.replication.tcp to async/await (#6666)
| * | Port synapse.replication.tcp to async/await (#6666)Erik Johnston2020-01-1615-105/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Port synapse.replication.tcp to async/await * Newsfile * Correctly document type of on_<FOO> functions as async * Don't be overenthusiastic with the asyncing....
* | | Fix purge_room admin API (#6711)Andrew Morgan2020-03-233-4/+3
|\| | | | | | | | | | | | | | * commit '19a1aac48': Fix purge_room admin API (#6711)
| * | Fix purge_room admin API (#6711)Erik Johnston2020-01-153-4/+3
| | |
* | | Remove duplicate session check in web fallback servlet (#6702)Andrew Morgan2020-03-232-4/+1
|\| | | | | | | | | | | | | | * commit 'edc244eec': Remove duplicate session check in web fallback servlet (#6702)
| * | Remove duplicate session check in web fallback servlet (#6702)Andrew Morgan2020-01-152-4/+1
| | |
* | | Merge pull request #6688 from matrix-org/rav/module_api_extensionsAndrew Morgan2020-03-234-7/+61
|\| | | | | | | | | | | | | | | | | | | | * commit '608bf7d74': changelog Handle `config` not being set for synapse plugin modules Cleanups and additions to the module API
| * | Merge pull request #6688 from matrix-org/rav/module_api_extensionsRichard van der Hoff2020-01-154-7/+61
| |\ \ | | | | | | | | Cleanups and additions to the module API
| | * \ Merge branch 'develop' into rav/module_api_extensionsRichard van der Hoff2020-01-1564-290/+1276
| | |\ \ | | |/ / | |/| |
| | * | changelogRichard van der Hoff2020-01-121-0/+1
| | | |
| | * | Handle `config` not being set for synapse plugin modulesRichard van der Hoff2020-01-121-1/+1
| | | | | | | | | | | | | | | | | | | | Some modules don't need any config, so having to define a `config` property just to keep the loader happy is a bit annoying.
| | * | Cleanups and additions to the module APIRichard van der Hoff2020-01-122-6/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add some useful things, such as error types and logcontext handling, to the API. Make `hs` a private member to dissuade people from using it (hopefully they aren't already). Add a couple of new methods (`record_user_external_id` and `generate_short_term_login_token`).
* | | | Implement RedirectException (#6687)Andrew Morgan2020-03-234-7/+113
|\| | | | | | | | | | | | | | | | | | | * commit '8f5d7302a': Implement RedirectException (#6687)
| * | | Implement RedirectException (#6687)Richard van der Hoff2020-01-154-7/+113
| | | | | | | | | | | | | | | | | | | | Allow REST endpoint implemnentations to raise a RedirectException, which will redirect the user's browser to a given location.
* | | | Add `local_current_membership` table (#6655)Andrew Morgan2020-03-2320-107/+263
|\| | | | | | | | | | | | | | | | | | | * commit '28c98e51f': Add `local_current_membership` table (#6655)
| * | | Add `local_current_membership` table (#6655)Erik Johnston2020-01-1520-107/+263
| | |/ | |/| | | | | | | | | | | | | | | | Currently we rely on `current_state_events` to figure out what rooms a user was in and their last membership event in there. However, if the server leaves the room then the table may be cleaned up and that information is lost. So lets add a table that separately holds that information.
* | | Process EDUs in parallel with PDUs. (#6697)Andrew Morgan2020-03-232-12/+59
|\| | | | | | | | | | | | | | * commit 'b5ce7f587': Process EDUs in parallel with PDUs. (#6697)
| * | Process EDUs in parallel with PDUs. (#6697)Erik Johnston2020-01-142-12/+59
| | | | | | | | | | | | This means that things like to device messages don't get blocked behind processing PDUs, which can potentially take *ages*.
* | | Fixup synapse.replication to pass mypy checks (#6667)Andrew Morgan2020-03-2312-86/+105
|\| | | | | | | | | | | | | | * commit 'e8b68a4e4': Fixup synapse.replication to pass mypy checks (#6667)
| * | Fixup synapse.replication to pass mypy checks (#6667)Erik Johnston2020-01-1412-86/+105
| | |
* | | Quarantine media by ID or user ID (#6681)Andrew Morgan2020-03-237-11/+632
|\| | | | | | | | | | | | | | * commit '1177d3f3a': Quarantine media by ID or user ID (#6681)
| * | Quarantine media by ID or user ID (#6681)Andrew Morgan2020-01-137-11/+632
| | |
* | | Document more supported endpoints for workers (#6698)Andrew Morgan2020-03-232-0/+5
|\| | | | | | | | | | | | | | * commit '47f4f493f': Document more supported endpoints for workers (#6698)
| * | Document more supported endpoints for workers (#6698)Richard van der Hoff2020-01-132-0/+5
| | |
* | | Kill off RegistrationError (#6691)Andrew Morgan2020-03-234-17/+4
|\| | | | | | | | | | | | | | * commit '326c893d2': Kill off RegistrationError (#6691)
| * | Kill off RegistrationError (#6691)Richard van der Hoff2020-01-134-17/+4
| | | | | | | | | This is pretty pointless. Let's just use SynapseError.
* | | Don't assign numeric IDs for empty usernames (#6690)Andrew Morgan2020-03-232-1/+2
|\| | | | | | | | | | | | | | * commit '2d07c7377': Don't assign numeric IDs for empty usernames (#6690)
| * | Don't assign numeric IDs for empty usernames (#6690)Richard van der Hoff2020-01-132-1/+2
| | | | | | | | | | | | Fix a bug where we would assign a numeric userid if somebody tried registering with an empty username
* | | Merge pull request #6689 from matrix-org/rav/saml_mapping_provider_updatesAndrew Morgan2020-03-232-6/+17
|\| | | | | | | | | | | | | | | | | | | | * commit '3cfac9593': changelog Pass client redirect URL into SAML mapping providers Pass the module_api into the SamlMappingProvider
| * | Merge pull request #6689 from matrix-org/rav/saml_mapping_provider_updatesRichard van der Hoff2020-01-132-6/+17
| |\ \ | | | | | | | | Updates to the SAML mapping provider API
| | * | changelogRichard van der Hoff2020-01-121-0/+1
| | | |
| | * | Pass client redirect URL into SAML mapping providersRichard van der Hoff2020-01-121-4/+11
| | | |
| | * | Pass the module_api into the SamlMappingProviderRichard van der Hoff2020-01-121-2/+5
| | |/ | | | | | | | | | | | | ... for consistency with other modules, and because we'll need it sooner or later and it will be a pain to introduce later.
* | | Allow additional_resources to implement Resource directly (#6686)Andrew Morgan2020-03-232-2/+12
|\| | | | | | | | | | | | | | * commit '803968505': Allow additional_resources to implement Resource directly (#6686)
| * | Allow additional_resources to implement Resource directly (#6686)Richard van der Hoff2020-01-132-2/+12
| | | | | | | | | | | | | | | | | | AdditionalResource really doesn't add any value, and it gets in the way for resources which want to support child resources or the like. So, if the resource object already implements the IResource interface, don't bother wrapping it.
* | | Fix exceptions on requests for non-ascii urls (#6682)Andrew Morgan2020-03-233-1/+6
|\| | | | | | | | | | | | | | | | | * commit 'feee81997': Fix exceptions on requests for non-ascii urls (#6682) comment for run_in_background
| * | Fix exceptions on requests for non-ascii urls (#6682)Richard van der Hoff2020-01-132-1/+3
| | | | | | | | | Fixes #6402
| * | comment for run_in_backgroundRichard van der Hoff2020-01-121-0/+3
| | |
* | | Merge pull request #6675 from matrix-org/rav/die_sqlite37_die_die_dieAndrew Morgan2020-03-236-41/+47
|\| | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1d16f5ea0': update install notes for CentOS changelog Refuse to start if sqlite is older than 3.11.0 Check postgres version in check_database Modify check_database to take a connection rather than a cursor
| * | Merge pull request #6675 from matrix-org/rav/die_sqlite37_die_die_dieRichard van der Hoff2020-01-106-41/+47
| |\ \ | | | | | | | | Refuse to start if sqlite is older than 3.11.0
| | * | update install notes for CentOSRichard van der Hoff2020-01-091-0/+5
| | | |
| | * | changelogRichard van der Hoff2020-01-091-0/+1
| | | |
| | * | Refuse to start if sqlite is older than 3.11.0Richard van der Hoff2020-01-093-8/+19
| | | |
| | * | Check postgres version in check_databaseRichard van der Hoff2020-01-091-13/+12
| | | | | | | | | | | | | | | | | | | | this saves doing it on each connection, and will allow us to pass extra options in.
| | * | Modify check_database to take a connection rather than a cursorRichard van der Hoff2020-01-094-28/+18
| | |/ | | | | | | | | | We might not need the cursor at all.
| * | Merge branch 'master' of github.com:matrix-org/synapse into developErik Johnston2020-01-092-0/+12
| |\ \ | | |/ | |/|
* | | Add note about log_file no longer be accepted (#6674)Andrew Morgan2020-03-232-0/+12
|\ \ \ | | |/ | |/| | | | | | | * commit 'c2ba994db': Add note about log_file no longer be accepted (#6674)
| * | Add note about log_file no longer be accepted (#6674) github/release-v1.8.0 release-v1.8.0Erik Johnston2020-01-092-0/+12
| | |
* | | Allow admin users to create or modify users without a shared secret (#6495)Andrew Morgan2020-03-2310-340/+656
|\ \ \ | | |/ | |/| | | | | | | | | | * commit 'd2906fe66': Allow admin users to create or modify users without a shared secret (#6495) Fixup changelog
| * | Allow admin users to create or modify users without a shared secret (#6495)Manuel Stahl2020-01-099-339/+655
| | | | | | | | | Signed-off-by: Manuel Stahl <manuel.stahl@awesome-technologies.de>
| * | Merge branch 'master' into developErik Johnston2020-01-095-5/+17
| |\|
| | * Fixup changelog v1.8.0Erik Johnston2020-01-091-1/+1
| | |
* | | 1.8.0Andrew Morgan2020-03-205-5/+17
|\ \ \ | | |/ | |/| | | | | | | * commit '24b2c940f': 1.8.0
| * | 1.8.0Erik Johnston2020-01-095-5/+17
| | |
* | | Merge pull request #6664 from matrix-org/erikj/media_admin_apisAndrew Morgan2020-03-203-120/+131
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | * commit '7c232bd98': Shuffle the code Comments Do not rely on streaming events, as media repo doesn't Newsfile Import RoomStore in media worker to fix admin APIs Move media admin store functions to worker store
| * | Merge pull request #6664 from matrix-org/erikj/media_admin_apisErik Johnston2020-01-083-120/+131
| |\ \ | | | | | | | | Fix media repo admin APIs when using a media worker.
| | * | Shuffle the codeErik Johnston2020-01-081-25/+16
| | | |
| | * | CommentsErik Johnston2020-01-081-0/+3
| | | |
| | * | Do not rely on streaming events, as media repo doesn'tErik Johnston2020-01-081-12/+26
| | | |
| | * | NewsfileErik Johnston2020-01-081-0/+1
| | | |
| | * | Import RoomStore in media worker to fix admin APIsErik Johnston2020-01-081-0/+2
| | | |
| | * | Move media admin store functions to worker storeErik Johnston2020-01-081-120/+120
| | | |
* | | | Merge pull request #6665 from matrix-org/babolivier/retention_doc_typoAndrew Morgan2020-03-202-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'e16521faa': Changelog Fix typo in message retention policies doc
| * | | Merge pull request #6665 from matrix-org/babolivier/retention_doc_typoBrendan Abolivier2020-01-082-1/+2
| |\ \ \ | | | | | | | | | | Fix typo in message retention policies doc
| | * | | ChangelogBrendan Abolivier2020-01-081-0/+1
| | | | |
| | * | | Fix typo in message retention policies docBrendan Abolivier2020-01-081-1/+1
| | | | |
| * | | | Merge remote-tracking branch 'origin/release-v1.8.0' into developRichard van der Hoff2020-01-088-28/+184
| |\ \ \ \ | | |/ / / | |/| | / | | | |/ | | |/|
* | | | Fix GET request on /_synapse/admin/v2/users endpoint (#6563)Andrew Morgan2020-03-203-2/+44
|\ \ \ \ | | |/ / | |/| | | | | | | | | | * commit '7caaa29da': Fix GET request on /_synapse/admin/v2/users endpoint (#6563)
| * | | Fix GET request on /_synapse/admin/v2/users endpoint (#6563)Manuel Stahl2020-01-083-2/+44
| | | | | | | | | | | | | | | | Fixes #6552
* | | | Back out ill-advised notary server hackery (#6657)Andrew Morgan2020-03-205-26/+140
|\| | | | | | | | | | | | | | | | | | | * commit '573fee759': Back out ill-advised notary server hackery (#6657)
| * | | Back out ill-advised notary server hackery (#6657)Richard van der Hoff2020-01-085-26/+140
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | This was ill-advised. We can't modify verify_keys here, because the response object has already been signed by the requested key. Furthermore, it's somewhat unnecessary because existing versions of Synapse (which get upset that the notary key isn't present in verify_keys) will fall back to a direct fetch via `/key/v2/server`. Also: more tests for fetching keys via perspectives: it would be nice if we actually tested when our fetcher can't talk to our notary impl.
* | | Merge pull request #6624 from matrix-org/babolivier/retention_docAndrew Morgan2020-03-202-0/+192
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cff1cb868': Fix reference Incorporate review Apply suggestions from code review Update changelog.d/6624.doc Fix vacuum instructions for sqlite Rename changelog Add a complete documentation of the message retention policies support
| * | Merge pull request #6624 from matrix-org/babolivier/retention_docBrendan Abolivier2020-01-082-0/+192
| |\ \ | | | | | | | | Add complete documentation of the message retention policies support
| | * | Fix referenceBrendan Abolivier2020-01-071-1/+1
| | | |
| | * | Incorporate reviewBrendan Abolivier2020-01-071-27/+28
| | | |
| | * | Merge branch 'develop' into babolivier/retention_docBrendan Abolivier2020-01-0783-491/+788
| | |\|
| | * | Apply suggestions from code reviewBrendan Abolivier2020-01-071-5/+4
| | | | | | | | | | | | Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
| | * | Update changelog.d/6624.docBrendan Abolivier2020-01-071-1/+1
| | | | | | | | | | | | Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
| | * | Fix vacuum instructions for sqliteBrendan Abolivier2020-01-031-2/+2
| | | |
| | * | Rename changelogBrendan Abolivier2020-01-031-0/+0
| | | |
| | * | Add a complete documentation of the message retention policies supportBrendan Abolivier2020-01-032-0/+192
| | | |
* | | | contrib/docker-compose: fixing mount that overrides containers' /etc (#6656)Andrew Morgan2020-03-203-2/+3
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'dd57715de': contrib/docker-compose: fixing mount that overrides containers' /etc (#6656) typo
| * | | contrib/docker-compose: fixing mount that overrides containers' /etc (#6656)Fabian Meyer2020-01-082-1/+2
| | | | | | | | | | | | | | | | The mount in the form of ./matrix-config:/etc overwrites the contents of the container /etc folder. Since all valid ca certificates are stored in /etc, the synapse.push.httppusher, for example, cannot validate the certificate from matrix.org.
| * | | typoMatthew Hodgson2020-01-071-1/+1
| | | |
* | | | Correctly proxy remote group HTTP errors. (#6654)Andrew Morgan2020-03-202-0/+17
|\| | | | | | | | | | | | | | | | | | | * commit 'be29ed7ad': Correctly proxy remote group HTTP errors. (#6654)
| * | | Correctly proxy remote group HTTP errors. (#6654)Erik Johnston2020-01-072-0/+17
| | | | | | | | | | | | | | | | | | | | e.g. if remote returns a 404 then that shouldn't be treated as an error but should be proxied through.
* | | | Merge pull request #6621 from matrix-org/babolivier/purge_job_config_typoAndrew Morgan2020-03-204-34/+25
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2b6b7f482': Reword Change the example from 5min to 12h Fixup changelog Fixup changelog Fixup changelog Changelog Update sample config Fix a typo in the purge jobs configuration example
| * | | Merge pull request #6621 from matrix-org/babolivier/purge_job_config_typoBrendan Abolivier2020-01-073-10/+11
| |\ \ \ | | |_|/ | |/| | Fix a typo in the purge jobs configuration example
| | * | RewordBrendan Abolivier2020-01-072-6/+6
| | | |
| | * | Change the example from 5min to 12hBrendan Abolivier2020-01-072-8/+8
| | | | | | | | | | | | | | | | Have a purge job running every 5min is probably not something we want to advise admins to do as a sort-of default.
| | * | ChangelogBrendan Abolivier2020-01-031-0/+1
| | | |
| | * | Update sample configBrendan Abolivier2020-01-031-1/+1
| | | |
| | * | Fix a typo in the purge jobs configuration exampleBrendan Abolivier2020-01-031-1/+1
| | |/
| * | Fixup changelog v1.8.0rc1Erik Johnston2020-01-071-3/+3
| | |
| * | Fixup changelogErik Johnston2020-01-071-1/+1
| | |
| * | Fixup changelogErik Johnston2020-01-071-21/+11
| | |
* | | 1.8.0rc1Andrew Morgan2020-03-2056-55/+81
|\| | | | | | | | | | | | | | * commit '7f0e706eb': 1.8.0rc1
| * | 1.8.0rc1Erik Johnston2020-01-0756-55/+81
| | |
* | | Merge pull request #6652 from matrix-org/babolivier/depth_missing_eventsAndrew Morgan2020-03-203-3/+4
|\| | | | | | | | | | | | | | | | | * commit '0ab5853ec': Changelog Fix conditions failing if min_depth = 0
| * | Merge pull request #6652 from matrix-org/babolivier/depth_missing_eventsBrendan Abolivier2020-01-073-3/+4
| |\ \ | | | | | | | | Fix conditions failing if min_depth = 0
| | * | ChangelogBrendan Abolivier2020-01-071-0/+1
| | | |
| | * | Fix conditions failing if min_depth = 0Brendan Abolivier2020-01-072-3/+3
| | |/ | | | | | | | | | This could result in Synapse not fetching prev_events for new events in the room if it has missed some events.
* | | Add a background update to clear tombstoned rooms from the directory (#6648)Andrew Morgan2020-03-206-1/+106
|\| | | | | | | | | | | | | | * commit '85db7f73b': Add a background update to clear tombstoned rooms from the directory (#6648)
| * | Add a background update to clear tombstoned rooms from the directory (#6648)Richard van der Hoff2020-01-076-1/+106
| | | | | | | | | | | | | | | | | | * Add a background update to clear tombstoned rooms from the directory * use the ABC metaclass
* | | Async/await for background updates (#6647)Andrew Morgan2020-03-202-16/+21
|\| | | | | | | | | | | | | | * commit '9824a39d8': Async/await for background updates (#6647)
| * | Async/await for background updates (#6647)Richard van der Hoff2020-01-072-16/+21
| | | | | | | | | | | | so that bg update routines can be async
* | | port BackgroundUpdateTestCase to HomeserverTestCase (#6653)Andrew Morgan2020-03-205-50/+86
|\| | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd20c34654': port BackgroundUpdateTestCase to HomeserverTestCase (#6653) changelog Fix exceptions in log when rejected event is replicated async/await for SyncReplicationHandler.process_and_notify Clarify documentation on get_event* methods
| * | port BackgroundUpdateTestCase to HomeserverTestCase (#6653)Richard van der Hoff2020-01-072-35/+38
| | |
| * | Merge pull request #6645 from matrix-org/rav/fix_synchrotron_errorRichard van der Hoff2020-01-073-15/+48
| |\ \ | | | | | | | | Fix exceptions in the synchrotron worker log when events are rejected.
| | * | changelogRichard van der Hoff2020-01-061-0/+1
| | | |
| | * | Fix exceptions in log when rejected event is replicatedRichard van der Hoff2020-01-061-2/+9
| | | |
| | * | async/await for SyncReplicationHandler.process_and_notifyRichard van der Hoff2020-01-061-5/+4
| | | |
| | * | Clarify documentation on get_event* methodsRichard van der Hoff2020-01-061-9/+35
| | | | | | | | | | | | | | | | Make it clearer how they behave in the face of rejected and/or missing events.
* | | | Merge pull request #6629 from matrix-org/rav/kill_event_reference_hashesAndrew Morgan2020-03-207-103/+55
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1807db5e7': changelog Remove unused get_latest_event_ids_and_hashes_in_room Remove unused get_prev_events_and_hashes_for_room Remove unused hashes and depths from _update_membership params Remove unused hashes and depths from create_event params Remove unused hashes and depths from create_new_client_event params replace get_prev_events_and_hashes_for_room with get_prev_events_for_room in create_new_client_event rename get_prev_events_for_room to get_prev_events_and_hashes_for_room
| * | | Merge pull request #6629 from matrix-org/rav/kill_event_reference_hashesRichard van der Hoff2020-01-067-103/+55
| |\ \ \ | | |/ / | |/| | Remove a bunch of unused code from event creation
| | * | changelogRichard van der Hoff2020-01-061-0/+1
| | | |
| | * | Remove unused get_latest_event_ids_and_hashes_in_roomRichard van der Hoff2020-01-061-42/+0
| | | |
| | * | Remove unused get_prev_events_and_hashes_for_roomRichard van der Hoff2020-01-062-43/+6
| | | |
| | * | Remove unused hashes and depths from _update_membership paramsRichard van der Hoff2020-01-061-13/+4
| | | |
| | * | Remove unused hashes and depths from create_event paramsRichard van der Hoff2020-01-063-22/+13
| | | |
| | * | Remove unused hashes and depths from create_new_client_event paramsRichard van der Hoff2020-01-062-12/+26
| | | |
| | * | replace get_prev_events_and_hashes_for_room with get_prev_events_for_room in ↵Richard van der Hoff2020-01-062-9/+38
| | | | | | | | | | | | | | | | create_new_client_event
| | * | rename get_prev_events_for_room to get_prev_events_and_hashes_for_roomRichard van der Hoff2020-01-064-7/+12
| | | | | | | | | | | | | | | | ... to make way for a new method which just returns the event ids
* | | | Fix some test failures when frozen_dicts are enabled (#6642)Andrew Morgan2020-03-205-11/+20
|\| | | | | | | | | | | | | | | | | | | * commit 'ba897a759': Fix some test failures when frozen_dicts are enabled (#6642)
| * | | Fix some test failures when frozen_dicts are enabled (#6642)Richard van der Hoff2020-01-065-11/+20
| | | | | | | | | | | | | | | | Fixes #4026
* | | | Add experimental 'databases' config (#6580)Andrew Morgan2020-03-203-13/+64
|\| | | | | | | | | | | | | | | | | | | * commit '9f6c1befb': Add experimental 'databases' config (#6580)
| * | | Add experimental 'databases' config (#6580)Erik Johnston2020-01-063-13/+64
| | | |
* | | | Fix an error which was thrown by the PresenceHandler _on_shutdown handler. ↵Andrew Morgan2020-03-202-7/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | (#6640) * commit 'ab4b4ee6a': Fix an error which was thrown by the PresenceHandler _on_shutdown handler. (#6640)
| * | | Fix an error which was thrown by the PresenceHandler _on_shutdown handler. ↵Richard van der Hoff2020-01-062-7/+3
| | | | | | | | | | | | | | | | (#6640)
* | | | Fix exception when fetching notary server's old keys (#6625)Andrew Morgan2020-03-203-50/+103
|\| | | | | | | | | | | | | | | | | | | * commit '4b36b482e': Fix exception when fetching notary server's old keys (#6625)
| * | | Fix exception when fetching notary server's old keys (#6625)Richard van der Hoff2020-01-063-50/+103
| | | | | | | | | | | | | | | | | | | | | | | | Lift the restriction that *all* the keys used for signing v2 key responses be present in verify_keys. Fixes #6596.
* | | | Workaround for error when fetching notary's own key (#6620)Andrew Morgan2020-03-204-9/+163
|\| | | | | | | | | | | | | | | | | | | * commit '18674eebb': Workaround for error when fetching notary's own key (#6620)
| * | | Workaround for error when fetching notary's own key (#6620)Richard van der Hoff2020-01-064-9/+163
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Kill off redundant SynapseRequestFactory We already get the Site via the Channel, so there's no need for a dedicated RequestFactory: we can just use the right constructor. * Workaround for error when fetching notary's own key As a notary server, when we return our own keys, include all of our signing keys in verify_keys. This is a workaround for #6596.