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

Commit 34b3c29

Browse files
committed
Merge tag 'v1.85.2' into beeper
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 "erik@matrix.org" # 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
2 parents f59c734 + ac3a70a commit 34b3c29

File tree

220 files changed

+5471
-1930
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+5471
-1930
lines changed

.ci/scripts/prepare_old_deps.sh

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -31,35 +31,6 @@ sed -i \
3131
-e '/systemd/d' \
3232
pyproject.toml
3333

34-
# Use poetry to do the installation. This ensures that the versions are all mutually
35-
# compatible (as far the package metadata declares, anyway); pip's package resolver
36-
# is more lax.
37-
#
38-
# Rather than `poetry install --no-dev`, we drop all dev dependencies and the dev-docs
39-
# group from the toml file. This means we don't have to ensure compatibility between
40-
# old deps and dev tools.
41-
42-
pip install toml wheel
43-
44-
REMOVE_DEV_DEPENDENCIES="
45-
import toml
46-
with open('pyproject.toml', 'r') as f:
47-
data = toml.loads(f.read())
48-
49-
del data['tool']['poetry']['dev-dependencies']
50-
del data['tool']['poetry']['group']['dev-docs']
51-
52-
with open('pyproject.toml', 'w') as f:
53-
toml.dump(data, f)
54-
"
55-
python3 -c "$REMOVE_DEV_DEPENDENCIES"
56-
57-
pip install poetry==1.3.2
58-
poetry lock
59-
6034
echo "::group::Patched pyproject.toml"
6135
cat pyproject.toml
6236
echo "::endgroup::"
63-
echo "::group::Lockfile after patch"
64-
cat poetry.lock
65-
echo "::endgroup::"

CHANGES.md

Lines changed: 249 additions & 0 deletions
Large diffs are not rendered by default.

Cargo.lock

