Skip to content

Commit

Permalink
chat/matrix-synapse: Update to 1.61.0
Browse files Browse the repository at this point in the history
Upstream NEWS, less bugfixes and minor improvements:

Synapse 1.61.0 (2022-06-14)
===========================

This release removes support for the non-standard feature known both as 'groups' and as 'communities', which have been superseded by *Spaces*.

Synapse 1.61.0rc1 (2022-06-07)
==============================

Features
--------

- Add new `media_retention` options to the homeserver config for routinely cleaning up non-recently accessed media. ([\#12732](matrix-org/synapse#12732), [\#12972](matrix-org/synapse#12972), [\#12977](matrix-org/synapse#12977))
- Experimental support for [MSC3772](matrix-org/matrix-spec-proposals#3772): Push rule for mutually related events. ([\#12740](matrix-org/synapse#12740), [\#12859](matrix-org/synapse#12859))
- Update to the `check_event_for_spam` module callback: Deprecate the current callback signature, replace it with a new signature that is both less ambiguous (replacing booleans with explicit allow/block) and more powerful (ability to return explicit error codes). ([\#12808](matrix-org/synapse#12808))
- Add storage and module API methods to get monthly active users (and their corresponding appservices) within an optionally specified time range. ([\#12838](matrix-org/synapse#12838), [\#12917](matrix-org/synapse#12917))
- Support the new error code `ORG.MATRIX.MSC3823.USER_ACCOUNT_SUSPENDED` from [MSC3823](matrix-org/matrix-spec-proposals#3823). ([\#12845](matrix-org/synapse#12845), [\#12923](matrix-org/synapse#12923))
- Add a configurable background job to delete stale devices. ([\#12855](matrix-org/synapse#12855))
- Allow updating a user's password using the admin API without logging out their devices. Contributed by @jcgruenhage. ([\#12952](matrix-org/synapse#12952))


Deprecations and Removals
-------------------------

- Remove support for the non-standard groups/communities feature from Synapse. ([\#12553](matrix-org/synapse#12553), [\#12558](matrix-org/synapse#12558), [\#12563](matrix-org/synapse#12563), [\#12895](matrix-org/synapse#12895), [\#12897](matrix-org/synapse#12897), [\#12899](matrix-org/synapse#12899), [\#12900](matrix-org/synapse#12900), [\#12936](matrix-org/synapse#12936), [\#12966](matrix-org/synapse#12966))
- Remove contributed `kick_users.py` script. This is broken under Python 3, and is not added to the environment when `pip install`ing Synapse. ([\#12908](matrix-org/synapse#12908))



Synapse 1.60.0 (2022-05-31)
===========================

This release of Synapse adds a unique index to the `state_group_edges` table, in
order to prevent accidentally introducing duplicate information (for example,
because a database backup was restored multiple times). If your Synapse database
already has duplicate rows in this table, this could fail with an error and
require manual remediation.

Additionally, the signature of the `check_event_for_spam` module callback has changed.
The previous signature has been deprecated and remains working for now. Module authors
should update their modules to use the new signature where possible.


Synapse 1.60.0rc2 (2022-05-27)
==============================

Features
--------

- Add an option allowing users to use their password to reauthenticate for privileged actions even though password login is disabled. ([\#12883](matrix-org/synapse#12883))


Synapse 1.60.0rc1 (2022-05-24)
==============================

Features
--------

- Measure the time taken in spam-checking callbacks and expose those measurements as metrics. ([\#12513](matrix-org/synapse#12513))
- Add a `default_power_level_content_override` config option to set default room power levels per room preset. ([\#12618](matrix-org/synapse#12618))
- Add support for [MSC3787: Allowing knocks to restricted rooms](matrix-org/matrix-spec-proposals#3787). ([\#12623](matrix-org/synapse#12623))
- Send `USER_IP` commands on a different Redis channel, in order to reduce traffic to workers that do not process these commands. ([\#12672](matrix-org/synapse#12672), [\#12809](matrix-org/synapse#12809))
- Synapse will now reload [cache config](https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#caching) when it receives a [SIGHUP](https://en.wikipedia.org/wiki/SIGHUP) signal. ([\#12673](matrix-org/synapse#12673))
- Add a config options to allow for auto-tuning of caches. ([\#12701](matrix-org/synapse#12701))
- Update [MSC2716](matrix-org/matrix-spec-proposals#2716) implementation to process marker events from the current state to avoid markers being lost in timeline gaps for federated servers which would cause the imported history to be undiscovered. ([\#12718](matrix-org/synapse#12718))
- Add a `drop_federated_event` callback to `SpamChecker` to disregard inbound federated events before they take up much processing power, in an emergency. ([\#12744](matrix-org/synapse#12744))
- Implement [MSC3818: Copy room type on upgrade](matrix-org/matrix-spec-proposals#3818). ([\#12786](matrix-org/synapse#12786), [\#12792](matrix-org/synapse#12792))
- Update to the `check_event_for_spam` module callback. Deprecate the current callback signature, replace it with a new signature that is both less ambiguous (replacing booleans with explicit allow/block) and more powerful (ability to return explicit error codes). ([\#12808](matrix-org/synapse#12808))


Deprecations and Removals
-------------------------

- Require a body in POST requests to `/rooms/{roomId}/receipt/{receiptType}/{eventId}`, as required by the [Matrix specification](https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3roomsroomidreceiptreceipttypeeventid). This breaks compatibility with Element Android 1.2.0 and earlier: users of those clients will be unable to send read receipts. ([\#12709](matrix-org/synapse#12709))



Synapse 1.59.1 (2022-05-18)
===========================

This release fixes a long-standing issue which could prevent Synapse's user directory for updating properly.


Synapse 1.59.0 (2022-05-17)
===========================

Synapse 1.59 makes several changes that server administrators should be aware of:

- Device name lookup over federation is now disabled by default. ([\#12616](matrix-org/synapse#12616))
- The `synapse.app.appservice` and `synapse.app.user_dir` worker application types are now deprecated. ([\#12452](matrix-org/synapse#12452), [\#12654](matrix-org/synapse#12654))

Additionally, this release removes the non-standard `m.login.jwt` login type from Synapse. It can be replaced with `org.matrix.login.jwt` for identical behaviour. This is only used if `jwt_config.enabled` is set to `true` in the configuration. ([\#12597](matrix-org/synapse#12597))


Synapse 1.59.0rc2 (2022-05-16)
==============================


Synapse 1.59.0rc1 (2022-05-10)
==============================

Features
--------

- Support [MSC3266](matrix-org/matrix-spec-proposals#3266) room summaries over federation. ([\#11507](matrix-org/synapse#11507))
- Implement [changes](matrix-org/matrix-spec-proposals@4a77139) to [MSC2285 (hidden read receipts)](matrix-org/matrix-spec-proposals#2285). Contributed by @SimonBrandner. ([\#12168](matrix-org/synapse#12168), [\#12635](matrix-org/synapse#12635), [\#12636](matrix-org/synapse#12636), [\#12670](matrix-org/synapse#12670))
- Extend the [module API](https://github.com/matrix-org/synapse/blob/release-v1.59/synapse/module_api/__init__.py) to allow modules to change actions for existing push rules of local users. ([\#12406](matrix-org/synapse#12406))
- Add the `notify_appservices_from_worker` configuration option (superseding `notify_appservices`) to allow a generic worker to be designated as the worker to send traffic to Application Services. ([\#12452](matrix-org/synapse#12452))
- Add the `update_user_directory_from_worker` configuration option (superseding `update_user_directory`) to allow a generic worker to be designated as the worker to update the user directory. ([\#12654](matrix-org/synapse#12654))
- Add new `enable_registration_token_3pid_bypass` configuration option to allow registrations via token as an alternative to verifying a 3pid. ([\#12526](matrix-org/synapse#12526))
- Implement [MSC3786](matrix-org/matrix-spec-proposals#3786): Add a default push rule to ignore `m.room.server_acl` events. ([\#12601](matrix-org/synapse#12601))
- Add new `mau_appservice_trial_days` configuration option to specify a different trial period for users registered via an appservice. ([\#12619](matrix-org/synapse#12619))


Deprecations and Removals
-------------------------

- Remove unstable identifiers from [MSC3069](matrix-org/matrix-spec-proposals#3069). ([\#12596](matrix-org/synapse#12596))
- Remove the unspecified `m.login.jwt` login type and the unstable `uk.half-shot.msc2778.login.application_service` from
  [MSC2778](matrix-org/matrix-spec-proposals#2778). ([\#12597](matrix-org/synapse#12597))
- Synapse now requires at least Python 3.7.1 (up from 3.7.0), for compatibility with the latest Twisted trunk. ([\#12613](matrix-org/synapse#12613))
  • Loading branch information
gdt committed Jun 16, 2022
1 parent 450213b commit 0ee7d90
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 38 deletions.
4 changes: 2 additions & 2 deletions chat/matrix-synapse/Makefile
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.51 2022/06/16 11:49:08 gdt Exp $
# $NetBSD: Makefile,v 1.52 2022/06/16 12:06:25 gdt Exp $

DISTNAME= matrix-synapse-1.58.1
DISTNAME= matrix-synapse-1.61.0
CATEGORIES= chat
MASTER_SITES= ${MASTER_SITE_GITHUB:=matrix-org/}
GITHUB_PROJECT= synapse
Expand Down
41 changes: 14 additions & 27 deletions chat/matrix-synapse/PLIST
@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.26 2022/06/16 11:49:08 gdt Exp $
@comment $NetBSD: PLIST,v 1.27 2022/06/16 12:06:25 gdt Exp $
bin/export_signing_key
bin/generate_config
bin/generate_log_config
Expand Down Expand Up @@ -138,8 +138,6 @@ ${PYSITELIB}/synapse/config/experimental.py
${PYSITELIB}/synapse/config/experimental.pyc
${PYSITELIB}/synapse/config/federation.py
${PYSITELIB}/synapse/config/federation.pyc
${PYSITELIB}/synapse/config/groups.py
${PYSITELIB}/synapse/config/groups.pyc
${PYSITELIB}/synapse/config/homeserver.py
${PYSITELIB}/synapse/config/homeserver.pyc
${PYSITELIB}/synapse/config/jwt.py
Expand Down Expand Up @@ -252,18 +250,8 @@ ${PYSITELIB}/synapse/federation/transport/server/_base.py
${PYSITELIB}/synapse/federation/transport/server/_base.pyc
${PYSITELIB}/synapse/federation/transport/server/federation.py
${PYSITELIB}/synapse/federation/transport/server/federation.pyc
${PYSITELIB}/synapse/federation/transport/server/groups_local.py
${PYSITELIB}/synapse/federation/transport/server/groups_local.pyc
${PYSITELIB}/synapse/federation/transport/server/groups_server.py
${PYSITELIB}/synapse/federation/transport/server/groups_server.pyc
${PYSITELIB}/synapse/federation/units.py
${PYSITELIB}/synapse/federation/units.pyc
${PYSITELIB}/synapse/groups/__init__.py
${PYSITELIB}/synapse/groups/__init__.pyc
${PYSITELIB}/synapse/groups/attestations.py
${PYSITELIB}/synapse/groups/attestations.pyc
${PYSITELIB}/synapse/groups/groups_server.py
${PYSITELIB}/synapse/groups/groups_server.pyc
${PYSITELIB}/synapse/handlers/__init__.py
${PYSITELIB}/synapse/handlers/__init__.pyc
${PYSITELIB}/synapse/handlers/account.py
Expand Down Expand Up @@ -300,8 +288,6 @@ ${PYSITELIB}/synapse/handlers/federation.py
${PYSITELIB}/synapse/handlers/federation.pyc
${PYSITELIB}/synapse/handlers/federation_event.py
${PYSITELIB}/synapse/handlers/federation_event.pyc
${PYSITELIB}/synapse/handlers/groups_local.py
${PYSITELIB}/synapse/handlers/groups_local.pyc
${PYSITELIB}/synapse/handlers/identity.py
${PYSITELIB}/synapse/handlers/identity.pyc
${PYSITELIB}/synapse/handlers/initial_sync.py
Expand All @@ -318,6 +304,8 @@ ${PYSITELIB}/synapse/handlers/presence.py
${PYSITELIB}/synapse/handlers/presence.pyc
${PYSITELIB}/synapse/handlers/profile.py
${PYSITELIB}/synapse/handlers/profile.pyc
${PYSITELIB}/synapse/handlers/push_rules.py
${PYSITELIB}/synapse/handlers/push_rules.pyc
${PYSITELIB}/synapse/handlers/read_marker.py
${PYSITELIB}/synapse/handlers/read_marker.pyc
${PYSITELIB}/synapse/handlers/receipts.py
Expand Down Expand Up @@ -432,8 +420,6 @@ ${PYSITELIB}/synapse/notifier.py
${PYSITELIB}/synapse/notifier.pyc
${PYSITELIB}/synapse/push/__init__.py
${PYSITELIB}/synapse/push/__init__.pyc
${PYSITELIB}/synapse/push/action_generator.py
${PYSITELIB}/synapse/push/action_generator.pyc
${PYSITELIB}/synapse/push/baserules.py
${PYSITELIB}/synapse/push/baserules.pyc
${PYSITELIB}/synapse/push/bulk_push_rule_evaluator.py
Expand Down Expand Up @@ -509,8 +495,6 @@ ${PYSITELIB}/synapse/replication/slave/storage/events.py
${PYSITELIB}/synapse/replication/slave/storage/events.pyc
${PYSITELIB}/synapse/replication/slave/storage/filtering.py
${PYSITELIB}/synapse/replication/slave/storage/filtering.pyc
${PYSITELIB}/synapse/replication/slave/storage/groups.py
${PYSITELIB}/synapse/replication/slave/storage/groups.pyc
${PYSITELIB}/synapse/replication/slave/storage/keys.py
${PYSITELIB}/synapse/replication/slave/storage/keys.pyc
${PYSITELIB}/synapse/replication/slave/storage/profile.py
Expand Down Expand Up @@ -607,8 +591,6 @@ ${PYSITELIB}/synapse/rest/admin/event_reports.py
${PYSITELIB}/synapse/rest/admin/event_reports.pyc
${PYSITELIB}/synapse/rest/admin/federation.py
${PYSITELIB}/synapse/rest/admin/federation.pyc
${PYSITELIB}/synapse/rest/admin/groups.py
${PYSITELIB}/synapse/rest/admin/groups.pyc
${PYSITELIB}/synapse/rest/admin/media.py
${PYSITELIB}/synapse/rest/admin/media.pyc
${PYSITELIB}/synapse/rest/admin/registration_tokens.py
Expand Down Expand Up @@ -645,8 +627,6 @@ ${PYSITELIB}/synapse/rest/client/events.py
${PYSITELIB}/synapse/rest/client/events.pyc
${PYSITELIB}/synapse/rest/client/filter.py
${PYSITELIB}/synapse/rest/client/filter.pyc
${PYSITELIB}/synapse/rest/client/groups.py
${PYSITELIB}/synapse/rest/client/groups.pyc
${PYSITELIB}/synapse/rest/client/initial_sync.py
${PYSITELIB}/synapse/rest/client/initial_sync.pyc
${PYSITELIB}/synapse/rest/client/keys.py
Expand Down Expand Up @@ -818,6 +798,14 @@ ${PYSITELIB}/synapse/storage/_base.py
${PYSITELIB}/synapse/storage/_base.pyc
${PYSITELIB}/synapse/storage/background_updates.py
${PYSITELIB}/synapse/storage/background_updates.pyc
${PYSITELIB}/synapse/storage/controllers/__init__.py
${PYSITELIB}/synapse/storage/controllers/__init__.pyc
${PYSITELIB}/synapse/storage/controllers/persist_events.py
${PYSITELIB}/synapse/storage/controllers/persist_events.pyc
${PYSITELIB}/synapse/storage/controllers/purge_events.py
${PYSITELIB}/synapse/storage/controllers/purge_events.pyc
${PYSITELIB}/synapse/storage/controllers/state.py
${PYSITELIB}/synapse/storage/controllers/state.pyc
${PYSITELIB}/synapse/storage/database.py
${PYSITELIB}/synapse/storage/database.pyc
${PYSITELIB}/synapse/storage/databases/__init__.py
Expand Down Expand Up @@ -936,12 +924,8 @@ ${PYSITELIB}/synapse/storage/engines/sqlite.py
${PYSITELIB}/synapse/storage/engines/sqlite.pyc
${PYSITELIB}/synapse/storage/keys.py
${PYSITELIB}/synapse/storage/keys.pyc
${PYSITELIB}/synapse/storage/persist_events.py
${PYSITELIB}/synapse/storage/persist_events.pyc
${PYSITELIB}/synapse/storage/prepare_database.py
${PYSITELIB}/synapse/storage/prepare_database.pyc
${PYSITELIB}/synapse/storage/purge_events.py
${PYSITELIB}/synapse/storage/purge_events.pyc
${PYSITELIB}/synapse/storage/push_rule.py
${PYSITELIB}/synapse/storage/push_rule.pyc
${PYSITELIB}/synapse/storage/roommember.py
Expand Down Expand Up @@ -1261,6 +1245,8 @@ ${PYSITELIB}/synapse/storage/schema/main/delta/68/06_msc3202_add_device_list_app
${PYSITELIB}/synapse/storage/schema/main/delta/69/01as_txn_seq.py
${PYSITELIB}/synapse/storage/schema/main/delta/69/01as_txn_seq.pyc
${PYSITELIB}/synapse/storage/schema/main/delta/69/01device_list_oubound_by_room.sql
${PYSITELIB}/synapse/storage/schema/main/delta/69/02cache_invalidation_index.sql
${PYSITELIB}/synapse/storage/schema/main/delta/70/01clean_table_purged_rooms.sql
${PYSITELIB}/synapse/storage/schema/main/full_schemas/16/application_services.sql
${PYSITELIB}/synapse/storage/schema/main/full_schemas/16/event_edges.sql
${PYSITELIB}/synapse/storage/schema/main/full_schemas/16/event_signatures.sql
Expand Down Expand Up @@ -1288,6 +1274,7 @@ ${PYSITELIB}/synapse/storage/schema/state/delta/47/state_group_seq.py
${PYSITELIB}/synapse/storage/schema/state/delta/47/state_group_seq.pyc
${PYSITELIB}/synapse/storage/schema/state/delta/56/state_group_room_idx.sql
${PYSITELIB}/synapse/storage/schema/state/delta/61/02state_groups_state_n_distinct.sql.postgres
${PYSITELIB}/synapse/storage/schema/state/delta/70/08_state_group_edges_unique.sql
${PYSITELIB}/synapse/storage/schema/state/full_schemas/54/full.sql
${PYSITELIB}/synapse/storage/schema/state/full_schemas/54/sequence.sql.postgres
${PYSITELIB}/synapse/storage/state.py
Expand Down
10 changes: 5 additions & 5 deletions chat/matrix-synapse/distinfo
@@ -1,7 +1,7 @@
$NetBSD: distinfo,v 1.37 2022/06/16 11:49:08 gdt Exp $
$NetBSD: distinfo,v 1.38 2022/06/16 12:06:25 gdt Exp $

BLAKE2s (matrix-synapse-1.58.1.tar.gz) = 7825bc72223975fa79ad3b21fd570d016716c8b70020adc5a52dceb8951550ca
SHA512 (matrix-synapse-1.58.1.tar.gz) = fe86e64ee6e9ba6f25aadee8d88019fafc2ec7c8112a8dfef1ced8a0409fd72b9553114799592da00d90a3a2e0020b2c0741362ad381cb66a12029bbf925dac2
Size (matrix-synapse-1.58.1.tar.gz) = 7881275 bytes
SHA1 (patch-pyproject.toml) = 5d3d616f72bc2ca5ac46a8cb913cb65d019ff6df
BLAKE2s (matrix-synapse-1.61.0.tar.gz) = 5f568ce040edefe1469a24540027c49f5291dbf109e90db12f84b80b565d4115
SHA512 (matrix-synapse-1.61.0.tar.gz) = 24d390bd1715c5cbc1e468c363287626e3be9da55cad98d73cdd7caaf9ccd6218a26925882367ec95fb3a82ffb5da6a6388d8e4317adde20db28ab620afe4bfc
Size (matrix-synapse-1.61.0.tar.gz) = 7879924 bytes
SHA1 (patch-pyproject.toml) = 252503c60c6c1ee1b8655f2265944d9788402bf4
SHA1 (patch-synapse_handlers_room.py) = f9a62add7171898ec0ea76360f0a4c9969609537
8 changes: 4 additions & 4 deletions chat/matrix-synapse/patches/patch-pyproject.toml
@@ -1,13 +1,13 @@
$NetBSD: patch-pyproject.toml,v 1.1 2022/06/16 11:49:08 gdt Exp $
$NetBSD: patch-pyproject.toml,v 1.2 2022/06/16 12:06:25 gdt Exp $

Patch out cryptography check: It doesn't need a version this high and it was
added by upstream as an ugly hack to force a patched OpenSSL, in case it is
linked statically.

--- pyproject.toml.orig 2022-05-05 14:15:32.000000000 +0000
--- pyproject.toml.orig 2022-06-14 10:56:45.000000000 +0000
+++ pyproject.toml
@@ -146,7 +146,7 @@ bleach = ">=1.4.3"
typing-extensions = ">=3.10.0"
@@ -147,7 +147,7 @@ bleach = ">=1.4.3"
typing-extensions = ">=3.10.0.1"
# We enforce that we have a `cryptography` version that bundles an `openssl`
# with the latest security patches.
-cryptography = ">=3.4.7"
Expand Down

0 comments on commit 0ee7d90

Please sign in to comment.