Skip to content

Commit 077a6f7

Browse files
committed
Merge branch 'release-v1.142' into develop
2 parents fcac7e0 + 72073d8 commit 077a6f7

File tree

5 files changed

+25
-3
lines changed

5 files changed

+25
-3
lines changed

CHANGES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Synapse 1.142.0rc3 (2025-11-04)
1+
# Synapse 1.142.0rc4 (2025-11-07)
22

33
## Dropped support for Python 3.9
44

@@ -29,6 +29,14 @@ of these wheels downstream, please reach out to us in
2929
[#synapse-dev:matrix.org](https://matrix.to/#/#synapse-dev:matrix.org). We'd
3030
love to hear from you!
3131

32+
## Bugfixes
33+
34+
- Fix a bug introduced in 1.142.0rc1 where any attempt to configure `matrix_authentication_service.secret_path` would prevent the homeserver from starting up. ([\#19144](https://github.com/element-hq/synapse/issues/19144))
35+
36+
37+
38+
39+
# Synapse 1.142.0rc3 (2025-11-04)
3240

3341
## Internal Changes
3442

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
matrix-synapse-py3 (1.142.0~rc4) stable; urgency=medium
2+
3+
* New Synapse release 1.142.0rc4.
4+
5+
-- Synapse Packaging team <packages@matrix.org> Fri, 07 Nov 2025 10:54:42 +0000
6+
17
matrix-synapse-py3 (1.142.0~rc3) stable; urgency=medium
28

39
* New Synapse release 1.142.0rc3.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ module-name = "synapse.synapse_rust"
112112

113113
[tool.poetry]
114114
name = "matrix-synapse"
115-
version = "1.142.0rc3"
115+
version = "1.142.0rc4"
116116
description = "Homeserver for the Matrix decentralised comms protocol"
117117
authors = ["Matrix.org Team and Contributors <packages@matrix.org>"]
118118
license = "AGPL-3.0-or-later OR LicenseRef-Element-Commercial"

synapse/config/mas.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ class MasConfigModel(ParseModel):
3737
enabled: StrictBool = False
3838
endpoint: AnyHttpUrl = AnyHttpUrl("http://localhost:8080")
3939
secret: StrictStr | None = Field(default=None)
40-
secret_path: FilePath | None = Field(default=None)
40+
# We set `strict=False` to allow `str` instances.
41+
secret_path: FilePath | None = Field(default=None, strict=False)
4142

4243
@model_validator(mode="after")
4344
def verify_secret(self) -> Self:

synapse/util/pydantic_models.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ class ParseModel(BaseModel):
3030
3131
but otherwise uses Pydantic's default behaviour.
3232
33+
Strict mode can adversely affect some types of fields, and should be disabled
34+
for a field if:
35+
36+
- the field's type is a `Path` or `FilePath`. Strict mode will refuse to
37+
coerce from `str` (likely what the yaml parser will produce) to `FilePath`,
38+
raising a `ValidationError`.
39+
3340
For now, ignore unknown fields. In the future, we could change this so that unknown
3441
config values cause a ValidationError, provided the error messages are meaningful to
3542
server operators.

0 commit comments

Comments
 (0)