Tags: athaller/synapse
Tags
Synapse 1.5.1 (2019-11-06) ========================== Features -------- - Limit the length of data returned by url previews, to prevent DoS attacks. ([\matrix-org#6331](matrix-org#6331), [\matrix-org#6334](matrix-org#6334))
Synapse 1.5.0 (2019-10-29) ========================== Security updates ---------------- This release includes a security fix ([\matrix-org#6262](matrix-org#6262), below). Administrators are encouraged to upgrade as soon as possible. Bugfixes -------- - Fix bug where room directory search was case sensitive. ([\matrix-org#6268](matrix-org#6268)) Synapse 1.5.0rc2 (2019-10-28) ============================= Bugfixes -------- - Update list of boolean columns in `synapse_port_db`. ([\matrix-org#6247](matrix-org#6247)) - Fix /keys/query API on workers. ([\matrix-org#6256](matrix-org#6256)) - Improve signature checking on some federation APIs. ([\matrix-org#6262](matrix-org#6262)) Internal Changes ---------------- - Move schema delta files to the correct data store. ([\matrix-org#6248](matrix-org#6248)) - Small performance improvement by removing repeated config lookups in room stats calculation. ([\matrix-org#6255](matrix-org#6255)) Synapse 1.5.0rc1 (2019-10-24) ========================== Features -------- - Improve quality of thumbnails for 1-bit/8-bit color palette images. ([\matrix-org#2142](matrix-org#2142)) - Add ability to upload cross-signing signatures. ([\matrix-org#5726](matrix-org#5726)) - Allow uploading of cross-signing keys. ([\matrix-org#5769](matrix-org#5769)) - CAS login now provides a default display name for users if a `displayname_attribute` is set in the configuration file. ([\matrix-org#6114](matrix-org#6114)) - Reject all pending invites for a user during deactivation. ([\matrix-org#6125](matrix-org#6125)) - Add config option to suppress client side resource limit alerting. ([\matrix-org#6173](matrix-org#6173)) Bugfixes -------- - Return an HTTP 404 instead of 400 when requesting a filter by ID that is unknown to the server. Thanks to @krombel for contributing this! ([\matrix-org#2380](matrix-org#2380)) - Fix a bug where users could be invited twice to the same group. ([\matrix-org#3436](matrix-org#3436)) - Fix `/createRoom` failing with badly-formatted MXIDs in the invitee list. Thanks to @wener291! ([\matrix-org#4088](matrix-org#4088)) - Make the `synapse_port_db` script create the right indexes on a new PostgreSQL database. ([\matrix-org#6102](matrix-org#6102), [\matrix-org#6178](matrix-org#6178), [\matrix-org#6243](matrix-org#6243)) - Fix bug when uploading a large file: Synapse responds with `M_UNKNOWN` while it should be `M_TOO_LARGE` according to spec. Contributed by Anshul Angaria. ([\matrix-org#6109](matrix-org#6109)) - Fix user push rules being deleted from a room when it is upgraded. ([\matrix-org#6144](matrix-org#6144)) - Don't 500 when trying to exchange a revoked 3PID invite. ([\matrix-org#6147](matrix-org#6147)) - Fix transferring notifications and tags when joining an upgraded room that is new to your server. ([\matrix-org#6155](matrix-org#6155)) - Fix bug where guest account registration can wedge after restart. ([\matrix-org#6161](matrix-org#6161)) - Fix monthly active user reaping when reserved users are specified. ([\matrix-org#6168](matrix-org#6168)) - Fix `/federation/v1/state` endpoint not supporting newer room versions. ([\matrix-org#6170](matrix-org#6170)) - Fix bug where we were updating censored events as bytes rather than text, occaisonally causing invalid JSON being inserted breaking APIs that attempted to fetch such events. ([\matrix-org#6186](matrix-org#6186)) - Fix occasional missed updates in the room and user directories. ([\matrix-org#6187](matrix-org#6187)) - Fix tracing of non-JSON APIs, `/media`, `/key` etc. ([\matrix-org#6195](matrix-org#6195)) - Fix bug where presence would not get timed out correctly if a synchrotron worker is used and restarted. ([\matrix-org#6212](matrix-org#6212)) - synapse_port_db: Add 2 additional BOOLEAN_COLUMNS to be able to convert from database schema v56. ([\matrix-org#6216](matrix-org#6216)) - Fix a bug where the Synapse demo script blacklisted `::1` (ipv6 localhost) from receiving federation traffic. ([\matrix-org#6229](matrix-org#6229)) Updates to the Docker image --------------------------- - Fix logging getting lost for the docker image. ([\matrix-org#6197](matrix-org#6197)) Internal Changes ---------------- - Update `user_filters` table to have a unique index, and non-null columns. Thanks to @pik for contributing this. ([\matrix-org#1172](matrix-org#1172), [\matrix-org#6175](matrix-org#6175), [\matrix-org#6184](matrix-org#6184)) - Allow devices to be marked as hidden, for use by features such as cross-signing. This adds a new field with a default value to the devices field in the database, and so the database upgrade may take a long time depending on how many devices are in the database. ([\matrix-org#5759](matrix-org#5759)) - Move lookup-related functions from RoomMemberHandler to IdentityHandler. ([\matrix-org#5978](matrix-org#5978)) - Improve performance of the public room list directory. ([\matrix-org#6019](matrix-org#6019), [\matrix-org#6152](matrix-org#6152), [\matrix-org#6153](matrix-org#6153), [\matrix-org#6154](matrix-org#6154)) - Edit header dicts docstrings in `SimpleHttpClient` to note that `str` or `bytes` can be passed as header keys. ([\matrix-org#6077](matrix-org#6077)) - Add snapcraft packaging information. Contributed by @devec0. ([\matrix-org#6084](matrix-org#6084), [\matrix-org#6191](matrix-org#6191)) - Kill off half-implemented password-reset via sms. ([\matrix-org#6101](matrix-org#6101)) - Remove `get_user_by_req` opentracing span and add some tags. ([\matrix-org#6108](matrix-org#6108)) - Drop some unused database tables. ([\matrix-org#6115](matrix-org#6115)) - Add env var to turn on tracking of log context changes. ([\matrix-org#6127](matrix-org#6127)) - Refactor configuration loading to allow better typechecking. ([\matrix-org#6137](matrix-org#6137)) - Log responder when responding to media request. ([\matrix-org#6139](matrix-org#6139)) - Improve performance of `find_next_generated_user_id` DB query. ([\matrix-org#6148](matrix-org#6148)) - Expand type-checking on modules imported by `synapse.config`. ([\matrix-org#6150](matrix-org#6150)) - Use Postgres ANY for selecting many values. ([\matrix-org#6156](matrix-org#6156)) - Add more caching to `_get_joined_users_from_context` DB query. ([\matrix-org#6159](matrix-org#6159)) - Add some metrics on the federation sender. ([\matrix-org#6160](matrix-org#6160)) - Add some logging to the rooms stats updates, to try to track down a flaky test. ([\matrix-org#6167](matrix-org#6167)) - Remove unused `timeout` parameter from `_get_public_room_list`. ([\matrix-org#6179](matrix-org#6179)) - Reject (accidental) attempts to insert bytes into postgres tables. ([\matrix-org#6186](matrix-org#6186)) - Make `version` optional in body of `PUT /room_keys/version/{version}`, since it's redundant. ([\matrix-org#6189](matrix-org#6189)) - Make storage layer responsible for adding device names to key, rather than the handler. ([\matrix-org#6193](matrix-org#6193)) - Port `synapse.rest.admin` module to use async/await. ([\matrix-org#6196](matrix-org#6196)) - Enforce that all boolean configuration values are lowercase in CI. ([\matrix-org#6203](matrix-org#6203)) - Remove some unused event-auth code. ([\matrix-org#6214](matrix-org#6214)) - Remove `Auth.check` method. ([\matrix-org#6217](matrix-org#6217)) - Remove `format_tap.py` script in favour of a perl reimplementation in Sytest's repo. ([\matrix-org#6219](matrix-org#6219)) - Refactor storage layer in preparation to support having multiple databases. ([\matrix-org#6231](matrix-org#6231)) - Remove some extra quotation marks across the codebase. ([\matrix-org#6236](matrix-org#6236))
Synapse 1.5.0rc2 (2019-10-28) ============================= Bugfixes -------- - Update list of boolean columns in `synapse_port_db`. ([\matrix-org#6247](matrix-org#6247)) - Fix /keys/query API on workers. ([\matrix-org#6256](matrix-org#6256)) - Improve signature checking on some federation APIs. ([\matrix-org#6262](matrix-org#6262)) Internal Changes ---------------- - Move schema delta files to the correct data store. ([\matrix-org#6248](matrix-org#6248)) - Small performance improvement by removing repeated config lookups in room stats calculation. ([\matrix-org#6255](matrix-org#6255))
Synapse 1.5.0rc1 (2019-10-24) ========================== This release includes a database migration step **which may take a long time to complete**: - Allow devices to be marked as hidden, for use by features such as cross-signing. This adds a new field with a default value to the devices field in the database, and so the database upgrade may take a long time depending on how many devices are in the database. ([\matrix-org#5759](matrix-org#5759)) Features -------- - Improve quality of thumbnails for 1-bit/8-bit color palette images. ([\matrix-org#2142](matrix-org#2142)) - Add ability to upload cross-signing signatures. ([\matrix-org#5726](matrix-org#5726)) - Allow uploading of cross-signing keys. ([\matrix-org#5769](matrix-org#5769)) - CAS login now provides a default display name for users if a `displayname_attribute` is set in the configuration file. ([\matrix-org#6114](matrix-org#6114)) - Reject all pending invites for a user during deactivation. ([\matrix-org#6125](matrix-org#6125)) - Add config option to suppress client side resource limit alerting. ([\matrix-org#6173](matrix-org#6173)) Bugfixes -------- - Return an HTTP 404 instead of 400 when requesting a filter by ID that is unknown to the server. Thanks to @krombel for contributing this! ([\matrix-org#2380](matrix-org#2380)) - Fix a bug where users could be invited twice to the same group. ([\matrix-org#3436](matrix-org#3436)) - Fix `/createRoom` failing with badly-formatted MXIDs in the invitee list. Thanks to @wener291! ([\matrix-org#4088](matrix-org#4088)) - Make the `synapse_port_db` script create the right indexes on a new PostgreSQL database. ([\matrix-org#6102](matrix-org#6102), [\matrix-org#6178](matrix-org#6178), [\matrix-org#6243](matrix-org#6243)) - Fix bug when uploading a large file: Synapse responds with `M_UNKNOWN` while it should be `M_TOO_LARGE` according to spec. Contributed by Anshul Angaria. ([\matrix-org#6109](matrix-org#6109)) - Fix user push rules being deleted from a room when it is upgraded. ([\matrix-org#6144](matrix-org#6144)) - Don't 500 when trying to exchange a revoked 3PID invite. ([\matrix-org#6147](matrix-org#6147)) - Fix transferring notifications and tags when joining an upgraded room that is new to your server. ([\matrix-org#6155](matrix-org#6155)) - Fix bug where guest account registration can wedge after restart. ([\matrix-org#6161](matrix-org#6161)) - Fix monthly active user reaping when reserved users are specified. ([\matrix-org#6168](matrix-org#6168)) - Fix `/federation/v1/state` endpoint not supporting newer room versions. ([\matrix-org#6170](matrix-org#6170)) - Fix bug where we were updating censored events as bytes rather than text, occaisonally causing invalid JSON being inserted breaking APIs that attempted to fetch such events. ([\matrix-org#6186](matrix-org#6186)) - Fix occasional missed updates in the room and user directories. ([\matrix-org#6187](matrix-org#6187)) - Fix tracing of non-JSON APIs, `/media`, `/key` etc. ([\matrix-org#6195](matrix-org#6195)) - Fix bug where presence would not get timed out correctly if a synchrotron worker is used and restarted. ([\matrix-org#6212](matrix-org#6212)) - synapse_port_db: Add 2 additional BOOLEAN_COLUMNS to be able to convert from database schema v56. ([\matrix-org#6216](matrix-org#6216)) - Fix a bug where the Synapse demo script blacklisted `::1` (ipv6 localhost) from receiving federation traffic. ([\matrix-org#6229](matrix-org#6229)) Updates to the Docker image --------------------------- - Fix logging getting lost for the docker image. ([\matrix-org#6197](matrix-org#6197)) Internal Changes ---------------- - Update `user_filters` table to have a unique index, and non-null columns. Thanks to @pik for contributing this. ([\matrix-org#1172](matrix-org#1172), [\matrix-org#6175](matrix-org#6175), [\matrix-org#6184](matrix-org#6184)) - Move lookup-related functions from RoomMemberHandler to IdentityHandler. ([\matrix-org#5978](matrix-org#5978)) - Improve performance of the public room list directory. ([\matrix-org#6019](matrix-org#6019), [\matrix-org#6152](matrix-org#6152), [\matrix-org#6153](matrix-org#6153), [\matrix-org#6154](matrix-org#6154)) - Edit header dicts docstrings in `SimpleHttpClient` to note that `str` or `bytes` can be passed as header keys. ([\matrix-org#6077](matrix-org#6077)) - Add snapcraft packaging information. Contributed by @devec0. ([\matrix-org#6084](matrix-org#6084), [\matrix-org#6191](matrix-org#6191)) - Kill off half-implemented password-reset via sms. ([\matrix-org#6101](matrix-org#6101)) - Remove `get_user_by_req` opentracing span and add some tags. ([\matrix-org#6108](matrix-org#6108)) - Drop some unused database tables. ([\matrix-org#6115](matrix-org#6115)) - Add env var to turn on tracking of log context changes. ([\matrix-org#6127](matrix-org#6127)) - Refactor configuration loading to allow better typechecking. ([\matrix-org#6137](matrix-org#6137)) - Log responder when responding to media request. ([\matrix-org#6139](matrix-org#6139)) - Improve performance of `find_next_generated_user_id` DB query. ([\matrix-org#6148](matrix-org#6148)) - Expand type-checking on modules imported by `synapse.config`. ([\matrix-org#6150](matrix-org#6150)) - Use Postgres ANY for selecting many values. ([\matrix-org#6156](matrix-org#6156)) - Add more caching to `_get_joined_users_from_context` DB query. ([\matrix-org#6159](matrix-org#6159)) - Add some metrics on the federation sender. ([\matrix-org#6160](matrix-org#6160)) - Add some logging to the rooms stats updates, to try to track down a flaky test. ([\matrix-org#6167](matrix-org#6167)) - Remove unused `timeout` parameter from `_get_public_room_list`. ([\matrix-org#6179](matrix-org#6179)) - Reject (accidental) attempts to insert bytes into postgres tables. ([\matrix-org#6186](matrix-org#6186)) - Make `version` optional in body of `PUT /room_keys/version/{version}`, since it's redundant. ([\matrix-org#6189](matrix-org#6189)) - Make storage layer responsible for adding device names to key, rather than the handler. ([\matrix-org#6193](matrix-org#6193)) - Port `synapse.rest.admin` module to use async/await. ([\matrix-org#6196](matrix-org#6196)) - Enforce that all boolean configuration values are lowercase in CI. ([\matrix-org#6203](matrix-org#6203)) - Remove some unused event-auth code. ([\matrix-org#6214](matrix-org#6214)) - Remove `Auth.check` method. ([\matrix-org#6217](matrix-org#6217)) - Remove `format_tap.py` script in favour of a perl reimplementation in Sytest's repo. ([\matrix-org#6219](matrix-org#6219)) - Refactor storage layer in preparation to support having multiple databases. ([\matrix-org#6231](matrix-org#6231)) - Remove some extra quotation marks across the codebase. ([\matrix-org#6236](matrix-org#6236))
Synapse 1.4.1 (2019-10-18) ========================== No changes since 1.4.1rc1. Synapse 1.4.1rc1 (2019-10-17) ============================= Bugfixes -------- - Fix bug where redacted events were sometimes incorrectly censored in the database, breaking APIs that attempted to fetch such events. ([\matrix-org#6185](matrix-org#6185), [5b0e994](matrix-org@5b0e994))
Synapse 1.4.1rc1 (2019-10-17) ============================= Bugfixes -------- - Fix bug where redacted events were sometimes incorrectly censored in the database, breaking APIs that attempted to fetch such events. ([\matrix-org#6185](matrix-org#6185), [5b0e994](matrix-org@5b0e994))
Synapse 1.4.0 (2019-10-03) ========================== Bugfixes -------- - Redact `client_secret` in server logs. ([\matrix-org#6158](matrix-org#6158)) Synapse 1.4.0rc2 (2019-10-02) ============================= Bugfixes -------- - Fix bug in background update that adds last seen information to the `devices` table, and improve its performance on Postgres. ([\matrix-org#6135](matrix-org#6135)) - Fix bad performance of censoring redactions background task. ([\matrix-org#6141](matrix-org#6141)) - Fix fetching censored redactions from DB, which caused APIs like initial sync to fail if it tried to include the censored redaction. ([\matrix-org#6145](matrix-org#6145)) - Fix exceptions when storing large retry intervals for down remote servers. ([\matrix-org#6146](matrix-org#6146)) Internal Changes ---------------- - Fix up sample config entry for `redaction_retention_period` option. ([\matrix-org#6117](matrix-org#6117)) Synapse 1.4.0rc1 (2019-09-26) ============================= Note that this release includes significant changes around 3pid verification. Administrators are reminded to review the [upgrade notes](UPGRADE.rst#upgrading-to-v140). Features -------- - Changes to 3pid verification: - Add the ability to send registration emails from the homeserver rather than delegating to an identity server. ([\matrix-org#5835](matrix-org#5835), [\matrix-org#5940](matrix-org#5940), [\matrix-org#5993](matrix-org#5993), [\matrix-org#5994](matrix-org#5994), [\matrix-org#5868](matrix-org#5868)) - Replace `trust_identity_server_for_password_resets` config option with `account_threepid_delegates`, and make the `id_server` parameteter optional on `*/requestToken` endpoints, as per [MSC2263](matrix-org/matrix-spec-proposals#2263). ([\matrix-org#5876](matrix-org#5876), [\matrix-org#5969](matrix-org#5969), [\matrix-org#6028](matrix-org#6028)) - Switch to using the v2 Identity Service `/lookup` API where available, with fallback to v1. (Implements [MSC2134](matrix-org/matrix-spec-proposals#2134) plus `id_access_token authentication` for v2 Identity Service APIs from [MSC2140](matrix-org/matrix-spec-proposals#2140)). ([\matrix-org#5897](matrix-org#5897)) - Remove `bind_email` and `bind_msisdn` parameters from `/register` ala [MSC2140](matrix-org/matrix-spec-proposals#2140). ([\matrix-org#5964](matrix-org#5964)) - Add `m.id_access_token` to `unstable_features` in `/versions` as per [MSC2264](matrix-org/matrix-spec-proposals#2264). ([\matrix-org#5974](matrix-org#5974)) - Use the v2 Identity Service API for 3PID invites. ([\matrix-org#5979](matrix-org#5979)) - Add `POST /_matrix/client/unstable/account/3pid/unbind` endpoint from [MSC2140](matrix-org/matrix-spec-proposals#2140) for unbinding a 3PID from an identity server without removing it from the homeserver user account. ([\matrix-org#5980](matrix-org#5980), [\matrix-org#6062](matrix-org#6062)) - Use `account_threepid_delegate.email` and `account_threepid_delegate.msisdn` for validating threepid sessions. ([\matrix-org#6011](matrix-org#6011)) - Allow homeserver to handle or delegate email validation when adding an email to a user's account. ([\matrix-org#6042](matrix-org#6042)) - Implement new Client Server API endpoints `/account/3pid/add` and `/account/3pid/bind` as per [MSC2290](matrix-org/matrix-spec-proposals#2290). ([\matrix-org#6043](matrix-org#6043)) - Add an unstable feature flag for separate add/bind 3pid APIs. ([\matrix-org#6044](matrix-org#6044)) - Remove `bind` parameter from Client Server POST `/account` endpoint as per [MSC2290](matrix-org/matrix-spec-proposals#2290). ([\matrix-org#6067](matrix-org#6067)) - Add `POST /add_threepid/msisdn/submit_token` endpoint for proxying submitToken on an `account_threepid_handler`. ([\matrix-org#6078](matrix-org#6078)) - Add `submit_url` response parameter to `*/msisdn/requestToken` endpoints. ([\matrix-org#6079](matrix-org#6079)) - Add `m.require_identity_server` flag to /version's unstable_features. ([\matrix-org#5972](matrix-org#5972)) - Enhancements to OpenTracing support: - Make OpenTracing work in worker mode. ([\matrix-org#5771](matrix-org#5771)) - Pass OpenTracing contexts between servers when transmitting EDUs. ([\matrix-org#5852](matrix-org#5852)) - OpenTracing for device list updates. ([\matrix-org#5853](matrix-org#5853)) - Add a tag recording a request's authenticated entity and corresponding servlet in OpenTracing. ([\matrix-org#5856](matrix-org#5856)) - Add minimum OpenTracing for client servlets. ([\matrix-org#5983](matrix-org#5983)) - Check at setup that OpenTracing is installed if it's enabled in the config. ([\matrix-org#5985](matrix-org#5985)) - Trace replication send times. ([\matrix-org#5986](matrix-org#5986)) - Include missing OpenTracing contexts in outbout replication requests. ([\matrix-org#5982](matrix-org#5982)) - Fix sending of EDUs when OpenTracing is enabled with an empty whitelist. ([\matrix-org#5984](matrix-org#5984)) - Fix invalid references to None while OpenTracing if the log context slips. ([\matrix-org#5988](matrix-org#5988), [\matrix-org#5991](matrix-org#5991)) - OpenTracing for room and e2e keys. ([\matrix-org#5855](matrix-org#5855)) - Add OpenTracing span over HTTP push processing. ([\matrix-org#6003](matrix-org#6003)) - Add an admin API to purge old rooms from the database. ([\matrix-org#5845](matrix-org#5845)) - Retry well-known lookups if we have recently seen a valid well-known record for the server. ([\matrix-org#5850](matrix-org#5850)) - Add support for filtered room-directory search requests over federation ([MSC2197](matrix-org/matrix-spec-proposals#2197), in order to allow upcoming room directory query performance improvements. ([\matrix-org#5859](matrix-org#5859)) - Correctly retry all hosts returned from SRV when we fail to connect. ([\matrix-org#5864](matrix-org#5864)) - Add admin API endpoint for setting whether or not a user is a server administrator. ([\matrix-org#5878](matrix-org#5878)) - Enable cleaning up extremities with dummy events by default to prevent undue build up of forward extremities. ([\matrix-org#5884](matrix-org#5884)) - Add config option to sign remote key query responses with a separate key. ([\matrix-org#5895](matrix-org#5895)) - Add support for config templating. ([\matrix-org#5900](matrix-org#5900)) - Users with the type of "support" or "bot" are no longer required to consent. ([\matrix-org#5902](matrix-org#5902)) - Let synctl accept a directory of config files. ([\matrix-org#5904](matrix-org#5904)) - Increase max display name size to 256. ([\matrix-org#5906](matrix-org#5906)) - Add admin API endpoint for getting whether or not a user is a server administrator. ([\matrix-org#5914](matrix-org#5914)) - Redact events in the database that have been redacted for a week. ([\matrix-org#5934](matrix-org#5934)) - New prometheus metrics: - `synapse_federation_known_servers`: represents the total number of servers your server knows about (i.e. is in rooms with), including itself. Enable by setting `metrics_flags.known_servers` to True in the configuration.([\matrix-org#5981](matrix-org#5981)) - `synapse_build_info`: exposes the Python version, OS version, and Synapse version of the running server. ([\matrix-org#6005](matrix-org#6005)) - Give appropriate exit codes when synctl fails. ([\matrix-org#5992](matrix-org#5992)) - Apply the federation blacklist to requests to identity servers. ([\matrix-org#6000](matrix-org#6000)) - Add `report_stats_endpoint` option to configure where stats are reported to, if enabled. Contributed by @Sorunome. ([\matrix-org#6012](matrix-org#6012)) - Add config option to increase ratelimits for room admins redacting messages. ([\matrix-org#6015](matrix-org#6015)) - Stop sending federation transactions to servers which have been down for a long time. ([\matrix-org#6026](matrix-org#6026)) - Make the process for mapping SAML2 users to matrix IDs more flexible. ([\matrix-org#6037](matrix-org#6037)) - Return a clearer error message when a timeout occurs when attempting to contact an identity server. ([\matrix-org#6073](matrix-org#6073)) - Prevent password reset's submit_token endpoint from accepting trailing slashes. ([\matrix-org#6074](matrix-org#6074)) - Return 403 on `/register/available` if registration has been disabled. ([\matrix-org#6082](matrix-org#6082)) - Explicitly log when a homeserver does not have the `trusted_key_servers` config field configured. ([\matrix-org#6090](matrix-org#6090)) - Add support for pruning old rows in `user_ips` table. ([\matrix-org#6098](matrix-org#6098)) Bugfixes -------- - Don't create broken room when `power_level_content_override.users` does not contain `creator_id`. ([\matrix-org#5633](matrix-org#5633)) - Fix database index so that different backup versions can have the same sessions. ([\matrix-org#5857](matrix-org#5857)) - Fix Synapse looking for config options `password_reset_failure_template` and `password_reset_success_template`, when they are actually `password_reset_template_failure_html`, `password_reset_template_success_html`. ([\matrix-org#5863](matrix-org#5863)) - Fix stack overflow when recovering an appservice which had an outage. ([\matrix-org#5885](matrix-org#5885)) - Fix error message which referred to `public_base_url` instead of `public_baseurl`. Thanks to @aaronraimist for the fix! ([\matrix-org#5909](matrix-org#5909)) - Fix 404 for thumbnail download when `dynamic_thumbnails` is `false` and the thumbnail was dynamically generated. Fix reported by rkfg. ([\matrix-org#5915](matrix-org#5915)) - Fix a cache-invalidation bug for worker-based deployments. ([\matrix-org#5920](matrix-org#5920)) - Fix admin API for listing media in a room not being available with an external media repo. ([\matrix-org#5966](matrix-org#5966)) - Fix list media admin API always returning an error. ([\matrix-org#5967](matrix-org#5967)) - Fix room and user stats tracking. ([\matrix-org#5971](matrix-org#5971), [\matrix-org#5998](matrix-org#5998), [\matrix-org#6029](matrix-org#6029)) - Return a `M_MISSING_PARAM` if `sid` is not provided to `/account/3pid`. ([\matrix-org#5995](matrix-org#5995)) - `federation_certificate_verification_whitelist` now will not cause `TypeErrors` to be raised (a regression in 1.3). Additionally, it now supports internationalised domain names in their non-canonical representation. ([\matrix-org#5996](matrix-org#5996)) - Only count real users when checking for auto-creation of auto-join room. ([\matrix-org#6004](matrix-org#6004)) - Ensure support users can be registered even if MAU limit is reached. ([\matrix-org#6020](matrix-org#6020)) - Fix bug where login error was shown incorrectly on SSO fallback login. ([\matrix-org#6024](matrix-org#6024)) - Fix bug in calculating the federation retry backoff period. ([\matrix-org#6025](matrix-org#6025)) - Prevent exceptions being logged when extremity-cleanup events fail due to lack of user consent to the terms of service. ([\matrix-org#6053](matrix-org#6053)) - Remove POST method from password-reset `submit_token` endpoint until we implement `submit_url` functionality. ([\matrix-org#6056](matrix-org#6056)) - Fix logcontext spam on non-Linux platforms. ([\matrix-org#6059](matrix-org#6059)) - Ensure query parameters in email validation links are URL-encoded. ([\matrix-org#6063](matrix-org#6063)) - Fix a bug which caused SAML attribute maps to be overridden by defaults. ([\matrix-org#6069](matrix-org#6069)) - Fix the logged number of updated items for the `users_set_deactivated_flag` background update. ([\matrix-org#6092](matrix-org#6092)) - Add `sid` to `next_link` for email validation. ([\matrix-org#6097](matrix-org#6097)) - Threepid validity checks on msisdns should not be dependent on `threepid_behaviour_email`. ([\matrix-org#6104](matrix-org#6104)) - Ensure that servers which are not configured to support email address verification do not offer it in the registration flows. ([\matrix-org#6107](matrix-org#6107)) Updates to the Docker image --------------------------- - Avoid changing `UID/GID` if they are already correct. ([\matrix-org#5970](matrix-org#5970)) - Provide `SYNAPSE_WORKER` envvar to specify python module. ([\matrix-org#6058](matrix-org#6058)) Improved Documentation ---------------------- - Convert documentation to markdown (from rst) ([\matrix-org#5849](matrix-org#5849)) - Update `INSTALL.md` to say that Python 2 is no longer supported. ([\matrix-org#5953](matrix-org#5953)) - Add developer documentation for using SAML2. ([\matrix-org#6032](matrix-org#6032)) - Add some notes on rolling back to v1.3.1. ([\matrix-org#6049](matrix-org#6049)) - Update the upgrade notes. ([\matrix-org#6050](matrix-org#6050)) Deprecations and Removals ------------------------- - Remove shared-secret registration from `/_matrix/client/r0/register` endpoint. Contributed by Awesome Technologies Innovationslabor GmbH. ([\matrix-org#5877](matrix-org#5877)) - Deprecate the `trusted_third_party_id_servers` option. ([\matrix-org#5875](matrix-org#5875)) Internal Changes ---------------- - Lay the groundwork for structured logging output. ([\matrix-org#5680](matrix-org#5680)) - Retry well-known lookup before the cache expires, giving a grace period where the remote well-known can be down but we still use the old result. ([\matrix-org#5844](matrix-org#5844)) - Remove log line for debugging issue matrix-org#5407. ([\matrix-org#5860](matrix-org#5860)) - Refactor the Appservice scheduler code. ([\matrix-org#5886](matrix-org#5886)) - Compatibility with v2 Identity Service APIs other than /lookup. ([\matrix-org#5892](matrix-org#5892), [\matrix-org#6013](matrix-org#6013)) - Stop populating some unused tables. ([\matrix-org#5893](matrix-org#5893), [\matrix-org#6047](matrix-org#6047)) - Add missing index on `users_in_public_rooms` to improve the performance of directory queries. ([\matrix-org#5894](matrix-org#5894)) - Improve the logging when we have an error when fetching signing keys. ([\matrix-org#5896](matrix-org#5896)) - Add support for database engine-specific schema deltas, based on file extension. ([\matrix-org#5911](matrix-org#5911)) - Update Buildkite pipeline to use plugins instead of buildkite-agent commands. ([\matrix-org#5922](matrix-org#5922)) - Add link in sample config to the logging config schema. ([\matrix-org#5926](matrix-org#5926)) - Remove unnecessary parentheses in return statements. ([\matrix-org#5931](matrix-org#5931)) - Remove unused `jenkins/prepare_sytest.sh` file. ([\matrix-org#5938](matrix-org#5938)) - Move Buildkite pipeline config to the pipelines repo. ([\matrix-org#5943](matrix-org#5943)) - Remove unnecessary return statements in the codebase which were the result of a regex run. ([\matrix-org#5962](matrix-org#5962)) - Remove left-over methods from v1 registration API. ([\matrix-org#5963](matrix-org#5963)) - Cleanup event auth type initialisation. ([\matrix-org#5975](matrix-org#5975)) - Clean up dependency checking at setup. ([\matrix-org#5989](matrix-org#5989)) - Update OpenTracing docs to use the unified `trace` method. ([\matrix-org#5776](matrix-org#5776)) - Small refactor of function arguments and docstrings in` RoomMemberHandler`. ([\matrix-org#6009](matrix-org#6009)) - Remove unused `origin` argument on `FederationHandler.add_display_name_to_third_party_invite`. ([\matrix-org#6010](matrix-org#6010)) - Add a `failure_ts` column to the `destinations` database table. ([\matrix-org#6016](matrix-org#6016), [\matrix-org#6072](matrix-org#6072)) - Clean up some code in the retry logic. ([\matrix-org#6017](matrix-org#6017)) - Fix the structured logging tests stomping on the global log configuration for subsequent tests. ([\matrix-org#6023](matrix-org#6023)) - Clean up the sample config for SAML authentication. ([\matrix-org#6064](matrix-org#6064)) - Change mailer logging to reflect Synapse doesn't just do chat notifications by email now. ([\matrix-org#6075](matrix-org#6075)) - Move last-seen info into devices table. ([\matrix-org#6089](matrix-org#6089)) - Remove unused parameter to `get_user_id_by_threepid`. ([\matrix-org#6099](matrix-org#6099)) - Refactor the user-interactive auth handling. ([\matrix-org#6105](matrix-org#6105)) - Refactor code for calculating registration flows. ([\matrix-org#6106](matrix-org#6106))
Synapse 1.4.0rc2 (2019-10-02) ============================= Bugfixes -------- - Fix bug in background update that adds last seen information to the `devices` table, and improve its performance on Postgres. ([\matrix-org#6135](matrix-org#6135)) - Fix bad performance of censoring redactions background task. ([\matrix-org#6141](matrix-org#6141)) - Fix fetching censored redactions from DB, which caused APIs like initial sync to fail if it tried to include the censored redaction. ([\matrix-org#6145](matrix-org#6145)) - Fix exceptions when storing large retry intervals for down remote servers. ([\matrix-org#6146](matrix-org#6146)) Internal Changes ---------------- - Fix up sample config entry for `redaction_retention_period` option. ([\matrix-org#6117](matrix-org#6117))
Synapse 1.4.0rc1 (2019-09-26) ============================= Note that this release includes significant changes around 3pid verification. Administrators are reminded to review the [upgrade notes](UPGRADE.rst##upgrading-to-v140). Features -------- - Changes to 3pid verification: - Add the ability to send registration emails from the homeserver rather than delegating to an identity server. ([\matrix-org#5835](matrix-org#5835), [\matrix-org#5940](matrix-org#5940), [\matrix-org#5993](matrix-org#5993), [\matrix-org#5994](matrix-org#5994), [\matrix-org#5868](matrix-org#5868)) - Replace `trust_identity_server_for_password_resets` config option with `account_threepid_delegates`, and make the `id_server` parameteter optional on `*/requestToken` endpoints, as per [MSC2263](matrix-org/matrix-spec-proposals#2263). ([\matrix-org#5876](matrix-org#5876), [\matrix-org#5969](matrix-org#5969), [\matrix-org#6028](matrix-org#6028)) - Switch to using the v2 Identity Service `/lookup` API where available, with fallback to v1. (Implements [MSC2134](matrix-org/matrix-spec-proposals#2134) plus `id_access_token authentication` for v2 Identity Service APIs from [MSC2140](matrix-org/matrix-spec-proposals#2140)). ([\matrix-org#5897](matrix-org#5897)) - Remove `bind_email` and `bind_msisdn` parameters from `/register` ala [MSC2140](matrix-org/matrix-spec-proposals#2140). ([\matrix-org#5964](matrix-org#5964)) - Add `m.id_access_token` to `unstable_features` in `/versions` as per [MSC2264](matrix-org/matrix-spec-proposals#2264). ([\matrix-org#5974](matrix-org#5974)) - Use the v2 Identity Service API for 3PID invites. ([\matrix-org#5979](matrix-org#5979)) - Add `POST /_matrix/client/unstable/account/3pid/unbind` endpoint from [MSC2140](matrix-org/matrix-spec-proposals#2140) for unbinding a 3PID from an identity server without removing it from the homeserver user account. ([\matrix-org#5980](matrix-org#5980), [\matrix-org#6062](matrix-org#6062)) - Use `account_threepid_delegate.email` and `account_threepid_delegate.msisdn` for validating threepid sessions. ([\matrix-org#6011](matrix-org#6011)) - Allow homeserver to handle or delegate email validation when adding an email to a user's account. ([\matrix-org#6042](matrix-org#6042)) - Implement new Client Server API endpoints `/account/3pid/add` and `/account/3pid/bind` as per [MSC2290](matrix-org/matrix-spec-proposals#2290). ([\matrix-org#6043](matrix-org#6043)) - Add an unstable feature flag for separate add/bind 3pid APIs. ([\matrix-org#6044](matrix-org#6044)) - Remove `bind` parameter from Client Server POST `/account` endpoint as per [MSC2290](matrix-org/matrix-spec-proposals#2290). ([\matrix-org#6067](matrix-org#6067)) - Add `POST /add_threepid/msisdn/submit_token` endpoint for proxying submitToken on an `account_threepid_handler`. ([\matrix-org#6078](matrix-org#6078)) - Add `submit_url` response parameter to `*/msisdn/requestToken` endpoints. ([\matrix-org#6079](matrix-org#6079)) - Add `m.require_identity_server` flag to /version's unstable_features. ([\matrix-org#5972](matrix-org#5972)) - Enhancements to OpenTracing support: - Make OpenTracing work in worker mode. ([\matrix-org#5771](matrix-org#5771)) - Pass OpenTracing contexts between servers when transmitting EDUs. ([\matrix-org#5852](matrix-org#5852)) - OpenTracing for device list updates. ([\matrix-org#5853](matrix-org#5853)) - Add a tag recording a request's authenticated entity and corresponding servlet in OpenTracing. ([\matrix-org#5856](matrix-org#5856)) - Add minimum OpenTracing for client servlets. ([\matrix-org#5983](matrix-org#5983)) - Check at setup that OpenTracing is installed if it's enabled in the config. ([\matrix-org#5985](matrix-org#5985)) - Trace replication send times. ([\matrix-org#5986](matrix-org#5986)) - Include missing OpenTracing contexts in outbout replication requests. ([\matrix-org#5982](matrix-org#5982)) - Fix sending of EDUs when OpenTracing is enabled with an empty whitelist. ([\matrix-org#5984](matrix-org#5984)) - Fix invalid references to None while OpenTracing if the log context slips. ([\matrix-org#5988](matrix-org#5988), [\matrix-org#5991](matrix-org#5991)) - OpenTracing for room and e2e keys. ([\matrix-org#5855](matrix-org#5855)) - Add OpenTracing span over HTTP push processing. ([\matrix-org#6003](matrix-org#6003)) - Add an admin API to purge old rooms from the database. ([\matrix-org#5845](matrix-org#5845)) - Retry well-known lookups if we have recently seen a valid well-known record for the server. ([\matrix-org#5850](matrix-org#5850)) - Add support for filtered room-directory search requests over federation ([MSC2197](matrix-org/matrix-spec-proposals#2197), in order to allow upcoming room directory query performance improvements. ([\matrix-org#5859](matrix-org#5859)) - Correctly retry all hosts returned from SRV when we fail to connect. ([\matrix-org#5864](matrix-org#5864)) - Add admin API endpoint for setting whether or not a user is a server administrator. ([\matrix-org#5878](matrix-org#5878)) - Enable cleaning up extremities with dummy events by default to prevent undue build up of forward extremities. ([\matrix-org#5884](matrix-org#5884)) - Add config option to sign remote key query responses with a separate key. ([\matrix-org#5895](matrix-org#5895)) - Add support for config templating. ([\matrix-org#5900](matrix-org#5900)) - Users with the type of "support" or "bot" are no longer required to consent. ([\matrix-org#5902](matrix-org#5902)) - Let synctl accept a directory of config files. ([\matrix-org#5904](matrix-org#5904)) - Increase max display name size to 256. ([\matrix-org#5906](matrix-org#5906)) - Add admin API endpoint for getting whether or not a user is a server administrator. ([\matrix-org#5914](matrix-org#5914)) - Redact events in the database that have been redacted for a month. ([\matrix-org#5934](matrix-org#5934)) - New prometheus metrics: - `synapse_federation_known_servers`: represents the total number of servers your server knows about (i.e. is in rooms with), including itself. Enable by setting `metrics_flags.known_servers` to True in the configuration.([\matrix-org#5981](matrix-org#5981)) - `synapse_build_info`: exposes the Python version, OS version, and Synapse version of the running server. ([\matrix-org#6005](matrix-org#6005)) - Give appropriate exit codes when synctl fails. ([\matrix-org#5992](matrix-org#5992)) - Apply the federation blacklist to requests to identity servers. ([\matrix-org#6000](matrix-org#6000)) - Add `report_stats_endpoint` option to configure where stats are reported to, if enabled. Contributed by @Sorunome. ([\matrix-org#6012](matrix-org#6012)) - Add config option to increase ratelimits for room admins redacting messages. ([\matrix-org#6015](matrix-org#6015)) - Stop sending federation transactions to servers which have been down for a long time. ([\matrix-org#6026](matrix-org#6026)) - Make the process for mapping SAML2 users to matrix IDs more flexible. ([\matrix-org#6037](matrix-org#6037)) - Return a clearer error message when a timeout occurs when attempting to contact an identity server. ([\matrix-org#6073](matrix-org#6073)) - Prevent password reset's submit_token endpoint from accepting trailing slashes. ([\matrix-org#6074](matrix-org#6074)) - Return 403 on `/register/available` if registration has been disabled. ([\matrix-org#6082](matrix-org#6082)) - Explicitly log when a homeserver does not have the `trusted_key_servers` config field configured. ([\matrix-org#6090](matrix-org#6090)) - Add support for pruning old rows in `user_ips` table. ([\matrix-org#6098](matrix-org#6098)) Bugfixes -------- - Don't create broken room when `power_level_content_override.users` does not contain `creator_id`. ([\matrix-org#5633](matrix-org#5633)) - Fix database index so that different backup versions can have the same sessions. ([\matrix-org#5857](matrix-org#5857)) - Fix Synapse looking for config options `password_reset_failure_template` and `password_reset_success_template`, when they are actually `password_reset_template_failure_html`, `password_reset_template_success_html`. ([\matrix-org#5863](matrix-org#5863)) - Fix stack overflow when recovering an appservice which had an outage. ([\matrix-org#5885](matrix-org#5885)) - Fix error message which referred to `public_base_url` instead of `public_baseurl`. Thanks to @aaronraimist for the fix! ([\matrix-org#5909](matrix-org#5909)) - Fix 404 for thumbnail download when `dynamic_thumbnails` is `false` and the thumbnail was dynamically generated. Fix reported by rkfg. ([\matrix-org#5915](matrix-org#5915)) - Fix a cache-invalidation bug for worker-based deployments. ([\matrix-org#5920](matrix-org#5920)) - Fix admin API for listing media in a room not being available with an external media repo. ([\matrix-org#5966](matrix-org#5966)) - Fix list media admin API always returning an error. ([\matrix-org#5967](matrix-org#5967)) - Fix room and user stats tracking. ([\matrix-org#5971](matrix-org#5971), [\matrix-org#5998](matrix-org#5998), [\matrix-org#6029](matrix-org#6029)) - Return a `M_MISSING_PARAM` if `sid` is not provided to `/account/3pid`. ([\matrix-org#5995](matrix-org#5995)) - `federation_certificate_verification_whitelist` now will not cause `TypeErrors` to be raised (a regression in 1.3). Additionally, it now supports internationalised domain names in their non-canonical representation. ([\matrix-org#5996](matrix-org#5996)) - Only count real users when checking for auto-creation of auto-join room. ([\matrix-org#6004](matrix-org#6004)) - Ensure support users can be registered even if MAU limit is reached. ([\matrix-org#6020](matrix-org#6020)) - Fix bug where login error was shown incorrectly on SSO fallback login. ([\matrix-org#6024](matrix-org#6024)) - Fix bug in calculating the federation retry backoff period. ([\matrix-org#6025](matrix-org#6025)) - Prevent exceptions being logged when extremity-cleanup events fail due to lack of user consent to the terms of service. ([\matrix-org#6053](matrix-org#6053)) - Remove POST method from password-reset `submit_token` endpoint until we implement `submit_url` functionality. ([\matrix-org#6056](matrix-org#6056)) - Fix logcontext spam on non-Linux platforms. ([\matrix-org#6059](matrix-org#6059)) - Ensure query parameters in email validation links are URL-encoded. ([\matrix-org#6063](matrix-org#6063)) - Fix a bug which caused SAML attribute maps to be overridden by defaults. ([\matrix-org#6069](matrix-org#6069)) - Fix the logged number of updated items for the `users_set_deactivated_flag` background update. ([\matrix-org#6092](matrix-org#6092)) - Add `sid` to `next_link` for email validation. ([\matrix-org#6097](matrix-org#6097)) - Threepid validity checks on msisdns should not be dependent on `threepid_behaviour_email`. ([\matrix-org#6104](matrix-org#6104)) - Ensure that servers which are not configured to support email address verification do not offer it in the registration flows. ([\matrix-org#6107](matrix-org#6107)) Updates to the Docker image --------------------------- - Avoid changing `UID/GID` if they are already correct. ([\matrix-org#5970](matrix-org#5970)) - Provide `SYNAPSE_WORKER` envvar to specify python module. ([\matrix-org#6058](matrix-org#6058)) Improved Documentation ---------------------- - Convert documentation to markdown (from rst) ([\matrix-org#5849](matrix-org#5849)) - Update `INSTALL.md` to say that Python 2 is no longer supported. ([\matrix-org#5953](matrix-org#5953)) - Add developer documentation for using SAML2. ([\matrix-org#6032](matrix-org#6032)) - Add some notes on rolling back to v1.3.1. ([\matrix-org#6049](matrix-org#6049)) - Update the upgrade notes. ([\matrix-org#6050](matrix-org#6050)) Deprecations and Removals ------------------------- - Remove shared-secret registration from `/_matrix/client/r0/register` endpoint. Contributed by Awesome Technologies Innovationslabor GmbH. ([\matrix-org#5877](matrix-org#5877)) - Deprecate the `trusted_third_party_id_servers` option. ([\matrix-org#5875](matrix-org#5875)) Internal Changes ---------------- - Lay the groundwork for structured logging output. ([\matrix-org#5680](matrix-org#5680)) - Retry well-known lookup before the cache expires, giving a grace period where the remote well-known can be down but we still use the old result. ([\matrix-org#5844](matrix-org#5844)) - Remove log line for debugging issue matrix-org#5407. ([\matrix-org#5860](matrix-org#5860)) - Refactor the Appservice scheduler code. ([\matrix-org#5886](matrix-org#5886)) - Compatibility with v2 Identity Service APIs other than /lookup. ([\matrix-org#5892](matrix-org#5892), [\matrix-org#6013](matrix-org#6013)) - Stop populating some unused tables. ([\matrix-org#5893](matrix-org#5893), [\matrix-org#6047](matrix-org#6047)) - Add missing index on `users_in_public_rooms` to improve the performance of directory queries. ([\matrix-org#5894](matrix-org#5894)) - Improve the logging when we have an error when fetching signing keys. ([\matrix-org#5896](matrix-org#5896)) - Add support for database engine-specific schema deltas, based on file extension. ([\matrix-org#5911](matrix-org#5911)) - Update Buildkite pipeline to use plugins instead of buildkite-agent commands. ([\matrix-org#5922](matrix-org#5922)) - Add link in sample config to the logging config schema. ([\matrix-org#5926](matrix-org#5926)) - Remove unnecessary parentheses in return statements. ([\matrix-org#5931](matrix-org#5931)) - Remove unused `jenkins/prepare_sytest.sh` file. ([\matrix-org#5938](matrix-org#5938)) - Move Buildkite pipeline config to the pipelines repo. ([\matrix-org#5943](matrix-org#5943)) - Remove unnecessary return statements in the codebase which were the result of a regex run. ([\matrix-org#5962](matrix-org#5962)) - Remove left-over methods from v1 registration API. ([\matrix-org#5963](matrix-org#5963)) - Cleanup event auth type initialisation. ([\matrix-org#5975](matrix-org#5975)) - Clean up dependency checking at setup. ([\matrix-org#5989](matrix-org#5989)) - Update OpenTracing docs to use the unified `trace` method. ([\matrix-org#5776](matrix-org#5776)) - Small refactor of function arguments and docstrings in` RoomMemberHandler`. ([\matrix-org#6009](matrix-org#6009)) - Remove unused `origin` argument on `FederationHandler.add_display_name_to_third_party_invite`. ([\matrix-org#6010](matrix-org#6010)) - Add a `failure_ts` column to the `destinations` database table. ([\matrix-org#6016](matrix-org#6016), [\matrix-org#6072](matrix-org#6072)) - Clean up some code in the retry logic. ([\matrix-org#6017](matrix-org#6017)) - Fix the structured logging tests stomping on the global log configuration for subsequent tests. ([\matrix-org#6023](matrix-org#6023)) - Clean up the sample config for SAML authentication. ([\matrix-org#6064](matrix-org#6064)) - Change mailer logging to reflect Synapse doesn't just do chat notifications by email now. ([\matrix-org#6075](matrix-org#6075)) - Move last-seen info into devices table. ([\matrix-org#6089](matrix-org#6089)) - Remove unused parameter to `get_user_id_by_threepid`. ([\matrix-org#6099](matrix-org#6099)) - Refactor the user-interactive auth handling. ([\matrix-org#6105](matrix-org#6105)) - Refactor code for calculating registration flows. ([\matrix-org#6106](matrix-org#6106))
PreviousNext