pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/matrix-synapse chat/matrix-synapse: Update to 1.61.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/842b84f33d15
branches:  trunk
changeset: 380830:842b84f33d15
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Thu Jun 16 12:06:25 2022 +0000

description:
chat/matrix-synapse: Update to 1.61.0

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](https://github.com/matrix-org/synapse/issues/12732), 
[\#12972](https://github.com/matrix-org/synapse/issues/12972), [\#12977](https://github.com/matrix-org/synapse/issues/12977))
- Experimental support for [MSC3772](https://github.com/matrix-org/matrix-spec-proposals/pull/3772): Push rule for mutually related events. 
([\#12740](https://github.com/matrix-org/synapse/issues/12740), [\#12859](https://github.com/matrix-org/synapse/issues/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](https://github.com/matrix-org/synapse/issues/12808))
- Add storage and module API methods to get monthly active users (and their corresponding appservices) within an optionally specified time range. 
([\#12838](https://github.com/matrix-org/synapse/issues/12838), [\#12917](https://github.com/matrix-org/synapse/issues/12917))
- Support the new error code `ORG.MATRIX.MSC3823.USER_ACCOUNT_SUSPENDED` from [MSC3823](https://github.com/matrix-org/matrix-spec-proposals/pull/3823). 
([\#12845](https://github.com/matrix-org/synapse/issues/12845), [\#12923](https://github.com/matrix-org/synapse/issues/12923))
- Add a configurable background job to delete stale devices. ([\#12855](https://github.com/matrix-org/synapse/issues/12855))
- Allow updating a user's password using the admin API without logging out their devices. Contributed by @jcgruenhage. ([\#12952](https://github.com/matrix-org/synapse/issues/12952))


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

- Remove support for the non-standard groups/communities feature from Synapse. ([\#12553](https://github.com/matrix-org/synapse/issues/12553), 
[\#12558](https://github.com/matrix-org/synapse/issues/12558), [\#12563](https://github.com/matrix-org/synapse/issues/12563), [\#12895](https://github.com/matrix-org/synapse/issues/12895), 
[\#12897](https://github.com/matrix-org/synapse/issues/12897), [\#12899](https://github.com/matrix-org/synapse/issues/12899), [\#12900](https://github.com/matrix-org/synapse/issues/12900), 
[\#12936](https://github.com/matrix-org/synapse/issues/12936), [\#12966](https://github.com/matrix-org/synapse/issues/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](https://github.com/matrix-org/synapse/issues/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](https://github.com/matrix-org/synapse/issues/12883))


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

Features
--------

- Measure the time taken in spam-checking callbacks and expose those measurements as metrics. ([\#12513](https://github.com/matrix-org/synapse/issues/12513))
- Add a `default_power_level_content_override` config option to set default room power levels per room preset. ([\#12618](https://github.com/matrix-org/synapse/issues/12618))
- Add support for [MSC3787: Allowing knocks to restricted rooms](https://github.com/matrix-org/matrix-spec-proposals/pull/3787). ([\#12623](https://github.com/matrix-org/synapse/issues/12623))
- Send `USER_IP` commands on a different Redis channel, in order to reduce traffic to workers that do not process these commands. ([\#12672](https://github.com/matrix-org/synapse/issues/12672), 
[\#12809](https://github.com/matrix-org/synapse/issues/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](https://github.com/matrix-org/synapse/issues/12673))
- Add a config options to allow for auto-tuning of caches. ([\#12701](https://github.com/matrix-org/synapse/issues/12701))
- Update [MSC2716](https://github.com/matrix-org/matrix-spec-proposals/pull/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](https://github.com/matrix-org/synapse/issues/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](https://github.com/matrix-org/synapse/issues/12744))
- Implement [MSC3818: Copy room type on upgrade](https://github.com/matrix-org/matrix-spec-proposals/pull/3818). ([\#12786](https://github.com/matrix-org/synapse/issues/12786), 
[\#12792](https://github.com/matrix-org/synapse/issues/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](https://github.com/matrix-org/synapse/issues/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](https://github.com/matrix-org/synapse/issues/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](https://github.com/matrix-org/synapse/issues/12616))
- The `synapse.app.appservice` and `synapse.app.user_dir` worker application types are now deprecated. ([\#12452](https://github.com/matrix-org/synapse/issues/12452), 
[\#12654](https://github.com/matrix-org/synapse/issues/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](https://github.com/matrix-org/synapse/issues/12597))


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


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

Features
--------

- Support [MSC3266](https://github.com/matrix-org/matrix-doc/pull/3266) room summaries over federation. ([\#11507](https://github.com/matrix-org/synapse/issues/11507))
- Implement [changes](https://github.com/matrix-org/matrix-spec-proposals/pull/2285/commits/4a77139249c2e830aec3c7d6bd5501a514d1cc27) to [MSC2285 (hidden read 
receipts)](https://github.com/matrix-org/matrix-spec-proposals/pull/2285). Contributed by @SimonBrandner. ([\#12168](https://github.com/matrix-org/synapse/issues/12168), 
[\#12635](https://github.com/matrix-org/synapse/issues/12635), [\#12636](https://github.com/matrix-org/synapse/issues/12636), [\#12670](https://github.com/matrix-org/synapse/issues/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](https://github.com/matrix-org/synapse/issues/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](https://github.com/matrix-org/synapse/issues/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](https://github.com/matrix-org/synapse/issues/12654))
- Add new `enable_registration_token_3pid_bypass` configuration option to allow registrations via token as an alternative to verifying a 3pid. 
([\#12526](https://github.com/matrix-org/synapse/issues/12526))
- Implement [MSC3786](https://github.com/matrix-org/matrix-spec-proposals/pull/3786): Add a default push rule to ignore `m.room.server_acl` events. 
([\#12601](https://github.com/matrix-org/synapse/issues/12601))
- Add new `mau_appservice_trial_days` configuration option to specify a different trial period for users registered via an appservice. ([\#12619](https://github.com/matrix-org/synapse/issues/12619))


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

- Remove unstable identifiers from [MSC3069](https://github.com/matrix-org/matrix-doc/pull/3069). ([\#12596](https://github.com/matrix-org/synapse/issues/12596))
- Remove the unspecified `m.login.jwt` login type and the unstable `uk.half-shot.msc2778.login.application_service` from
  [MSC2778](https://github.com/matrix-org/matrix-doc/pull/2778). ([\#12597](https://github.com/matrix-org/synapse/issues/12597))
- Synapse now requires at least Python 3.7.1 (up from 3.7.0), for compatibility with the latest Twisted trunk. ([\#12613](https://github.com/matrix-org/synapse/issues/12613))

diffstat:

 chat/matrix-synapse/Makefile                     |   4 +-
 chat/matrix-synapse/PLIST                        |  41 ++++++++---------------
 chat/matrix-synapse/distinfo                     |  10 ++--
 chat/matrix-synapse/patches/patch-pyproject.toml |   8 ++--
 4 files changed, 25 insertions(+), 38 deletions(-)

diffs (185 lines):

diff -r 7b4607f6eb14 -r 842b84f33d15 chat/matrix-synapse/Makefile
--- a/chat/matrix-synapse/Makefile      Thu Jun 16 11:49:16 2022 +0000
+++ b/chat/matrix-synapse/Makefile      Thu Jun 16 12:06:25 2022 +0000
@@ -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
diff -r 7b4607f6eb14 -r 842b84f33d15 chat/matrix-synapse/PLIST
--- a/chat/matrix-synapse/PLIST Thu Jun 16 11:49:16 2022 +0000
+++ b/chat/matrix-synapse/PLIST Thu Jun 16 12:06:25 2022 +0000
@@ -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
@@ -138,8 +138,6 @@
 ${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
@@ -252,18 +250,8 @@
 ${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
@@ -300,8 +288,6 @@
 ${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
@@ -318,6 +304,8 @@
 ${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
@@ -432,8 +420,6 @@
 ${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
@@ -509,8 +495,6 @@
 ${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
@@ -607,8 +591,6 @@
 ${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
@@ -645,8 +627,6 @@
 ${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
@@ -818,6 +798,14 @@
 ${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
@@ -936,12 +924,8 @@
 ${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
@@ -1261,6 +1245,8 @@
 ${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
@@ -1288,6 +1274,7 @@
 ${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
diff -r 7b4607f6eb14 -r 842b84f33d15 chat/matrix-synapse/distinfo
--- a/chat/matrix-synapse/distinfo      Thu Jun 16 11:49:16 2022 +0000
+++ b/chat/matrix-synapse/distinfo      Thu Jun 16 12:06:25 2022 +0000
@@ -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
diff -r 7b4607f6eb14 -r 842b84f33d15 chat/matrix-synapse/patches/patch-pyproject.toml
--- a/chat/matrix-synapse/patches/patch-pyproject.toml  Thu Jun 16 11:49:16 2022 +0000
+++ b/chat/matrix-synapse/patches/patch-pyproject.toml  Thu Jun 16 12:06:25 2022 +0000
@@ -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"



Home | Main Index | Thread Index | Old Index