Skip to content

Commit a192bfc

Browse files
authored
Merge pull request #1259 from element-hq/bbz/synapse-1.152.0
Upgrade Synapse to v1.152.0
2 parents 5fe5577 + 5802857 commit a192bfc

5 files changed

Lines changed: 38 additions & 3 deletions

File tree

charts/matrix-stack/source/synapse.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ logging:
8787
## levelOverrides:
8888
## synapse.util.caches.lrucache: WARNING
8989
levelOverrides: {}
90-
{{- sub_schema_values.image(registry='oci.element.io', repository='synapse', tag='v1.151.0-ess.1') }}
90+
{{- sub_schema_values.image(registry='oci.element.io', repository='synapse', tag='v1.152.0') }}
9191
{{- sub_schema_values.extraVolumes("Synapse", with_context=true) }}
9292
{{- sub_schema_values.extraVolumeMounts("Synapse", with_context=true) }}
9393
{{- sub_schema_values.extraInitContainers("Synapse") }}

charts/matrix-stack/templates/synapse/_synapse_details.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ responsibleForMedia
9696
{{ list "to_device" | toJson }}
9797
{{- else if eq . "event-persister" }}
9898
{{ list "events" | toJson }}
99+
{{- else if eq . "media-repository" }}
100+
{{ list "quarantined_media_changes" | toJson }}
99101
{{- else if eq . "presence-writer" }}
100102
{{ list "presence" | toJson }}
101103
{{- else if eq . "push-rules" }}

charts/matrix-stack/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4935,7 +4935,7 @@ synapse:
49354935

49364936
## The tag of the container image to use.
49374937
## One of tag or digest must be provided.
4938-
tag: "v1.151.0-ess.1"
4938+
tag: "v1.152.0"
49394939

49404940
## Container digest to use. Used to pull the image instead of the image tag if set
49414941
## The tag will still be set as the app.kubernetes.io/version label

docs/maintenance.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ SPDX-License-Identifier: AGPL-3.0-only
1313
- [Backup](#backup)
1414
- [Restore](#restore)
1515
- [Installation State](#installation-state)
16+
- [Fixing CVE-2025-24044 manually](#fixing-cve-2026-24044elementsec-2025-1670-manually)
17+
- [Manually running the event resigning background job](#manually-running-the-event-resigning-background-job)
1618

1719
## Upgrading
1820

@@ -130,6 +132,8 @@ The deployment markers functionality can be turned off by setting `deploymentMar
130132

131133
If you initially deployed ESS Community with the chart secrets initialization hook enabled (`initSecrets.enabled` not set to `false`), your Synapse signing key will be vulnerable if it was not set explicitly in `synapse.signingKey`. If you later specified its content in `synapse.signingKey` in the values files, the chart will not be able to generate a new key automatically. You will be using the vulnerable signing key until you change it manually.
132134

135+
Even if the above doesn't apply, if you never ran a version of ESS Community between 25.12.2 and 26.4.0 (inclusive), you will still need to [manually trigger the event resigning background job](#manually-running-the-event-resigning-background-job).
136+
133137
1. Install `signedjson` and `pyyaml` using `pip` : `pip install signedjson pyyaml`
134138
2. Generate your new signing key with the key id `ed25519:1` using the following command :
135139

@@ -204,4 +208,20 @@ If you initially deployed ESS Community with the chart secrets initialization ho
204208
}
205209
}
206210
207-
```
211+
```
212+
213+
### Manually running the event resigning background job
214+
215+
If you are upgrading from 25.12.1 or earlier to ESS Community 26.4.1 or later then the event resigning background job needs to be manually run.
216+
This applies if `initSecrets` was enabled (the default), regardless of whether you hard-coded the generated Synapse signing key into `synapse.signingKey` or not.
217+
218+
If your deployment ever ran 25.12.2 to 26.4.0, and either generated the Synapse signing key externally or didn't hard-code the chart generated signing key, then this process does not need to run.
219+
220+
The event resigning background job is triggered with
221+
222+
```json
223+
curl -s https://<your synapse host>/_synapse/admin/v1/background_updates/start_job -H 'Authorization: Bearer <admin access token>' -H 'Content-type: application/json' -d '{"job_name": "event_resign"}'
224+
```
225+
226+
The background job optionally takes `old_key` and `before_ts` JSON fields.
227+
Full documentation can be found in the [Synapse Admin API documentation](https://element-hq.github.io/synapse/latest/usage/administration/admin_api/background_updates.html#run)

newsfragments/1259.changed.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Upgrade Synapse to v1.152.0.
2+
3+
If upgrading directly from ESS Community 25.12.1 or earlier, the [`event_resign` background update](https://element-hq.github.io/synapse/latest/usage/administration/admin_api/background_updates.html) will need to be manually run.
4+
If ESS Community 25.12.2 to 26.4.0 have been run on a deployment with `initSecrets` enabled (the default), this background update does not need to be manually run.
5+
If upgrading from ESS Community 25.12.1 or earlier or `initSecrets` was later disabled, full [instructions are available](https://github.com/element-hq/ess-helm/blob/main/docs/maintenance.md#fixing-cve-2026-24044elementsec-2025-1670-manually)
6+
7+
Highlights:
8+
- Add a ["Listing quarantined media changes" Admin API](https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#listing-quarantined-media-changes) for retrieving a paginated record of when media became (un)quarantined
9+
- Add a way to re-sign local events with a new signing key
10+
- Reduce database disk space usage by pruning old rows from `device_lists_changes_in_room`
11+
12+
Full Changelogs:
13+
- [v1.152.0](https://github.com/element-hq/synapse/releases/tag/v1.152.0)

0 commit comments

Comments
 (0)