Lines changed: 6 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contrib/docker_compose_workers/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ redis:
7070
port: 6379
7171
# dbid: <redis_logical_db_id>
7272
# password: <secret_password>
73+
# use_tls: True
74+
# certificate_file: <path_to_certificate>
75+
# private_key_file: <path_to_private_key>
76+
# ca_file: <path_to_ca_certificate>
7377
```
7478

7579
This assumes that your Redis service is called `redis` in your Docker Compose file.

debian/changelog

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
1+
matrix-synapse-py3 (1.85.2) stable; urgency=medium
2+
3+
* New Synapse release 1.85.2.
4+
5+
-- Synapse Packaging team <packages@matrix.org> Thu, 08 Jun 2023 13:04:18 +0100
6+
7+
matrix-synapse-py3 (1.85.1) stable; urgency=medium
8+
9+
* New Synapse release 1.85.1.
10+
11+
-- Synapse Packaging team <packages@matrix.org> Wed, 07 Jun 2023 10:51:12 +0100
12+
13+
matrix-synapse-py3 (1.85.0) stable; urgency=medium
14+
15+
* New Synapse release 1.85.0.
16+
17+
-- Synapse Packaging team <packages@matrix.org> Tue, 06 Jun 2023 09:39:29 +0100
18+
19+
matrix-synapse-py3 (1.85.0~rc2) stable; urgency=medium
20+
21+
* New Synapse release 1.85.0rc2.
22+
23+
-- Synapse Packaging team <packages@matrix.org> Thu, 01 Jun 2023 09:16:18 -0700
24+
25+
matrix-synapse-py3 (1.85.0~rc1) stable; urgency=medium
26+
27+
* New Synapse release 1.85.0rc1.
28+
29+
-- Synapse Packaging team <packages@matrix.org> Tue, 30 May 2023 13:56:54 +0100
30+
31+
matrix-synapse-py3 (1.84.1) stable; urgency=medium
32+
33+
* New Synapse release 1.84.1.
34+
35+
-- Synapse Packaging team <packages@matrix.org> Fri, 26 May 2023 16:15:30 +0100
36+
37+
matrix-synapse-py3 (1.84.0) stable; urgency=medium
38+
39+
* New Synapse release 1.84.0.
40+
41+
-- Synapse Packaging team <packages@matrix.org> Tue, 23 May 2023 10:57:22 +0100
42+
43+
matrix-synapse-py3 (1.84.0~rc1) stable; urgency=medium
44+
45+
* New Synapse release 1.84.0rc1.
46+
47+
-- Synapse Packaging team <packages@matrix.org> Tue, 16 May 2023 11:12:02 +0100
48+
149
matrix-synapse-py3 (1.83.0) stable; urgency=medium
250

351
* New Synapse release 1.83.0.

demo/start.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ for port in 8080 8081 8082; do
4646
echo ''
4747

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

83-
# Ignore keys from the trusted keys server
84-
echo '# Ignore keys from the trusted keys server'
85-
echo 'trusted_key_servers:'
86-
echo ' - server_name: "matrix.org"'
87-
echo ' accept_keys_insecurely: true'
88-
echo ''
83+
# Request keys directly from servers contacted over federation
84+
echo 'trusted_key_servers: []'
8985

9086
# Allow the servers to communicate over localhost.
9187
allow_list=$(cat <<-ALLOW_LIST

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ RUN \
3838
--mount=type=cache,target=/var/cache/apt,sharing=locked \
3939
--mount=type=cache,target=/var/lib/apt,sharing=locked \
4040
apt-get update -qq && apt-get install -yqq \
41-
build-essential curl git libffi-dev libssl-dev \
41+
build-essential curl git libffi-dev libssl-dev pkg-config \
4242
&& rm -rf /var/lib/apt/lists/*
4343

4444
# Install rust and ensure its in the PATH.

docker/conf-workers/worker.yaml.j2

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
worker_app: "{{ app }}"
77
worker_name: "{{ name }}"
88

9-
# The replication listener on the main synapse process.
10-
worker_replication_host: 127.0.0.1
11-
worker_replication_http_port: 9093
12-
139
worker_listeners:
1410
- type: http
1511
port: {{ port }}

docker/configure_workers_and_start.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
from jinja2 import Environment, FileSystemLoader
7070

7171
MAIN_PROCESS_HTTP_LISTENER_PORT = 8080
72+
MAIN_PROCESS_INSTANCE_NAME = "main"
73+
MAIN_PROCESS_LOCALHOST_ADDRESS = "127.0.0.1"
74+
MAIN_PROCESS_REPLICATION_PORT = 9093
7275

7376
# A simple name used as a placeholder in the WORKERS_CONFIG below. This will be replaced
7477
# during processing with the name of the worker.
@@ -719,8 +722,8 @@ def generate_worker_files(
719722
# shared config file.
720723
listeners = [
721724
{
722-
"port": 9093,
723-
"bind_address": "127.0.0.1",
725+
"port": MAIN_PROCESS_REPLICATION_PORT,
726+
"bind_address": MAIN_PROCESS_LOCALHOST_ADDRESS,
724727
"type": "http",
725728
"resources": [{"names": ["replication"]}],
726729
}
@@ -870,6 +873,14 @@ def generate_worker_files(
870873

871874
workers_in_use = len(requested_worker_types) > 0
872875

876+
# If there are workers, add the main process to the instance_map too.
877+
if workers_in_use:
878+
instance_map = shared_config.setdefault("instance_map", {})
879+
instance_map[MAIN_PROCESS_INSTANCE_NAME] = {
880+
"host": MAIN_PROCESS_LOCALHOST_ADDRESS,
881+
"port": MAIN_PROCESS_REPLICATION_PORT,
882+
}
883+
873884
# Shared homeserver config
874885
convert(
875886
"/conf/shared.yaml.j2",

docs/admin_api/experimental_features.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Experimental Features API
22

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

1012

@@ -19,7 +21,7 @@ provide a body containing the user id and listing the features to enable/disable
1921
{
2022
"features": {
2123
"msc3026":true,
22-
"msc2654":true
24+
"msc3881":true
2325
}
2426
}
2527
```
@@ -46,7 +48,6 @@ user like so:
4648
{
4749
"features": {
4850
"msc3026": true,
49-
"msc2654": true,
5051
"msc3881": false,
5152
"msc3967": false
5253
}

0 commit comments

Comments
 (0)