diff --git a/_service b/_service index c9959a2..2f83ff8 100644 --- a/_service +++ b/_service @@ -4,11 +4,11 @@ @PARENT_TAG@ https://github.com/matrix-org/synapse.git git - v1.55.2 + v1.56.0 v(.*) \1 diff --git a/dont-bump-cryptography-with-system-openssl.patch b/dont-bump-cryptography-with-system-openssl.patch index c07d02e..891d4fd 100644 --- a/dont-bump-cryptography-with-system-openssl.patch +++ b/dont-bump-cryptography-with-system-openssl.patch @@ -11,7 +11,7 @@ Index: synapse/synapse/python_dependencies.py # we use `order`, which arrived in attrs 19.2.0. # Note: 21.1.0 broke `/sync`, see #9936 "attrs>=19.2.0,!=21.1.0", -@@ -80,7 +80,8 @@ REQUIREMENTS = [ +@@ -83,7 +83,8 @@ REQUIREMENTS = [ "typing-extensions>=3.10.0", # We enforce that we have a `cryptography` version that bundles an `openssl` # with the latest security patches. diff --git a/matrix-synapse-1.4.1-paths.patch b/matrix-synapse-1.4.1-paths.patch index 6b84832..b464d2e 100644 --- a/matrix-synapse-1.4.1-paths.patch +++ b/matrix-synapse-1.4.1-paths.patch @@ -50,7 +50,7 @@ Index: synapse/synapse/config/server.py =================================================================== --- synapse.orig/synapse/config/server.py +++ synapse/synapse/config/server.py -@@ -699,7 +699,7 @@ class ServerConfig(Config): +@@ -703,7 +703,7 @@ class ServerConfig(Config): bind_port = 8448 unsecure_port = 8008 diff --git a/matrix-synapse-1.55.2.obscpio b/matrix-synapse-1.55.2.obscpio deleted file mode 100644 index 25f815c..0000000 --- a/matrix-synapse-1.55.2.obscpio +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:69841ff55bf75db6f74914d81a698265d789aa7ce3494dd7db43761df1ffc214 -size 32537613 diff --git a/matrix-synapse-1.56.0.obscpio b/matrix-synapse-1.56.0.obscpio new file mode 100644 index 0000000..d9cc41f --- /dev/null +++ b/matrix-synapse-1.56.0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8215af9bf17ac2f78bf97638ee607edbee2940fb2ad34b083d16f5591151fff4 +size 32585741 diff --git a/matrix-synapse-test.spec b/matrix-synapse-test.spec index e9ba084..4a43aa1 100644 --- a/matrix-synapse-test.spec +++ b/matrix-synapse-test.spec @@ -27,7 +27,7 @@ %define pkgname matrix-synapse Name: %{pkgname}-test -Version: 1.55.2 +Version: 1.56.0 Release: 0 Summary: Test package for %{pkgname} License: Apache-2.0 diff --git a/matrix-synapse.changes b/matrix-synapse.changes index b1f4ca1..bd1bde7 100644 --- a/matrix-synapse.changes +++ b/matrix-synapse.changes @@ -1,3 +1,104 @@ +------------------------------------------------------------------- +Tue Apr 5 14:16:27 UTC 2022 - Marcus Rueckert + +- Update to 1.56.0 + Synapse will now refuse to start up if open registration is + enabled, in order to help mitigate abuse across the federation. + If you would like to provide registration to anyone, consider + adding email, recaptcha or token-based verification in order to + prevent automated registration from bad actors. This check can be + disabled by setting the enable_registration_without_verification + option in your homeserver configuration file to true. More + details are available in the upgrade notes. + + Synapse will additionally now refuse to start when using + PostgreSQL with a non-C values for COLLATE and CTYPE, unless the + config flag allow_unsafe_locale, found in the database section of + the configuration file, is set to true. See the upgrade notes for + details. + + - Features + - Allow modules to store already existing 3PID associations. + (#12195) + - Allow registering server administrators using the module API. + Contributed by Famedly. (#12250) + - Bugfixes + - Fix a long-standing bug which caused the + /_matrix/federation/v1/state and + /_matrix/federation/v1/state_ids endpoints to return + incorrect or invalid data when called for an event which we + have stored as an "outlier". (#12087) + - Fix a long-standing bug where events from ignored users would + still be considered for relations. (#12227, #12232, #12285) + - Fix a bug introduced in Synapse 1.53.0 where an unnecessary + query could be performed when fetching bundled aggregations + for threads. (#12228) + - Fix a bug introduced in Synapse 1.52.0 where admins could not + deactivate and GDPR-erase a user if Synapse was configured + with limits on avatars. (#12261) + - Improved Documentation + - Fix the link to the module documentation in the legacy spam + checker warning message. (#12231) + - Remove incorrect prefixes in the worker documentation for + some endpoints. (#12243) + - Correct check_username_for_spam annotations and docs. + (#12246) + - Correct Authentik OpenID typo, and add notes on + troubleshooting. Contributed by @IronTooch. (#12275) + - HAProxy reverse proxy guide update to stop sending + IPv4-mapped address to homeserver. Contributed by @villepeh. + (#12279) + - Internal Changes + - Bump the version of black for compatibility with the latest + click release. (#12320) + - Rename shared_rooms to mutual_rooms (MSC2666), as per + proposal changes. (#12036) + - Remove check on update_user_directory for shared rooms + handler (MSC2666), and update/expand documentation. (#12038) + - Refactor create_new_client_event to use a new parameter, + state_event_ids, which accurately describes the usage with + MSC2716 instead of abusing auth_event_ids. (#12083, #12304) + - Refuse to start if registration is enabled without email, + captcha, or token-based verification unless the new config + flag enable_registration_without_verification is set to true. + (#12091, #12322) + - Add tests for database transaction callbacks. (#12198) + - Handle cancellation in DatabasePool.runInteraction. (#12199) + - Add missing type hints for cache storage. (#12216) + - Add missing type hints for storage. (#12248, #12255) + - Add type hints to tests files. (#12224, #12240, #12256) + - Use type stubs for psycopg2. (#12269) + - Improve type annotations for execute_values. (#12311) + - Clean-up logic around rebasing URLs for URL image previews. + (#12219) + - Use the ignored_users table in additional places instead of + re-parsing the account data. (#12225) + - Refactor the relations endpoints to add a RelationsHandler. + (#12237) + - Generate announcement links in the release script. (#12242) + - Improve error message when dependencies check finds a broken + installation. (#12244) + - Compress metrics HTTP resource when enabled. Contributed by + Nick @ Beeper. (#12258) + - Refuse to start if the PostgreSQL database has a non-C + locale, unless the config flag allow_unsafe_db_locale is set + to true. (#12262, #12288) + - Optionally include account validity expiration information to + experimental MSC3720 account status responses. (#12266) + - Add a new cache _get_membership_from_event_id to speed up + push rule calculations in large rooms. (#12272) + - Re-enable Complement concurrency in CI. (#12283) + - Remove unused test utilities. (#12291) + - Enhance logging for inbound federation events. (#12301) + - Fix compatibility with the recently-released Jinja 3.1. + (#12313) + - Avoid trying to calculate the state at outlier events. + (#12314) +- refreshed patches: + dont-bump-cryptography-with-system-openssl.patch + matrix-synapse-1.4.1-paths.patch +- synced dependencies with package changes + ------------------------------------------------------------------- Thu Mar 24 23:29:03 UTC 2022 - Marcus Rueckert diff --git a/matrix-synapse.obsinfo b/matrix-synapse.obsinfo index 1da6f56..7ce0b1e 100644 --- a/matrix-synapse.obsinfo +++ b/matrix-synapse.obsinfo @@ -1,4 +1,4 @@ name: matrix-synapse -version: 1.55.2 -mtime: 1648149535 -commit: 9925f9b8b0c5dd03fdb7ac78b49f75dfd51332f8 +version: 1.56.0 +mtime: 1649159715 +commit: ac80bfba4252c3bb8138cc3711271be63182eed8 diff --git a/matrix-synapse.spec b/matrix-synapse.spec index b7e2be7..cc87256 100644 --- a/matrix-synapse.spec +++ b/matrix-synapse.spec @@ -50,7 +50,7 @@ %define pkgname matrix-synapse %define eggname matrix_synapse Name: %{pkgname} -Version: 1.55.2 +Version: 1.56.0 Release: 0 Summary: Matrix protocol reference homeserver License: Apache-2.0 @@ -83,7 +83,7 @@ BuildRequires: unzip %{sysusers_requires} %requires_peq %{use_python}-base # NOTE: Keep this is in the same order as synapse/python_dependencies.py. -BuildRequires: (%{use_python}-Jinja2 >= 2.9 with %{use_python}-Jinja2 < 3.1) +BuildRequires: %{use_python}-Jinja2 >= 3.0 %requires_peq %{use_python}-Jinja2 BuildRequires: %{use_python}-Pillow >= 5.4.0 %requires_peq %{use_python}-Pillow @@ -133,7 +133,7 @@ BuildRequires: %{use_python}-pymacaroons >= 0.13.0 %requires_peq %{use_python}-pymacaroons BuildRequires: %{use_python}-service_identity >= 18.1.0 %requires_peq %{use_python}-service_identity -BuildRequires: %{use_python}-signedjson >= 1.1.0 +BuildRequires: (%{use_python}-signedjson >= 1.1.0 with %{use_python}-signedjson <= 1.1.1) %requires_peq %{use_python}-signedjson BuildRequires: %{use_python}-six >= 1.10 %requires_peq %{use_python}-six