- Nov 29, 2021
-
-
Patrick Cloke authored
This does not remove the unstable field and still parses both. Handling of the unstable field will need to be removed in the future.
-
Sean Quah authored
-
reivilibre authored
-
Richard van der Hoff authored
If we tried to request multiple keys for the same server, we would end up dropping some of those requests.
-
Tulir Asokan authored
Signed-off-by:
Tulir Asokan <tulir@beeper.com>
-
David Robertson authored
-
David Robertson authored
-
David Robertson authored
This would have caught the bug #11438 introduced in #11217 and fixed in #11439.
-
- Nov 26, 2021
-
-
Daniel Molkentin authored
Since e81fa926, Synapse depends on the use_float flag which has been introduced in ijson 3.1 and is not available in 3.0. This is known to cause runtime errors with send_join. Signed-off-by:
Daniel Molkentin <danimo@infra.run> Co-authored-by:
Daniel Molkentin <danimo@infra.run>
-
reivilibre authored
Update MSC2918 refresh token support to confirm with the latest revision: accept the `refresh_tokens` parameter in the request body rather than in the URL parameters. (#11430)
-
Sean Quah authored
Also refactor the stream ID trackers/generators a bit and try to document them better.
-
reivilibre authored
Support expiry of refresh tokens and expiry of the overall session when refresh tokens are in use. (#11425)
-
Michael Kaye authored
The intent is to iterate through all the worker ports and only report healthy when all are healthy, starting with the main process.
-
Sean Quah authored
The previous fix for the ongoing event fetches counter (8eec25a1) was both insufficient and incorrect. When the database is unreachable, `_do_fetch` never gets run and so `_event_fetch_ongoing` is never decremented. The previous fix also moved the `_event_fetch_ongoing` decrement outside of the `_event_fetch_lock` which allowed race conditions to corrupt the counter.
-
- Nov 25, 2021
-
-
Sean Quah authored
This change makes mypy complain if the constants are ever reassigned, and, more usefully, makes mypy type them as `Literal`s instead of `str`s, allowing code of the following form to pass mypy: ```py def do_something(membership: Literal["join", "leave"], ...): ... do_something(Membership.JOIN, ...) ```
-
Brendan Abolivier authored
Co-authored-by:
Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
-
- Nov 24, 2021
-
-
Brendan Abolivier authored
Co-authored-by:
Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
-
- Nov 23, 2021
-
-
reivilibre authored
Rename unstable `access_token_lifetime` configuration option to `refreshable_access_token_lifetime` to make it clear it only concerns refreshable access tokens. (#11388)
-
Patrick Cloke authored
-
Shay authored
Remove code invalidated by deprecated config flag 'trust_identity_servers_for_password_resets' (#11395) * remove background update code related to deprecated config flag * changelog entry * update changelog * Delete 11394.removal Duplicate, wrong number * add no-op background update and change newfragment so it will be consolidated with associated work * remove unused code * Remove code associated with deprecated flag from legacy docker dynamic config file Co-authored-by:
reivilibre <oliverw@matrix.org>
-
Sean Quah authored
-
Sean Quah authored
Synapse 1.47.1 (2021-11-23) =========================== This release fixes a security issue in the media store, affecting all prior releases of Synapse. Server administrators are encouraged to update Synapse as soon as possible. We are not aware of these vulnerabilities being exploited in the wild. Server administrators who are unable to update Synapse may use the workarounds described in the linked GitHub Security Advisory below. Security advisory ----------------- The following issue is fixed in 1.47.1. - **[GHSA-3hfw-x7gx-437c](https://github.com/matrix-org/synapse/security/advisories/GHSA-3hfw-x7gx-437c) / [CVE-2021-41281](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41281): Path traversal when downloading remote media.** Synapse instances with the media repository enabled can be tricked into downloading a file from a remote server into an arbitrary directory, potentially outside the media store directory. The last two directories and file name of the path are chosen randomly by Synapse and cannot be controlled by an attacker, which limits the impact. Homeservers with the media repository disabled are unaffected. Homeservers configured with a federation whitelist are also unaffected. Fixed by [91f2bd09](https://github.com/matrix-org/synapse/commit/91f2bd090).
-
Patrick Cloke authored
-
- Nov 22, 2021
-
-
Kostas authored
Allows specifying a different claim (from the default "sub") to use when calculating the localpart of the Matrix ID used during the JWT login.
-
Patrick Cloke authored
Instead of only known relation types. This also reworks the background update for thread relations to crawl events and search for any relation type, not just threaded relations.
-
- Nov 19, 2021
-
-
Shay authored
-
Dirk Klimpel authored
Instead of having admins poke into the database directly. Can currently run jobs to populate stats and to populate the user directory.
-
Sean Quah authored
-
Patrick Cloke authored
If `room_list_publication_rules` was configured with a rule with a non-wildcard alias and a room was created with an alias then an internal server error would have been thrown. This fixes the error and properly applies the publication rules during room creation.
-
Sean Quah authored
-
Sean Quah authored
-
Sean Quah authored
-
Sean Quah authored
Also tighten validation of server names by forbidding invalid characters in IPv6 addresses and empty domain labels.
-
Patrick Cloke authored
-
Patrick Cloke authored
As the tests are currently failing and not run in CI.
-
Hubert Chathi authored
-
Richard van der Hoff authored
I'd find it helpful to have a docker image corresponding to current develop, without having to build my own.
-
Richard van der Hoff authored
Fixes a bug introduced in #11129: objects signed by the local server, but with keys other than the current one, could not be successfully verified. We need to check the key id in the signature, and track down the right key.
-
- Nov 18, 2021
-
-
Eric Eastwood authored
Prevent historical state from being pushed to an application service via `/transactions` (MSC2716) (#11265) Mark historical state from the MSC2716 `/batch_send` endpoint as `historical` which makes it `backfilled` and have a negative `stream_ordering` so it doesn't get queried by `/transactions`. Fix https://github.com/matrix-org/synapse/issues/11241 Complement tests: https://github.com/matrix-org/complement/pull/221
-
Shay authored
Remove legacy code related to deprecated `trust_identity_server_for_password_resets` config flag (#11333) * remove code legacy code related to deprecated config flag "trust_identity_server_for_password_resets" from synapse/config/emailconfig.py * remove legacy code supporting depreciated config flag "trust_identity_server_for_password_resets" from synapse/config/registration.py * remove legacy code supporting depreciated config flag "trust_identity_server_for_password_resets" from synapse/handlers/identity.py * add tests to ensure config error is thrown and synapse refuses to start when depreciated config flag is found * add changelog * slightly change behavior to only check for deprecated flag if set to 'true' * Update changelog.d/11333.misc Co-authored-by:
reivilibre <oliverw@matrix.org> Co-authored-by:
reivilibre <oliverw@matrix.org>
-