Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Merge tag 'v1.85.2' into beeper
Browse files Browse the repository at this point in the history
Synapse 1.85.2 (2023-06-08)
===========================

Bugfixes
--------

- Fix regression where using TLS for HTTP replication between workers did not work. Introduced in v1.85.0. ([\matrix-org#15746](matrix-org#15746))

# -----BEGIN PGP SIGNATURE-----
#
# iQFEBAABCgAuFiEEBTGR3/RnAzBGUif3pULk7RsPrAkFAmSBxowQHGVyaWtAbWF0
# cml4Lm9yZwAKCRClQuTtGw+sCeE5CACHiMjY6cJ8ldeSFe3md9cN51CbZ7GKti6t
# DPpLnCkHCYAd43hL0t2qdS4721TtfQKRLZuZGAA3DaXk8C/Nn4aSBjo/QAbaNPBo
# ZaVBXxxkCXMqM8EX+MS79UmYyVYy9N293F5NMV4FTVTr/MPpWsmvNGA+eQGTsdCm
# QgSUJlwLlDlwMX9B9dAsEfSyALx18P5ZCJ8wlgsF1nSqoyIIRUWTrCP9lkJkLWHt
# UgYXb4GOJ/fLlhM1aj+UXCoa+XA6eMt6Yu4LYSre032VbDRXPnZ8o3nJ2TVRjl4f
# hTZ+GqT0KbW4ejXD5MEp56JpQEaF4viCWZFxLtQ+S6WEy3dVksAQ
# =NBY9
# -----END PGP SIGNATURE-----
# gpg: Signature made Thu Jun  8 13:16:12 2023 BST
# gpg:                using RSA key 053191DFF4670330465227F7A542E4ED1B0FAC09
# gpg:                issuer "[email protected]"
# gpg: Can't check signature: No public key

# Conflicts:
#	.github/workflows/docs-pr-netlify.yaml
#	.github/workflows/tests.yml
#	poetry.lock
#	rust/src/push/base_rules.rs
#	synapse/config/redis.py
#	synapse/handlers/read_marker.py
  • Loading branch information
Fizzadar committed Jun 13, 2023
2 parents f59c734 + ac3a70a commit 34b3c29
Show file tree
Hide file tree
Showing 220 changed files with 5,471 additions and 1,930 deletions.
29 changes: 0 additions & 29 deletions .ci/scripts/prepare_old_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,35 +31,6 @@ sed -i \
-e '/systemd/d' \
pyproject.toml

# Use poetry to do the installation. This ensures that the versions are all mutually
# compatible (as far the package metadata declares, anyway); pip's package resolver
# is more lax.
#
# Rather than `poetry install --no-dev`, we drop all dev dependencies and the dev-docs
# group from the toml file. This means we don't have to ensure compatibility between
# old deps and dev tools.

pip install toml wheel

REMOVE_DEV_DEPENDENCIES="
import toml
with open('pyproject.toml', 'r') as f:
data = toml.loads(f.read())
del data['tool']['poetry']['dev-dependencies']
del data['tool']['poetry']['group']['dev-docs']
with open('pyproject.toml', 'w') as f:
toml.dump(data, f)
"
python3 -c "$REMOVE_DEV_DEPENDENCIES"

pip install poetry==1.3.2
poetry lock

echo "::group::Patched pyproject.toml"
cat pyproject.toml
echo "::endgroup::"
echo "::group::Lockfile after patch"
cat poetry.lock
echo "::endgroup::"
249 changes: 249 additions & 0 deletions CHANGES.md

Large diffs are not rendered by default.

15 changes: 6 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions contrib/docker_compose_workers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ redis:
port: 6379
# dbid: <redis_logical_db_id>
# password: <secret_password>
# use_tls: True
# certificate_file: <path_to_certificate>
# private_key_file: <path_to_private_key>
# ca_file: <path_to_ca_certificate>
```

This assumes that your Redis service is called `redis` in your Docker Compose file.
Expand Down
48 changes: 48 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,51 @@
matrix-synapse-py3 (1.85.2) stable; urgency=medium

* New Synapse release 1.85.2.

-- Synapse Packaging team <[email protected]> Thu, 08 Jun 2023 13:04:18 +0100

matrix-synapse-py3 (1.85.1) stable; urgency=medium

* New Synapse release 1.85.1.

-- Synapse Packaging team <[email protected]> Wed, 07 Jun 2023 10:51:12 +0100

matrix-synapse-py3 (1.85.0) stable; urgency=medium

* New Synapse release 1.85.0.

-- Synapse Packaging team <[email protected]> Tue, 06 Jun 2023 09:39:29 +0100

matrix-synapse-py3 (1.85.0~rc2) stable; urgency=medium

* New Synapse release 1.85.0rc2.

-- Synapse Packaging team <[email protected]> Thu, 01 Jun 2023 09:16:18 -0700

matrix-synapse-py3 (1.85.0~rc1) stable; urgency=medium

* New Synapse release 1.85.0rc1.

-- Synapse Packaging team <[email protected]> Tue, 30 May 2023 13:56:54 +0100

matrix-synapse-py3 (1.84.1) stable; urgency=medium

* New Synapse release 1.84.1.

-- Synapse Packaging team <[email protected]> Fri, 26 May 2023 16:15:30 +0100

matrix-synapse-py3 (1.84.0) stable; urgency=medium

* New Synapse release 1.84.0.

-- Synapse Packaging team <[email protected]> Tue, 23 May 2023 10:57:22 +0100

matrix-synapse-py3 (1.84.0~rc1) stable; urgency=medium

* New Synapse release 1.84.0rc1.

-- Synapse Packaging team <[email protected]> Tue, 16 May 2023 11:12:02 +0100

matrix-synapse-py3 (1.83.0) stable; urgency=medium

* New Synapse release 1.83.0.
Expand Down
10 changes: 3 additions & 7 deletions demo/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ for port in 8080 8081 8082; do
echo ''

# Warning, this heredoc depends on the interaction of tabs and spaces.
# Please don't accidentaly bork me with your fancy settings.
# Please don't accidentally bork me with your fancy settings.
listeners=$(cat <<-PORTLISTENERS
# Configure server to listen on both $https_port and $port
# This overides some of the default settings above
Expand Down Expand Up @@ -80,12 +80,8 @@ for port in 8080 8081 8082; do
echo "tls_certificate_path: \"$DIR/$port/localhost:$port.tls.crt\""
echo "tls_private_key_path: \"$DIR/$port/localhost:$port.tls.key\""

# Ignore keys from the trusted keys server
echo '# Ignore keys from the trusted keys server'
echo 'trusted_key_servers:'
echo ' - server_name: "matrix.org"'
echo ' accept_keys_insecurely: true'
echo ''
# Request keys directly from servers contacted over federation
echo 'trusted_key_servers: []'

# Allow the servers to communicate over localhost.
allow_list=$(cat <<-ALLOW_LIST
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RUN \
--mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update -qq && apt-get install -yqq \
build-essential curl git libffi-dev libssl-dev \
build-essential curl git libffi-dev libssl-dev pkg-config \
&& rm -rf /var/lib/apt/lists/*

# Install rust and ensure its in the PATH.
Expand Down
4 changes: 0 additions & 4 deletions docker/conf-workers/worker.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
worker_app: "{{ app }}"
worker_name: "{{ name }}"

# The replication listener on the main synapse process.
worker_replication_host: 127.0.0.1
worker_replication_http_port: 9093

worker_listeners:
- type: http
port: {{ port }}
Expand Down
15 changes: 13 additions & 2 deletions docker/configure_workers_and_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
from jinja2 import Environment, FileSystemLoader

MAIN_PROCESS_HTTP_LISTENER_PORT = 8080
MAIN_PROCESS_INSTANCE_NAME = "main"
MAIN_PROCESS_LOCALHOST_ADDRESS = "127.0.0.1"
MAIN_PROCESS_REPLICATION_PORT = 9093

# A simple name used as a placeholder in the WORKERS_CONFIG below. This will be replaced
# during processing with the name of the worker.
Expand Down Expand Up @@ -719,8 +722,8 @@ def generate_worker_files(
# shared config file.
listeners = [
{
"port": 9093,
"bind_address": "127.0.0.1",
"port": MAIN_PROCESS_REPLICATION_PORT,
"bind_address": MAIN_PROCESS_LOCALHOST_ADDRESS,
"type": "http",
"resources": [{"names": ["replication"]}],
}
Expand Down Expand Up @@ -870,6 +873,14 @@ def generate_worker_files(

workers_in_use = len(requested_worker_types) > 0

# If there are workers, add the main process to the instance_map too.
if workers_in_use:
instance_map = shared_config.setdefault("instance_map", {})
instance_map[MAIN_PROCESS_INSTANCE_NAME] = {
"host": MAIN_PROCESS_LOCALHOST_ADDRESS,
"port": MAIN_PROCESS_REPLICATION_PORT,
}

# Shared homeserver config
convert(
"/conf/shared.yaml.j2",
Expand Down
13 changes: 7 additions & 6 deletions docs/admin_api/experimental_features.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Experimental Features API

This API allows a server administrator to enable or disable some experimental features on a per-user
basis. Currently supported features are [msc3026](https://github.com/matrix-org/matrix-spec-proposals/pull/3026): busy
presence state enabled, [msc2654](https://github.com/matrix-org/matrix-spec-proposals/pull/2654): enable unread counts,
[msc3881](https://github.com/matrix-org/matrix-spec-proposals/pull/3881): enable remotely toggling push notifications
for another client, and [msc3967](https://github.com/matrix-org/matrix-spec-proposals/pull/3967): do not require
basis. The currently supported features are:
- [MSC3026](https://github.com/matrix-org/matrix-spec-proposals/pull/3026): busy
presence state enabled
- [MSC3881](https://github.com/matrix-org/matrix-spec-proposals/pull/3881): enable remotely toggling push notifications
for another client
- [MSC3967](https://github.com/matrix-org/matrix-spec-proposals/pull/3967): do not require
UIA when first uploading cross-signing keys.


Expand All @@ -19,7 +21,7 @@ provide a body containing the user id and listing the features to enable/disable
{
"features": {
"msc3026":true,
"msc2654":true
"msc3881":true
}
}
```
Expand All @@ -46,7 +48,6 @@ user like so:
{
"features": {
"msc3026": true,
"msc2654": true,
"msc3881": false,
"msc3967": false
}
Expand Down
2 changes: 1 addition & 1 deletion docs/admin_api/statistics.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ it should be enough to get a rough idea of where database disk space is going.
The API is:

```
GET /_synapse/admin/v1/statistics/statistics/database/rooms
GET /_synapse/admin/v1/statistics/database/rooms
```

A response body like the following is returned:
Expand Down
Loading

0 comments on commit 34b3c29

Please sign in to comment.