summary refs log tree commit diff
path: root/docs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Clean up some LoggingContext stuff (#7120)Richard van der Hoff2020-03-241-3/+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.
| * | | Merge branch 'master' into developRichard van der Hoff2020-03-231-2/+1
| |\ \ \ | | | |/ | | |/|
| | * | Merge tag 'v1.12.0'Richard van der Hoff2020-03-234-6/+31
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Synapse 1.12.0 (2020-03-23) =========================== No significant changes since 1.12.0rc1. Debian packages and Docker images are rebuilt using the latest versions of dependency libraries, including Twisted 20.3.0. **Please see security advisory below**. Security advisory ----------------- Synapse may be vulnerable to request-smuggling attacks when it is used with a reverse-proxy. The vulnerabilties are fixed in Twisted 20.3.0, and are described in [CVE-2020-10108](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10108) and [CVE-2020-10109](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10109). For a good introduction to this class of request-smuggling attacks, see https://portswigger.net/research/http-desync-attacks-request-smuggling-reborn. We are not aware of these vulnerabilities being exploited in the wild, and do not believe that they are exploitable with current versions of any reverse proxies. Nevertheless, we recommend that all Synapse administrators ensure that they have the latest versions of the Twisted library to ensure that their installation remains secure. * Administrators using the [`matrix.org` Docker image](https://hub.docker.com/r/matrixdotorg/synapse/) or the [Debian/Ubuntu packages from `matrix.org`](https://github.com/matrix-org/synapse/blob/master/INSTALL.md#matrixorg-packages) should ensure that they have version 1.12.0 installed: these images include Twisted 20.3.0. * Administrators who have [installed Synapse from source](https://github.com/matrix-org/synapse/blob/master/INSTALL.md#installing-from-source) should upgrade Twisted within their virtualenv by running: ```sh <path_to_virtualenv>/bin/pip install 'Twisted>=20.3.0' ``` * Administrators who have installed Synapse from distribution packages should consult the information from their distributions. The `matrix.org` Synapse instance was not vulnerable to these vulnerabilities. Advance notice of change to the default `git` branch for Synapse ---------------------------------------------------------------- Currently, the default `git` branch for Synapse is `master`, which tracks the latest release. After the release of Synapse 1.13.0, we intend to change this default to `develop`, which is the development tip. This is more consistent with common practice and modern `git` usage. Although we try to keep `develop` in a stable state, there may be occasions where regressions creep in. Developers and distributors who have scripts which run builds using the default branch of `Synapse` should therefore consider pinning their scripts to `master`. Synapse 1.12.0rc1 (2020-03-19) ============================== Features -------- - Changes related to room alias management ([MSC2432](https://github.com/matrix-org/matrix-doc/pull/2432)): - Publishing/removing a room from the room directory now requires the user to have a power level capable of modifying the canonical alias, instead of the room aliases. ([\#6965](https://github.com/matrix-org/synapse/issues/6965)) - Validate the `alt_aliases` property of canonical alias events. ([\#6971](https://github.com/matrix-org/synapse/issues/6971)) - Users with a power level sufficient to modify the canonical alias of a room can now delete room aliases. ([\#6986](https://github.com/matrix-org/synapse/issues/6986)) - Implement updated authorization rules and redaction rules for aliases events, from [MSC2261](https://github.com/matrix-org/matrix-doc/pull/2261) and [MSC2432](https://github.com/matrix-org/matrix-doc/pull/2432). ([\#7037](https://github.com/matrix-org/synapse/issues/7037)) - Stop sending m.room.aliases events during room creation and upgrade. ([\#6941](https://github.com/matrix-org/synapse/issues/6941)) - Synapse no longer uses room alias events to calculate room names for push notifications. ([\#6966](https://github.com/matrix-org/synapse/issues/6966)) - The room list endpoint no longer returns a list of aliases. ([\#6970](https://github.com/matrix-org/synapse/issues/6970)) - Remove special handling of aliases events from [MSC2260](https://github.com/matrix-org/matrix-doc/pull/2260) added in v1.10.0rc1. ([\#7034](https://github.com/matrix-org/synapse/issues/7034)) - Expose the `synctl`, `hash_password` and `generate_config` commands in the snapcraft package. Contributed by @devec0. ([\#6315](https://github.com/matrix-org/synapse/issues/6315)) - Check that server_name is correctly set before running database updates. ([\#6982](https://github.com/matrix-org/synapse/issues/6982)) - Break down monthly active users by `appservice_id` and emit via Prometheus. ([\#7030](https://github.com/matrix-org/synapse/issues/7030)) - Render a configurable and comprehensible error page if something goes wrong during the SAML2 authentication process. ([\#7058](https://github.com/matrix-org/synapse/issues/7058), [\#7067](https://github.com/matrix-org/synapse/issues/7067)) - Add an optional parameter to control whether other sessions are logged out when a user's password is modified. ([\#7085](https://github.com/matrix-org/synapse/issues/7085)) - Add prometheus metrics for the number of active pushers. ([\#7103](https://github.com/matrix-org/synapse/issues/7103), [\#7106](https://github.com/matrix-org/synapse/issues/7106)) - Improve performance when making HTTPS requests to sygnal, sydent, etc, by sharing the SSL context object between connections. ([\#7094](https://github.com/matrix-org/synapse/issues/7094)) Bugfixes -------- - When a user's profile is updated via the admin API, also generate a displayname/avatar update for that user in each room. ([\#6572](https://github.com/matrix-org/synapse/issues/6572)) - Fix a couple of bugs in email configuration handling. ([\#6962](https://github.com/matrix-org/synapse/issues/6962)) - Fix an issue affecting worker-based deployments where replication would stop working, necessitating a full restart, after joining a large room. ([\#6967](https://github.com/matrix-org/synapse/issues/6967)) - Fix `duplicate key` error which was logged when rejoining a room over federation. ([\#6968](https://github.com/matrix-org/synapse/issues/6968)) - Prevent user from setting 'deactivated' to anything other than a bool on the v2 PUT /users Admin API. ([\#6990](https://github.com/matrix-org/synapse/issues/6990)) - Fix py35-old CI by using native tox package. ([\#7018](https://github.com/matrix-org/synapse/issues/7018)) - Fix a bug causing `org.matrix.dummy_event` to be included in responses from `/sync`. ([\#7035](https://github.com/matrix-org/synapse/issues/7035)) - Fix a bug that renders UTF-8 text files incorrectly when loaded from media. Contributed by @TheStranjer. ([\#7044](https://github.com/matrix-org/synapse/issues/7044)) - Fix a bug that would cause Synapse to respond with an error about event visibility if a client tried to request the state of a room at a given token. ([\#7066](https://github.com/matrix-org/synapse/issues/7066)) - Repair a data-corruption issue which was introduced in Synapse 1.10, and fixed in Synapse 1.11, and which could cause `/sync` to return with 404 errors about missing events and unknown rooms. ([\#7070](https://github.com/matrix-org/synapse/issues/7070)) - Fix a bug causing account validity renewal emails to be sent even if the feature is turned off in some cases. ([\#7074](https://github.com/matrix-org/synapse/issues/7074)) Improved Documentation ---------------------- - Updated CentOS8 install instructions. Contributed by Richard Kellner. ([\#6925](https://github.com/matrix-org/synapse/issues/6925)) - Fix `POSTGRES_INITDB_ARGS` in the `contrib/docker/docker-compose.yml` example docker-compose configuration. ([\#6984](https://github.com/matrix-org/synapse/issues/6984)) - Change date in [INSTALL.md](./INSTALL.md#tls-certificates) for last date of getting TLS certificates to November 2019. ([\#7015](https://github.com/matrix-org/synapse/issues/7015)) - Document that the fallback auth endpoints must be routed to the same worker node as the register endpoints. ([\#7048](https://github.com/matrix-org/synapse/issues/7048)) Deprecations and Removals ------------------------- - Remove the unused query_auth federation endpoint per [MSC2451](https://github.com/matrix-org/matrix-doc/pull/2451). ([\#7026](https://github.com/matrix-org/synapse/issues/7026)) Internal Changes ---------------- - Add type hints to `logging/context.py`. ([\#6309](https://github.com/matrix-org/synapse/issues/6309)) - Add some clarifications to `README.md` in the database schema directory. ([\#6615](https://github.com/matrix-org/synapse/issues/6615)) - Refactoring work in preparation for changing the event redaction algorithm. ([\#6874](https://github.com/matrix-org/synapse/issues/6874), [\#6875](https://github.com/matrix-org/synapse/issues/6875), [\#6983](https://github.com/matrix-org/synapse/issues/6983), [\#7003](https://github.com/matrix-org/synapse/issues/7003)) - Improve performance of v2 state resolution for large rooms. ([\#6952](https://github.com/matrix-org/synapse/issues/6952), [\#7095](https://github.com/matrix-org/synapse/issues/7095)) - Reduce time spent doing GC, by freezing objects on startup. ([\#6953](https://github.com/matrix-org/synapse/issues/6953)) - Minor perfermance fixes to `get_auth_chain_ids`. ([\#6954](https://github.com/matrix-org/synapse/issues/6954)) - Don't record remote cross-signing keys in the `devices` table. ([\#6956](https://github.com/matrix-org/synapse/issues/6956)) - Use flake8-comprehensions to enforce good hygiene of list/set/dict comprehensions. ([\#6957](https://github.com/matrix-org/synapse/issues/6957)) - Merge worker apps together. ([\#6964](https://github.com/matrix-org/synapse/issues/6964), [\#7002](https://github.com/matrix-org/synapse/issues/7002), [\#7055](https://github.com/matrix-org/synapse/issues/7055), [\#7104](https://github.com/matrix-org/synapse/issues/7104)) - Remove redundant `store_room` call from `FederationHandler._process_received_pdu`. ([\#6979](https://github.com/matrix-org/synapse/issues/6979)) - Update warning for incorrect database collation/ctype to include link to documentation. ([\#6985](https://github.com/matrix-org/synapse/issues/6985)) - Add some type annotations to the database storage classes. ([\#6987](https://github.com/matrix-org/synapse/issues/6987)) - Port `synapse.handlers.presence` to async/await. ([\#6991](https://github.com/matrix-org/synapse/issues/6991), [\#7019](https://github.com/matrix-org/synapse/issues/7019)) - Add some type annotations to the federation base & client classes. ([\#6995](https://github.com/matrix-org/synapse/issues/6995)) - Port `synapse.rest.keys` to async/await. ([\#7020](https://github.com/matrix-org/synapse/issues/7020)) - Add a type check to `is_verified` when processing room keys. ([\#7045](https://github.com/matrix-org/synapse/issues/7045)) - Add type annotations and comments to the auth handler. ([\#7063](https://github.com/matrix-org/synapse/issues/7063))
| | * | Update postgres.mdRichard van der Hoff2020-03-171-2/+1
| | | | | | | | | | | | fix broken link
| * | | Improve database configuration docs (#6988)Richard van der Hoff2020-03-202-15/+70
| | |/ | |/| | | | | | | | | | Attempts to clarify the sample config for databases, and add some stuff about tcp keepalives to `postgres.md`.
* | | Support GET account_data requests on a worker (#7311)Richard van der Hoff2020-05-281-0/+2
| | |
* | | Config lintingAndrew Morgan2020-05-141-4/+4
| | |
* | | Fix and refactor rewritten IS url feature. Add sample config docs (#40)Andrew Morgan2020-04-221-0/+7
| | |
* | | Add an option to the set password API to choose whether to logout other ↵Andrew Morgan2020-03-241-1/+5
|\| | | | | | | | | | | | | | | | | | | | devices. (#7085) * commit '88b41986d': Add an option to the set password API to choose whether to logout other devices. (#7085)
| * | Add an option to the set password API to choose whether to logout other ↵Patrick Cloke2020-03-181-1/+5
| | | | | | | | | | | | devices. (#7085)
* | | Merge commit '6a3504636' into dinsic-release-v1.12.xAndrew Morgan2020-03-241-5/+17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6a3504636': (29 commits) Revert "Add options to disable setting profile info for prevent changes. (#7053)" Populate the room version from state events (#7070) Fix buggy condition in account validity handler (#7074) Use innerText instead of innerHTML Add type annotations and comments to auth handler (#7063) Lint Put the file in the templates directory Update wording and config Changelog Move the default SAML2 error HTML to a dedicated file Refactor a bit Also don't fail on aliases events in this case Lint Changelog Also don't filter out events sent by ignored users when checking state visibility Fix condition Don't filter out dummy events when we're checking the visibility of state Update sample_config.yaml Update synapse/config/registration.py lint, fix tests ...
| * | Revert "Add options to disable setting profile info for prevent changes. ↵Richard van der Hoff2020-03-171-13/+0
| | | | | | | | | | | | | | | | | | | | | (#7053)" This reverts commit 54dd28621b070ca67de9f773fe9a89e1f4dc19da, reversing changes made to 6640460d054e8f4444046a34bdf638921b31c01e.
| * | Put the file in the templates directoryBrendan Abolivier2020-03-111-7/+16
| | |
| * | Update wording and configBrendan Abolivier2020-03-111-0/+3
| | |
| * | Add options to disable setting profile info for prevent changes. (#7053)Brendan Abolivier2020-03-101-0/+13
| |\ \
| | * | Update sample_config.yamlDirk Klimpel2020-03-101-1/+1
| | | |
| | * | updates after reviewdklimpel2020-03-091-5/+5
| | | |
| | * | add disable_3pid_changesdklimpel2020-03-081-0/+5
| | | |
| | * | lint2dklimpel2020-03-081-2/+2
| | | |
| | * | changelogdklimpel2020-03-081-0/+8
| | | |
* | | | Merge pull request #7058 from matrix-org/babolivier/saml_error_htmlAndrew Morgan2020-03-241-0/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6640460d0': Rephrase default message Hopefully mypy is happy now Attempt at appeasing the gods of mypy Lint Changelog Update sample config SAML2: render a comprehensible error page if something goes wrong
| * | | Update sample configBrendan Abolivier2020-03-101-0/+7
| | | |
* | | | Update routing of fallback auth in the worker docs. (#7048)Andrew Morgan2020-03-241-0/+1
|\| | | | | | | | | | | | | | | | | | | * commit '66315d862': Update routing of fallback auth in the worker docs. (#7048)
| * | | Update routing of fallback auth in the worker docs. (#7048)Patrick Cloke2020-03-091-0/+1
| | | |
| * | | Merge branch 'master' into developBrendan Abolivier2020-03-031-0/+50
| |\ \ \ | | |/ / | |/| / | | |/
* | | v1.11.1Andrew Morgan2020-03-241-0/+50
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | * commit 'fd983fad9': v1.11.1 Fix wrong handler being used in SAML handler Factor out complete_sso_login and expose it to the Module API Add a whitelist for the SSO confirmation step. Add a confirmation step to the SSO login flow
| * | Add a whitelist for the SSO confirmation step.Richard van der Hoff2020-03-021-3/+19
| | |
| * | Add a confirmation step to the SSO login flowBrendan Abolivier2020-03-021-0/+34
| | |
* | | Fix minor issues with email config (#6962)Andrew Morgan2020-03-241-4/+5
|\ \ \ | | |/ | |/| | | | | | | * commit '4c2ed3f20': Fix minor issues with email config (#6962)
| * | Fix minor issues with email config (#6962)Richard van der Hoff2020-02-241-4/+5
| | | | | | | | | | | | | | | | | | * Give `notif_template_html`, `notif_template_text` default values (fixes #6960) * Don't complain if `smtp_host` and `smtp_port` are unset, since they have sensible defaults (fixes #6961) * Set the example for `enable_notifs` to `True`, for consistency and because it's more useful * Raise errors as ConfigError rather than RuntimeError for nicer formatting
* | | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957)Andrew Morgan2020-03-241-1/+1
|\| | | | | | | | | | | | | | | | | | | | * commit '509e381af': Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) changelog Increase MAX_EVENTS_BEHIND for replication clients
| * | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957)Patrick Cloke2020-02-211-1/+1
| |/ | | | | | | Ensure good comprehension hygiene using flake8-comprehensions.
* | Merge pull request #6940 from matrix-org/babolivier/federate.mdAndrew Morgan2020-03-243-153/+126
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit 'bbe39f808': Incorporate review Incorporate review Phrasing Changelog Add mention of SRV records as an advanced topic Argh trailing spaces Fix links in the reverse proxy doc Make federate.md more of a sumary of the steps to follow to set up replication Split the delegating documentation out of federate.md and trim it down
| * Merge pull request #6940 from matrix-org/babolivier/federate.mdBrendan Abolivier2020-02-193-153/+126
| |\ | | | | | | Clean up and update federation docs
| | * Incorporate reviewBrendan Abolivier2020-02-192-12/+13
| | |
| | * Incorporate reviewBrendan Abolivier2020-02-182-21/+17
| | |
| | * PhrasingBrendan Abolivier2020-02-181-1/+1
| | |
| | * Add mention of SRV records as an advanced topicBrendan Abolivier2020-02-181-0/+10
| | |
| | * Argh trailing spacesBrendan Abolivier2020-02-181-2/+2
| | |
| | * Fix links in the reverse proxy docBrendan Abolivier2020-02-181-3/+4
| | |
| | * Make federate.md more of a sumary of the steps to follow to set up replicationBrendan Abolivier2020-02-181-17/+28
| | |
| | * Split the delegating documentation out of federate.md and trim it downBrendan Abolivier2020-02-182-133/+87
| | |
* | | Merge pull request #6907 from matrix-org/babolivier/acme-configAndrew Morgan2020-03-241-0/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd484126bf': Make the log more noticeable Print the error as an error log and raise the same exception we got Linters are hard but in they end they just want what's best for us Lint Changelog Lint Add a separator for the config warning Add a comprehensive error when failing to register for an ACME account Add mention and warning about ACME v1 deprecation to the Synapse config
| * | Merge pull request #6907 from matrix-org/babolivier/acme-configBrendan Abolivier2020-02-181-0/+5
| |\ \ | | | | | | | | Add mention and warning about ACME v1 deprecation to the TLS config
| | * | Add mention and warning about ACME v1 deprecation to the Synapse configBrendan Abolivier2020-02-131-0/+5
| | | |
* | | | Fix worker docs to point `/publicised_groups` API correctly. (#6938)Andrew Morgan2020-03-241-3/+4
|\| | | | | | | | | | | | | | | | | | | * commit '818def824': Fix worker docs to point `/publicised_groups` API correctly. (#6938)
| * | | Fix worker docs to point `/publicised_groups` API correctly. (#6938)Erik Johnston2020-02-181-3/+4
| | | |
* | | | Add a warning about indentation to generated config (#6920)Andrew Morgan2020-03-232-2/+14
|\| | | | | | | | | | | | | | | | | | | * commit '97a42bbc3': Add a warning about indentation to generated config (#6920)
| * | | Add a warning about indentation to generated config (#6920)Richard van der Hoff2020-02-142-2/+14
| | | | | | | | | | | | Fixes #6916.
* | | | Filter the results of user directory searching via the spam checker (#6888)Andrew Morgan2020-03-231-0/+3
|\| | | | | | | | | | | | | | | | | | | * commit '49f877d32': Filter the results of user directory searching via the spam checker (#6888)
| * | | Filter the results of user directory searching via the spam checker (#6888)Patrick Cloke2020-02-141-0/+3
| | |/ | |/| | | | Add a method to the spam checker to filter the user directory results.
* | | Add documentation for the spam checker module (#6906)Andrew Morgan2020-03-231-0/+85
|\| | | | | | | | | | | | | | * commit '361de49c9': Add documentation for the spam checker module (#6906)
| * | Add documentation for the spam checker module (#6906)Patrick Cloke2020-02-131-0/+85
| | | | | | | | | Add documentation for the spam checker.
* | | Merge pull request #6905 from matrix-org/babolivier/acme.mdAndrew Morgan2020-03-231-12/+43
|\| | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f48bf4feb': Update docs/ACME.md Mention that using Synapse to serve certificates requires restarts Changelog Remove duplicated info about certbot et al Update ACME.md to mention ACME v1 deprecation
| * | Update docs/ACME.mdBrendan Abolivier2020-02-131-1/+1
| | |
| * | Mention that using Synapse to serve certificates requires restartsBrendan Abolivier2020-02-121-1/+3
| | |
| * | Remove duplicated info about certbot et alBrendan Abolivier2020-02-121-5/+0
| | |
| * | Update ACME.md to mention ACME v1 deprecationBrendan Abolivier2020-02-121-7/+41
| |/
* | Merge pull request #6891 from matrix-org/babolivier/retention-doc-amendAndrew Morgan2020-03-232-0/+7
|\| | | | | | | | | | | | | | | | | * commit '6cd34da8b': Rephrase Update the changelog file Also spell it out in the purge history API doc Changelog Spell out that Synapse never purges the last event sent in a room
| * Merge pull request #6891 from matrix-org/babolivier/retention-doc-amendBrendan Abolivier2020-02-122-0/+7
| |\ | | | | | | Spell out that the last event sent to a room won't be deleted by a purge
| | * RephraseBrendan Abolivier2020-02-122-5/+5
| | |
| | * Also spell it out in the purge history API docBrendan Abolivier2020-02-111-0/+3
| | |
| | * Spell out that Synapse never purges the last event sent in a roomBrendan Abolivier2020-02-111-0/+4
| | |
| * | Merge branch 'master' into developBrendan Abolivier2020-02-121-1/+2
| |\ \ | | |/ | |/|
| | * Merge tag 'v1.10.0'Brendan Abolivier2020-02-122-1/+36
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Synapse 1.10.0 (2020-02-12) =========================== **WARNING to client developers**: As of this release Synapse validates `client_secret` parameters in the Client-Server API as per the spec. See [\#6766](https://github.com/matrix-org/synapse/issues/6766) for details. Updates to the Docker image --------------------------- - Update the docker images to Alpine Linux 3.11. ([\#6897](https://github.com/matrix-org/synapse/issues/6897)) Synapse 1.10.0rc5 (2020-02-11) ============================== Bugfixes -------- - Fix the filtering introduced in 1.10.0rc3 to also apply to the state blocks returned by `/sync`. ([\#6884](https://github.com/matrix-org/synapse/issues/6884)) Synapse 1.10.0rc4 (2020-02-11) ============================== This release candidate was built incorrectly and is superceded by 1.10.0rc5. Synapse 1.10.0rc3 (2020-02-10) ============================== Features -------- - Filter out `m.room.aliases` from the CS API to mitigate abuse while a better solution is specced. ([\#6878](https://github.com/matrix-org/synapse/issues/6878)) Internal Changes ---------------- - Fix continuous integration failures with old versions of `pip`, which were introduced by a release of the `zipp` library. ([\#6880](https://github.com/matrix-org/synapse/issues/6880)) 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)) Synapse 1.10.0rc1 (2020-01-31) ============================== Features -------- - Add experimental support for updated authorization rules for aliases events, from [MSC2260](https://github.com/matrix-org/matrix-doc/pull/2260). ([\#6787](https://github.com/matrix-org/synapse/issues/6787), [\#6790](https://github.com/matrix-org/synapse/issues/6790), [\#6794](https://github.com/matrix-org/synapse/issues/6794)) Bugfixes -------- - Warn if postgres database has a non-C locale, as that can cause issues when upgrading locales (e.g. due to upgrading OS). ([\#6734](https://github.com/matrix-org/synapse/issues/6734)) - Minor fixes to `PUT /_synapse/admin/v2/users` admin api. ([\#6761](https://github.com/matrix-org/synapse/issues/6761)) - Validate `client_secret` parameter using the regex provided by the Client-Server API, temporarily allowing `:` characters for older clients. The `:` character will be removed in a future release. ([\#6767](https://github.com/matrix-org/synapse/issues/6767)) - Fix persisting redaction events that have been redacted (or otherwise don't have a redacts key). ([\#6771](https://github.com/matrix-org/synapse/issues/6771)) - Fix outbound federation request metrics. ([\#6795](https://github.com/matrix-org/synapse/issues/6795)) - Fix bug where querying a remote user's device keys that weren't cached resulted in only returning a single device. ([\#6796](https://github.com/matrix-org/synapse/issues/6796)) - Fix race in federation sender worker that delayed sending of device updates. ([\#6799](https://github.com/matrix-org/synapse/issues/6799), [\#6800](https://github.com/matrix-org/synapse/issues/6800)) - Fix bug where Synapse didn't invalidate cache of remote users' devices when Synapse left a room. ([\#6801](https://github.com/matrix-org/synapse/issues/6801)) - Fix waking up other workers when remote server is detected to have come back online. ([\#6811](https://github.com/matrix-org/synapse/issues/6811)) Improved Documentation ---------------------- - Clarify documentation related to `user_dir` and `federation_reader` workers. ([\#6775](https://github.com/matrix-org/synapse/issues/6775)) Internal Changes ---------------- - Record room versions in the `rooms` table. ([\#6729](https://github.com/matrix-org/synapse/issues/6729), [\#6788](https://github.com/matrix-org/synapse/issues/6788), [\#6810](https://github.com/matrix-org/synapse/issues/6810)) - Propagate cache invalidates from workers to other workers. ([\#6748](https://github.com/matrix-org/synapse/issues/6748)) - Remove some unnecessary admin handler abstraction methods. ([\#6751](https://github.com/matrix-org/synapse/issues/6751)) - Add some debugging for media storage providers. ([\#6757](https://github.com/matrix-org/synapse/issues/6757)) - Detect unknown remote devices and mark cache as stale. ([\#6776](https://github.com/matrix-org/synapse/issues/6776), [\#6819](https://github.com/matrix-org/synapse/issues/6819)) - Attempt to resync remote users' devices when detected as stale. ([\#6786](https://github.com/matrix-org/synapse/issues/6786)) - Delete current state from the database when server leaves a room. ([\#6792](https://github.com/matrix-org/synapse/issues/6792)) - When a client asks for a remote user's device keys check if the local cache for that user has been marked as potentially stale. ([\#6797](https://github.com/matrix-org/synapse/issues/6797)) - Add background update to clean out left rooms from current state. ([\#6802](https://github.com/matrix-org/synapse/issues/6802), [\#6816](https://github.com/matrix-org/synapse/issues/6816)) - Refactoring work in preparation for changing the event redaction algorithm. ([\#6803](https://github.com/matrix-org/synapse/issues/6803), [\#6805](https://github.com/matrix-org/synapse/issues/6805), [\#6806](https://github.com/matrix-org/synapse/issues/6806), [\#6807](https://github.com/matrix-org/synapse/issues/6807), [\#6820](https://github.com/matrix-org/synapse/issues/6820))
* | | | Add support for putting fed user query API on workers (#6873)Andrew Morgan2020-03-231-0/+1
|\| | | | | | | | | | | | | | | | | | | * commit '21db35f77': Add support for putting fed user query API on workers (#6873)
| * | | Add support for putting fed user query API on workers (#6873)Erik Johnston2020-02-071-0/+1
| | | |
* | | | Allow moving group read APIs to workers (#6866)Andrew Morgan2020-03-231-0/+8
|\| | | | | | | | | | | | | | | | | | | * commit 'de2d26737': Allow moving group read APIs to workers (#6866)
| * | | Allow moving group read APIs to workers (#6866)Erik Johnston2020-02-071-0/+8
| | | |
* | | | Admin api to add an email address (#6789)Andrew Morgan2020-03-231-0/+11
|\| | | | | | | | | | | | | | | | | | | * commit '56ca93ef5': Admin api to add an email address (#6789)
| * | | Admin api to add an email address (#6789)Dirk Klimpel2020-02-071-0/+11
| | |/ | |/|
* | | Update documentation (#6859)Andrew Morgan2020-03-231-1/+2
|\ \ \ | | |/ | |/| | | | | | | * commit 'f0561fcff': Update documentation (#6859)
| * | Update documentation (#6859)Robin Vleij2020-02-051-1/+2
| | | | | | | | | | | | Update documentation to reflect the correct format of user_id (fully qualified).
* | | Warn if postgres database has non-C locale. (#6734)Andrew Morgan2020-03-231-1/+19
|\ \ \ | | |/ | |/| | | | | | | * commit '02b44db92': Warn if postgres database has non-C locale. (#6734)
| * | Warn if postgres database has non-C locale. (#6734)Erik Johnston2020-01-281-1/+19
| | | | | | | | | As using non-C locale can cause issues on upgrading OS.
* | | Merge pull request #6775 from matrix-org/jaywink/worker-docs-tweaksAndrew Morgan2020-03-231-0/+17
|\| | | | | | | | | | | | | | | | | | | | * commit 'f74d178b1': Formatting of changelog Fix federation_reader listeners doc as per PR review Clarifications to the workers documentation
| * | 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-241-0/+7
| |/ | | | | | | | | | | | | | | | | * 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>
* | Update admin room docs with correct endpoints (#6770)Andrew Morgan2020-03-231-4/+4
|\| | | | | | | | | * commit 'd31f5f4d8': Update admin room docs with correct endpoints (#6770)
| * Update admin room docs with correct endpoints (#6770)Andrew Morgan2020-01-231-4/+4
| |
* | Admin API to list, filter and sort rooms (#6720)Andrew Morgan2020-03-231-0/+173
|\| | | | | | | | | * commit '90a28fb47': Admin API to list, filter and sort rooms (#6720)
| * Admin API to list, filter and sort rooms (#6720)Andrew Morgan2020-01-221-0/+173
| |
* | Allow streaming cache invalidate all to workers. (#6749)Andrew Morgan2020-03-231-0/+5
|\| | | | | | | | | * commit '5d7a6ad22': Allow streaming cache invalidate all to workers. (#6749)
| * Allow streaming cache invalidate all to workers. (#6749)Erik Johnston2020-01-221-0/+5
| |
* | Wake up transaction queue when remote server comes back online (#6706)Andrew Morgan2020-03-231-1/+5
|\| | | | | | | | | * 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-171-1/+5
| | | | | | | | | | 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-231-132/+152
|\| | | | | | | | | | | | | 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-171-132/+152
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Quarantine media by ID or user ID (#6681)Andrew Morgan2020-03-232-8/+72
|\| | | | | | | | | * commit '1177d3f3a': Quarantine media by ID or user ID (#6681)
| * Quarantine media by ID or user ID (#6681)Andrew Morgan2020-01-132-8/+72
| |
* | Document more supported endpoints for workers (#6698)Andrew Morgan2020-03-231-0/+4
|\| | | | | | | | | * commit '47f4f493f': Document more supported endpoints for workers (#6698)
| * Document more supported endpoints for workers (#6698)Richard van der Hoff2020-01-131-0/+4
| |
* | Allow admin users to create or modify users without a shared secret (#6495)Andrew Morgan2020-03-231-1/+32
|\| | | | | | | | | | | * 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-091-1/+32
| | | | | | Signed-off-by: Manuel Stahl <manuel.stahl@awesome-technologies.de>
* | Merge pull request #6665 from matrix-org/babolivier/retention_doc_typoAndrew Morgan2020-03-201-1/+1
|\| | | | | | | | | | | * commit 'e16521faa': Changelog Fix typo in message retention policies doc
| * Fix typo in message retention policies docBrendan Abolivier2020-01-081-1/+1
| |
* | Merge pull request #6624 from matrix-org/babolivier/retention_docAndrew Morgan2020-03-201-0/+191
|\| | | | | | | | | | | | | | | | | | | | | * 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-081-0/+191
| |\ | | | | | | 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-072-6/+2
| | |\
| | * | Apply suggestions from code reviewBrendan Abolivier2020-01-071-5/+4
| | | | | | | | | | | | Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
| | * | Fix vacuum instructions for sqliteBrendan Abolivier2020-01-031-2/+2
| | | |
| | * | Add a complete documentation of the message retention policies supportBrendan Abolivier2020-01-031-0/+191
| | | |
* | | | Merge pull request #6621 from matrix-org/babolivier/purge_job_config_typoAndrew Morgan2020-03-201-5/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-071-5/+5
| |\ \ \ | | |_|/ | |/| | Fix a typo in the purge jobs configuration example
| | * | RewordBrendan Abolivier2020-01-071-3/+3
| | | |
| | * | Change the example from 5min to 12hBrendan Abolivier2020-01-071-4/+4
| | | | | | | | | | | | | | | | Have a purge job running every 5min is probably not something we want to advise admins to do as a sort-of default.
| | * | Update sample configBrendan Abolivier2020-01-031-1/+1
| | |/
* | | Automate generation of the sample and debian log configs (#6627)Andrew Morgan2020-03-201-2/+2
|\| | | | | | | | | | | | | | * commit '08815566b': Automate generation of the sample and debian log configs (#6627)
| * | Automate generation of the sample and debian log configs (#6627)Richard van der Hoff2020-01-031-2/+2
| | |
* | | Remove unused, undocumented "content repo" resource (#6628)Andrew Morgan2020-03-201-4/+0
|\| | | | | | | | | | | | | | * commit '98247c4a0': Remove unused, undocumented "content repo" resource (#6628)
| * | Remove unused, undocumented "content repo" resource (#6628)Richard van der Hoff2020-01-031-4/+0
| |/ | | | | | | | | | | This looks like it got half-killed back in #888. Fixes #6567.
* | Added the section 'Configuration' in /docs/turn-howto.md (#6614)Andrew Morgan2020-03-201-0/+2
|\| | | | | | | | | * commit '0495097a7': Added the section 'Configuration' in /docs/turn-howto.md (#6614)
| * Added the section 'Configuration' in /docs/turn-howto.md (#6614)ewaf12020-01-021-0/+2
| | | | | | | | put the 2nd part of the "source installation"-section into a new section, because it also applies to Debian packages
* | Reword sections of federate.md that explained delegation at time of Synapse ↵Andrew Morgan2020-03-201-21/+3
|\| | | | | | | | | | | | | 1.0 transition (#6601) * commit '32779b59f': Reword sections of federate.md that explained delegation at time of Synapse 1.0 transition (#6601)
| * Reword sections of federate.md that explained delegation at time of Synapse ↵Aaron Raimist2020-01-021-21/+3
| | | | | | | | | | | | | | | | | | | | | | | | 1.0 transition (#6601) * Remove sections of federate.md explaining delegation at time of Synapse 1.0 transition Signed-off-by: Aaron Raimist <aaron@raim.ist> * Add changelog Signed-off-by: Aaron Raimist <aaron@raim.ist>
| * Merge branch 'master' into developRichard van der Hoff2019-12-311-0/+43
| |\
* | \ Hacks to work around #6605 (#6608)Andrew Morgan2020-03-201-0/+43
|\ \ \ | | |/ | |/| | | | | | | | | | * commit '92eac974b': Hacks to work around #6605 (#6608) sample log config
| * | sample log config 1.7.2Richard van der Hoff2019-12-241-0/+43
| | | | | | | | | | | | TODO: automate generation of this
* | | Add an export_signing_key script (#6546)Andrew Morgan2020-03-202-14/+20
|\ \ \ | | |/ | |/| | | | | | | * commit 'b95b76256': Add an export_signing_key script (#6546)
| * | Add an export_signing_key script (#6546)Richard van der Hoff2019-12-192-14/+20
| | | | | | | | | | | | | | | I want to do some key rotation, and it is silly that we don't have a way to do this.
* | | Add option to allow profile queries without sharing a room (#6523)Andrew Morgan2020-03-191-2/+2
|\| | | | | | | | | | | | | | * commit 'bfb95654c': Add option to allow profile queries without sharing a room (#6523)
| * | Add option to allow profile queries without sharing a room (#6523)Will Hunt2019-12-161-0/+7
| | |
* | | Document Shutdown Room admin API (#6541)Andrew Morgan2020-03-191-0/+72
|\| | | | | | | | | | | | | | * commit '0b90fc6ed': Document Shutdown Room admin API (#6541)
| * | Document Shutdown Room admin API (#6541)Andrew Morgan2019-12-131-0/+72
| | |
| * | Merge branch 'master' into developErik Johnston2019-12-131-1/+13
| |\|
| | * Merge tag 'v1.7.0'Erik Johnston2019-12-134-9/+149
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Synapse 1.7.0 (2019-12-13) ========================== This release changes the default settings so that only local authenticated users can query the server's room directory. See the [upgrade notes](UPGRADE.rst#upgrading-to-v170) for details. Support for SQLite versions before 3.11 is now deprecated. A future release will refuse to start if used with an SQLite version before 3.11. Administrators are reminded that SQLite should not be used for production instances. Instructions for migrating to Postgres are available [here](docs/postgres.md). A future release of synapse will, by default, disable federation for servers using SQLite. No significant changes since 1.7.0rc2. Synapse 1.7.0rc2 (2019-12-11) ============================= Bugfixes -------- - Fix incorrect error message for invalid requests when setting user's avatar URL. ([\#6497](https://github.com/matrix-org/synapse/issues/6497)) - Fix support for SQLite 3.7. ([\#6499](https://github.com/matrix-org/synapse/issues/6499)) - Fix regression where sending email push would not work when using a pusher worker. ([\#6507](https://github.com/matrix-org/synapse/issues/6507), [\#6509](https://github.com/matrix-org/synapse/issues/6509)) Synapse 1.7.0rc1 (2019-12-09) ============================= Features -------- - Implement per-room message retention policies. ([\#5815](https://github.com/matrix-org/synapse/issues/5815), [\#6436](https://github.com/matrix-org/synapse/issues/6436)) - Add etag and count fields to key backup endpoints to help clients guess if there are new keys. ([\#5858](https://github.com/matrix-org/synapse/issues/5858)) - Add `/admin/v2/users` endpoint with pagination. Contributed by Awesome Technologies Innovationslabor GmbH. ([\#5925](https://github.com/matrix-org/synapse/issues/5925)) - Require User-Interactive Authentication for `/account/3pid/add`, meaning the user's password will be required to add a third-party ID to their account. ([\#6119](https://github.com/matrix-org/synapse/issues/6119)) - Implement the `/_matrix/federation/unstable/net.atleastfornow/state/<context>` API as drafted in MSC2314. ([\#6176](https://github.com/matrix-org/synapse/issues/6176)) - Configure privacy-preserving settings by default for the room directory. ([\#6355](https://github.com/matrix-org/synapse/issues/6355)) - Add ephemeral messages support by partially implementing [MSC2228](https://github.com/matrix-org/matrix-doc/pull/2228). ([\#6409](https://github.com/matrix-org/synapse/issues/6409)) - Add support for [MSC 2367](https://github.com/matrix-org/matrix-doc/pull/2367), which allows specifying a reason on all membership events. ([\#6434](https://github.com/matrix-org/synapse/issues/6434)) Bugfixes -------- - Transfer non-standard power levels on room upgrade. ([\#6237](https://github.com/matrix-org/synapse/issues/6237)) - Fix error from the Pillow library when uploading RGBA images. ([\#6241](https://github.com/matrix-org/synapse/issues/6241)) - Correctly apply the event filter to the `state`, `events_before` and `events_after` fields in the response to `/context` requests. ([\#6329](https://github.com/matrix-org/synapse/issues/6329)) - Fix caching devices for remote users when using workers, so that we don't attempt to refetch (and potentially fail) each time a user requests devices. ([\#6332](https://github.com/matrix-org/synapse/issues/6332)) - Prevent account data syncs getting lost across TCP replication. ([\#6333](https://github.com/matrix-org/synapse/issues/6333)) - Fix bug: TypeError in `register_user()` while using LDAP auth module. ([\#6406](https://github.com/matrix-org/synapse/issues/6406)) - Fix an intermittent exception when handling read-receipts. ([\#6408](https://github.com/matrix-org/synapse/issues/6408)) - Fix broken guest registration when there are existing blocks of numeric user IDs. ([\#6420](https://github.com/matrix-org/synapse/issues/6420)) - Fix startup error when http proxy is defined. ([\#6421](https://github.com/matrix-org/synapse/issues/6421)) - Fix error when using synapse_port_db on a vanilla synapse db. ([\#6449](https://github.com/matrix-org/synapse/issues/6449)) - Fix uploading multiple cross signing signatures for the same user. ([\#6451](https://github.com/matrix-org/synapse/issues/6451)) - Fix bug which lead to exceptions being thrown in a loop when a cross-signed device is deleted. ([\#6462](https://github.com/matrix-org/synapse/issues/6462)) - Fix `synapse_port_db` not exiting with a 0 code if something went wrong during the port process. ([\#6470](https://github.com/matrix-org/synapse/issues/6470)) - Improve sanity-checking when receiving events over federation. ([\#6472](https://github.com/matrix-org/synapse/issues/6472)) - Fix inaccurate per-block Prometheus metrics. ([\#6491](https://github.com/matrix-org/synapse/issues/6491)) - Fix small performance regression for sending invites. ([\#6493](https://github.com/matrix-org/synapse/issues/6493)) - Back out cross-signing code added in Synapse 1.5.0, which caused a performance regression. ([\#6494](https://github.com/matrix-org/synapse/issues/6494)) Improved Documentation ---------------------- - Update documentation and variables in user contributed systemd reference file. ([\#6369](https://github.com/matrix-org/synapse/issues/6369), [\#6490](https://github.com/matrix-org/synapse/issues/6490)) - Fix link in the user directory documentation. ([\#6388](https://github.com/matrix-org/synapse/issues/6388)) - Add build instructions to the docker readme. ([\#6390](https://github.com/matrix-org/synapse/issues/6390)) - Switch Ubuntu package install recommendation to use python3 packages in INSTALL.md. ([\#6443](https://github.com/matrix-org/synapse/issues/6443)) - Write some docs for the quarantine_media api. ([\#6458](https://github.com/matrix-org/synapse/issues/6458)) - Convert CONTRIBUTING.rst to markdown (among other small fixes). ([\#6461](https://github.com/matrix-org/synapse/issues/6461)) Deprecations and Removals ------------------------- - Remove admin/v1/users_paginate endpoint. Contributed by Awesome Technologies Innovationslabor GmbH. ([\#5925](https://github.com/matrix-org/synapse/issues/5925)) - Remove fallback for federation with old servers which lack the /federation/v1/state_ids API. ([\#6488](https://github.com/matrix-org/synapse/issues/6488)) Internal Changes ---------------- - Add benchmarks for structured logging and improve output performance. ([\#6266](https://github.com/matrix-org/synapse/issues/6266)) - Improve the performance of outputting structured logging. ([\#6322](https://github.com/matrix-org/synapse/issues/6322)) - Refactor some code in the event authentication path for clarity. ([\#6343](https://github.com/matrix-org/synapse/issues/6343), [\#6468](https://github.com/matrix-org/synapse/issues/6468), [\#6480](https://github.com/matrix-org/synapse/issues/6480)) - Clean up some unnecessary quotation marks around the codebase. ([\#6362](https://github.com/matrix-org/synapse/issues/6362)) - Complain on startup instead of 500'ing during runtime when `public_baseurl` isn't set when necessary. ([\#6379](https://github.com/matrix-org/synapse/issues/6379)) - Add a test scenario to make sure room history purges don't break `/messages` in the future. ([\#6392](https://github.com/matrix-org/synapse/issues/6392)) - Clarifications for the email configuration settings. ([\#6423](https://github.com/matrix-org/synapse/issues/6423)) - Add more tests to the blacklist when running in worker mode. ([\#6429](https://github.com/matrix-org/synapse/issues/6429)) - Refactor data store layer to support multiple databases in the future. ([\#6454](https://github.com/matrix-org/synapse/issues/6454), [\#6464](https://github.com/matrix-org/synapse/issues/6464), [\#6469](https://github.com/matrix-org/synapse/issues/6469), [\#6487](https://github.com/matrix-org/synapse/issues/6487)) - Port synapse.rest.client.v1 to async/await. ([\#6482](https://github.com/matrix-org/synapse/issues/6482)) - Port synapse.rest.client.v2_alpha to async/await. ([\#6483](https://github.com/matrix-org/synapse/issues/6483)) - Port SyncHandler to async/await. ([\#6484](https://github.com/matrix-org/synapse/issues/6484))
* | | \ Update workers.md to make media_repository work (again) (#6519)Andrew Morgan2020-03-191-1/+13
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | * commit '58fdcbdfe': Update workers.md to make media_repository work (again) (#6519) Remove #6369 changelog
| * | | Update workers.md to make media_repository work (again) (#6519)Mark Nowiasz2019-12-111-1/+13
| | | |
* | | | Allow SAML username provider plugins (#6411)Andrew Morgan2020-03-192-17/+119
|\ \ \ \ | | |/ / | |/| | | | | | | | | | * commit '4947de5a1': Allow SAML username provider plugins (#6411)
| * | | Allow SAML username provider plugins (#6411)Andrew Morgan2019-12-102-18/+120
| | |/ | |/|
* | | Replace /admin/v1/users_paginate endpoint with /admin/v2/users (#5925)Andrew Morgan2020-03-191-0/+45
|\| | | | | | | | | | | | | | * commit '649b6bc08': Replace /admin/v1/users_paginate endpoint with /admin/v2/users (#5925)
| * | Replace /admin/v1/users_paginate endpoint with /admin/v2/users (#5925)Manuel Stahl2019-12-051-0/+45
| | |
* | | privacy by default for room dir (#6355)Andrew Morgan2020-03-191-6/+7
|\| | | | | | | | | | | | | | * commit 'cb0aeb147': privacy by default for room dir (#6355)
| * | privacy by default for room dir (#6355)Neil Johnson2019-12-041-6/+7
| | | | | | | | | | | | Ensure that the the default settings for the room directory are that the it is hidden from public view by default.
* | | write some docs for the quarantine_media api (#6458)Andrew Morgan2020-03-191-0/+17
|\| | | | | | | | | | | | | | * commit '620f98b65': write some docs for the quarantine_media api (#6458)
| * | write some docs for the quarantine_media api (#6458)Richard van der Hoff2019-12-031-0/+17
| | |
* | | Clarifications for the email configuration settings. (#6423)Andrew Morgan2020-03-181-1/+16
|\| | | | | | | | | | | | | | * commit 'c48ea9800': Clarifications for the email configuration settings. (#6423)
| * | Clarifications for the email configuration settings. (#6423)Richard van der Hoff2019-11-281-1/+16
| | | | | | | | | Cf #6422
* | | Merge pull request #6358 from matrix-org/babolivier/message_retentionAndrew Morgan2020-03-181-0/+63
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd31f69afa': clean up buildkite output Don't restrict the tests to v1 rooms Fix worker mode Fix 3PID invite exchange Lint again Lint again Lint Don't apply retention policy based filtering on state events Implement per-room message retention policies
| * | Merge branch 'develop' into babolivier/message_retentionBrendan Abolivier2019-11-263-8/+20
| |\ \
| * | | Implement per-room message retention policiesBrendan Abolivier2019-11-041-0/+63
| | | |
* | | | Fix link to user_dir_populate.sql in the user directory docs (#6388)Andrew Morgan2020-03-181-2/+1
|\ \ \ \ | | |/ / | |/| | | | | | | | | | * commit '24cc31ee9': Fix link to user_dir_populate.sql in the user directory docs (#6388)
| * | | Fix link to user_dir_populate.sql in the user directory docs (#6388)Aaron Raimist2019-11-211-2/+1
| | |/ | |/|
* | | Replace instance variations of homeserver with correct case/spacing (#6357)Andrew Morgan2020-03-181-4/+4
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '6e1b40dc2': sample config Add changelog A couple more instances Replace instance variations of homeserver with correct case/spacing
| * | Merge branch 'develop' of github.com:matrix-org/synapse into ↵Andrew Morgan2019-11-141-1/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | anoa/homeserver_copy * 'develop' of github.com:matrix-org/synapse: Blacklist PurgeRoomTestCase (#6361) Set room version default to 5
| * | | sample configAndrew Morgan2019-11-121-4/+4
| | | |
* | | | Merge pull request #6220 from matrix-org/neilj/set_room_version_default_to_5Andrew Morgan2020-03-181-1/+1
|\ \ \ \ | | |/ / | |/| | | | | | | | | | * commit 'a42567e4a': Set room version default to 5
| * | | Merge pull request #6220 from matrix-org/neilj/set_room_version_default_to_5Brendan Abolivier2019-11-141-1/+1
| |\ \ \ | | |/ / | |/| | Set room version default to 5
| | * | Set room version default to 5Neil Johnson2019-10-191-1/+1
| | | |
* | | | document the REPLICATE command a bit better (#6305)Andrew Morgan2020-03-161-1/+14
|\| | | | | | | | | | | | | | | | | | | * commit 'cc6243b4c': document the REPLICATE command a bit better (#6305)
| * | | document the REPLICATE command a bit better (#6305)Richard van der Hoff2019-11-041-1/+14
| | |/ | |/| | | | | | | since I found myself wonder how it works
* | | Modify doc to update Google ReCaptcha terms (#6257)Andrew Morgan2020-03-161-3/+3
|\| | | | | | | | | | | * commit '9677613e9':
| * | Modify doc to update Google ReCaptcha terms (#6257)Yash Jipkate2019-10-301-3/+3
| | |
* | | Fix typo in domain name in account_threepid_delegates config option (#6273)Andrew Morgan2020-03-161-1/+1
|\| | | | | | | | | | | | | | * commit '46c12918a': Fix typo in domain name in account_threepid_delegates config option (#6273)
| * | Fix typo in domain name in account_threepid_delegates config option (#6273)Andrew Morgan2019-10-301-1/+1
| | |
* | | Option to suppress resource exceeded alerting (#6173)Andrew Morgan2020-03-161-1/+7
|\| | | | | | | | | | | | | | * commit '2794b7905': Option to suppress resource exceeded alerting (#6173)
| * | Option to suppress resource exceeded alerting (#6173)Neil Johnson2019-10-241-1/+7
| | | | | | | | | | | | The expected use case is to suppress MAU limiting on small instances
* | | Add config linting script that checks for bool casing (#6203)Andrew Morgan2020-03-161-15/+15
|\| | | | | | | | | | | | | | * commit '409c62b27': Add config linting script that checks for bool casing (#6203)
| * | Add config linting script that checks for bool casing (#6203)Andrew Morgan2019-10-231-15/+15
| | | | | | | | | | | | | | | Add a linting script that enforces all boolean values in the default config be lowercase. This has annoyed me for a while so I decided to fix it.
* | | Update postgres.md (#6234)Andrew Morgan2020-03-161-3/+7
|\| | | | | | | | | | | | | | * commit '0327a00a3': Update postgres.md (#6234)
| * | Update postgres.md (#6234)Adrien Luxey2019-10-221-3/+7
| |/ | | | | Added database owner authentication with `sudo` when `su` does not work
* | cas: support setting display name (#6114)Andrew Morgan2020-02-261-0/+1
|\|
| * cas: support setting display name (#6114)Valérian Rousset2019-10-111-0/+1
| | | | | | Now, the CAS server can return an attribute stating what's the desired displayname, instead of using the username directly.
| * Merge branch 'master' into developBrendan Abolivier2019-10-021-0/+12
| |\
* | | Merge pull request #6117 from matrix-org/erikj/fix_sample_configAndrew Morgan2020-02-251-1/+1
|\| |
| * | Fix 'redaction_retention_period' sampel config to match guidelinesErik Johnston2019-09-261-1/+1
| | |
* | | Explicitly log when a homeserver does not have a trusted key server ↵Andrew Morgan2020-02-251-4/+10
|\| | | | | | | | | | | configured (#6090)
| * | Explicitly log when a homeserver does not have a trusted key server ↵Neil Johnson2019-09-261-4/+10
| | | | | | | | | | | | configured (#6090)
* | | Merge pull request #6098 from matrix-org/erikj/cleanup_user_ips_2Andrew Morgan2020-02-251-0/+6
|\| |
| * | Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-09-251-51/+90
| |\ \ | | | | | | | | | | | | erikj/cleanup_user_ips_2
| * | | Review commentsErik Johnston2019-09-251-1/+1
| | | |
| * | | Prune rows in user_ips older than configured periodErik Johnston2019-09-241-0/+6
| | | | | | | | | | | | | | | | Defaults to pruning everything older than 28d.
* | | | Merge pull request #6037 from matrix-org/rav/saml_mapping_workAndrew Morgan2020-02-251-0/+26
|\ \ \ \ | | |/ / | |/| |
| * | | Merge remote-tracking branch 'origin/develop' into rav/saml_mapping_workRichard van der Hoff2019-09-241-1/+18
| |\ \ \
| * \ \ \ Merge branch 'develop' into rav/saml_mapping_workRichard van der Hoff2019-09-1940-2177/+2402
| |\ \ \ \
| * | | | | Record mappings from saml users in an external tableRichard van der Hoff2019-09-131-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to assign unique mxids to saml users based on an incrementing suffix. For that to work, we need to record the allocated mxid in a separate table.
* | | | | | Add submit_url response parameter to msisdn /requestToken (#6079)Andrew Morgan2020-02-251-0/+2
|\ \ \ \ \ \ | | |_|/ / / | |/| | | |
| * | | | | Add submit_url response parameter to msisdn /requestToken (#6079)Andrew Morgan2019-09-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Second part of solving #6076 Fixes #6076 We return a submit_url parameter on calls to POST */msisdn/requestToken so that clients know where to submit token information to.
* | | | | | Merge pull request #6064 from matrix-org/rav/saml_config_cleanupAndrew Morgan2020-02-251-51/+59
|\| | | | |
| * | | | | Merge pull request #6064 from matrix-org/rav/saml_config_cleanupRichard van der Hoff2019-09-231-51/+59
| |\ \ \ \ \ | | | | | | | | | | | | | | Make the sample saml config closer to our standards
| | * \ \ \ \ Merge branch 'develop' into rav/saml_config_cleanupRichard van der Hoff2019-09-1940-2177/+2402
| | |\ \ \ \ \ | | | |/ / / / | | |/| / / / | | | |/ / /
| | * | | | Make the sample saml config closer to our standardsRichard van der Hoff2019-09-131-51/+59
| | | | | | | | | | | | | | | | | | | | | | | | It' still not great, thanks to the nested dictionaries, but it's better.
* | | | | | Use the federation blacklist for requests to untrusted Identity Servers (#6000)Andrew Morgan2020-02-251-0/+3
|\| | | | |
| * | | | | Use the federation blacklist for requests to untrusted Identity Servers (#6000)Andrew Morgan2019-09-231-0/+3
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | Uses a SimpleHttpClient instance equipped with the federation_ip_range_blacklist list for requests to identity servers provided by user input. Does not use a blacklist when contacting identity servers specified by account_threepid_delegates. The homeserver trusts the latter and we don't want to prevent homeserver admins from specifying delegates that are on internal IP addresses. Fixes #5935
* | | | | Allow HS to send emails when adding an email to the HS (#6042)Andrew Morgan2020-02-251-0/+12
|\| | | |
| * | | | Allow HS to send emails when adding an email to the HS (#6042)Andrew Morgan2019-09-201-0/+12
| | | | |
* | | | | Fix typo in account_threepid_delegates config (#6028)Andrew Morgan2020-02-251-1/+1
|\| | | |
| * | | | Fix typo in account_threepid_delegates config (#6028)Jorik Schellekens2019-09-181-1/+1
| | |/ / | |/| |
* | | | Fix logcontext spam on non-Linux platforms (#6059)Andrew Morgan2020-02-251-1/+1
|\| | |
| * | | fix sample configRichard van der Hoff2019-09-181-1/+1
| | | | | | | | | | | | | | | | this was apparently broken by #6040.
* | | | (#5849) Convert rst to markdown (#6040)Andrew Morgan2020-02-2535-2179/+2074
|\| | |
| * | | (#5849) Convert rst to markdown (#6040)dstipp2019-09-1735-2179/+2074
| | | | | | | | | | | | | | | | | | | | Converting some of the rst documentation to markdown. Attempted to preserve whitespace and line breaks to minimize cosmetic change.
* | | | Add developer docs for using SAML without a server (#6032)Andrew Morgan2020-02-251-0/+37
|\| | |
| * | | Add developer docs for using SAML without a server (#6032)Travis Ralston2019-09-131-0/+37
| | | |
* | | | add explanations on how to actually include an access_token (#6031)Andrew Morgan2020-02-251-0/+12
|\ \ \ \ | | |_|/ | |/| |
| * | | add explanations on how to actually include an access_token (#6031)axel simon2019-09-131-0/+12
| | |/ | |/|
* | | add report_stats_endpoint config option (#6012)Andrew Morgan2020-02-251-0/+5
|\ \ \ | | |/ | |/|
| * | add report_stats_endpoint config option (#6012)Sorunome2019-09-121-0/+5
| | | | | | | | | This PR adds the optional `report_stats_endpoint` to configure where stats are reported to, if enabled.
* | | Merge pull request #6015 from matrix-org/erikj/ratelimit_admin_redactionAndrew Morgan2020-02-251-0/+7
|\| |
| * | Update sample configErik Johnston2019-09-111-1/+1
| | |
| * | Update sample configErik Johnston2019-09-111-0/+7
| | |
* | | Merge pull request #5934 from matrix-org/erikj/censor_redactionsAndrew Morgan2020-02-251-0/+7
|\| |
| * | Merge pull request #5934 from matrix-org/erikj/censor_redactionsErik Johnston2019-09-091-0/+7
| |\ \ | | | | | | | | Censor redactions in DB after a month
| | * | Default to censoring redactions after seven daysErik Johnston2019-09-091-3/+5
| | | |
| | * | Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-09-051-0/+62
| | |\ \ | | | | | | | | | | | | | | | erikj/censor_redactions
| | * | | Make redaction retention period configurableErik Johnston2019-09-051-0/+5
| | | | |
* | | | | Servers-known-about statistic (#5981)Andrew Morgan2020-02-251-0/+10
|\| | | |
| * | | | Servers-known-about statistic (#5981)Amber Brown2019-09-071-0/+10
| | | | |
* | | | | Allow Synapse to send registration emails + choose Synapse or an external ↵Andrew Morgan2020-02-251-13/+43
|\| | | | | | | | | | | | | | | | | | | server to handle 3pid validation (#5987)
| * | | | Allow Synapse to send registration emails + choose Synapse or an external ↵Andrew Morgan2019-09-061-13/+43
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | server to handle 3pid validation (#5987) This is a combination of a few different PRs, finally all being merged into `develop`: * #5875 * #5876 * #5868 (This one added the `/versions` flag but the flag itself was actually [backed out](https://github.com/matrix-org/synapse/commit/891afb57cbdf9867f2848341b29c75d6f35eef5a#diff-e591d42d30690ffb79f63bb726200891) in #5969. What's left is just giving /versions access to the config file, which could be useful in the future) * #5835 * #5969 * #5940 Clients should not actually use the new registration functionality until https://github.com/matrix-org/synapse/pull/5972 is merged. UPGRADE.rst, changelog entries and config file changes should all be reviewed closely before this PR is merged.
* | | | Fix and refactor room and user stats (#5971)Andrew Morgan2020-02-251-0/+62
|\| | |
| * | | Fix and refactor room and user stats (#5971)Erik Johnston2019-09-041-0/+62
| |/ / | | | | | | Previously the stats were not being correctly populated.
* | | Add a link to python's logging config schema (#5926)Andrew Morgan2020-02-241-1/+2
|\| |
| * | Add a link to python's logging config schema (#5926)Jorik Schellekens2019-08-281-1/+2
| | |
* | | Config templating (#5900)Andrew Morgan2020-02-211-8/+8
|\| |
| * | Config templating (#5900)Jorik Schellekens2019-08-281-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Template config files * Imagine a system composed entirely of x, y, z etc and the basic operations.. Wait George, why XOR? Why not just neq? George: Eh, I didn't think of that.. Co-Authored-By: Erik Johnston <erik@matrix.org>
* | | Implement a structured logging output system. (#5680)Andrew Morgan2020-02-211-0/+83
|\| |
| * | Implement a structured logging output system. (#5680)Amber Brown2019-08-281-0/+83
| | |
* | | Merge pull request #5914 from matrix-org/rei/admin_getadminAndrew Morgan2020-02-211-0/+19
|\| |
| * | Merge pull request #5914 from matrix-org/rei/admin_getadminreivilibre2019-08-281-0/+19
| |\ \ | | | | | | | | Add GET method to admin API /users/@user:dom/admin
| | * | Document GET method for retrieving admin bit of user in admin APIOlivier Wilkinson (reivilibre)2019-08-271-0/+19
| | | | | | | | | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* | | | Merge pull request #5895 from matrix-org/erikj/notary_keyAndrew Morgan2020-02-211-0/+8
|\| | |
| * | | Merge pull request #5895 from matrix-org/erikj/notary_keyErik Johnston2019-08-271-0/+8
| |\ \ \ | | |/ / | |/| | Add config option to sign remote key query responses with a separate key.
| | * | Fixup review commentsErik Johnston2019-08-231-2/+2
| | | |
| | * | Add config option for keys to use to sign keysErik Johnston2019-08-211-0/+8
| | |/ | | | | | | | | | | | | This allows servers to separate keys that are used to sign remote keys when acting as a notary server.
* | | Add Admin API capability to set adminship of a user (#5878)Andrew Morgan2020-02-211-0/+20
|\| |
| * | Add Admin API capability to set adminship of a user (#5878)reivilibre2019-08-271-0/+20
| | | | | | | | | Admin API: Set adminship of a user
* | | Propagate opentracing contexts through EDUs (#5852)Andrew Morgan2020-02-211-2/+25
|\| |
| * | Propagate opentracing contexts through EDUs (#5852)Jorik Schellekens2019-08-221-2/+25
| | | | | | | | | | | | | | | Propagate opentracing contexts through EDUs Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* | | Servlet to purge old rooms (#5845)Andrew Morgan2020-02-211-0/+18
|\| |
| * | Servlet to purge old rooms (#5845)Richard van der Hoff2019-08-221-0/+18
| |/
* | Don't load the media repo when configured to use an external media repo (#5754)Andrew Morgan2020-02-202-0/+14
|\|
| * Don't load the media repo when configured to use an external media repo (#5754)Amber Brown2019-08-132-0/+14
| |
| * LintBrendan Abolivier2019-08-011-1/+1
| |
| * Sample configBrendan Abolivier2019-08-011-0/+10
| |
* | Remove non-functional 'expire_access_token' setting (#5782)Andrew Morgan2020-02-201-4/+0
|\|
| * Remove non-functional 'expire_access_token' setting (#5782)Richard van der Hoff2019-07-301-4/+0
| | | | | | | | | | | | | | | | The `expire_access_token` didn't do what it sounded like it should do. What it actually did was make Synapse enforce the 'time' caveat on macaroons used as access tokens, but since our access token macaroons never contained such a caveat, it was always a no-op. (The code to add 'time' caveats was removed back in v0.18.5, in #1656)
* | Room Complexity Client Implementation (#5783)Andrew Morgan2020-02-201-0/+17
|\|
| * Room Complexity Client Implementation (#5783)Amber Brown2019-07-301-0/+17
| |
* | Make Jaeger fully configurable (#5694)Andrew Morgan2020-02-191-0/+16
|\|
| * Make Jaeger fully configurable (#5694)Jorik Schellekens2019-07-231-0/+16
| | | | | | | | | | | | * Allow Jaeger to be configured * Update sample config
* | Replace returnValue with return (#5736)Andrew Morgan2020-02-191-1/+1
|\|
| * Replace returnValue with return (#5736)Amber Brown2019-07-231-1/+1
| |
| * Merge branch 'release-v1.2.0' into developJorik Schellekens2019-07-222-12/+102
| |\
* | \ Opentracing Documentation (#5703)Andrew Morgan2020-02-192-12/+102
|\ \ \ | | |/ | |/|
| * | Opentracing Documentation (#5703)Jorik Schellekens2019-07-222-12/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Opentracing survival guide * Update decorator names in doc * Doc cleanup These are all alterations as a result of comments in #5703, it includes mostly typos and clarifications. The most interesting changes are: - Split developer and user docs into two sections - Add a high level description of OpenTracing * newsfile * Move contributer specific info to docstring. * Sample config. * Trailing whitespace. * Update 5703.misc * Apply suggestions from code review Mostly just rewording parts of the docs for clarity. Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* | | Update the coding style doc (#5719)Andrew Morgan2020-02-191-30/+94
|\ \ \ | | |/ | |/|
| * | Update the coding style doc (#5719)Richard van der Hoff2019-07-191-30/+94
| |/ | | | | | | | | A few fixes and removal of duplicated stuff, but mostly a bunch of the words on the config file.