- Nov 29, 2021
-
-
Dirk Klimpel authored
-
Eric Eastwood authored
Refactor `backfilled` into specific behavior function arguments (`_persist_events_and_state_updates`) (#11417) Part of https://github.com/matrix-org/synapse/issues/11300 Call stack: - `_persist_events_and_state_updates` (added `use_negative_stream_ordering`) - `_persist_events_txn` - `_update_room_depths_txn` (added `update_room_forward_stream_ordering`) - `_update_metadata_tables_txn` - `_store_room_members_txn` (added `inhibit_local_membership_updates`) Using keyword-only arguments (`*`) to reduce the mistakes from `backfilled` being left as a positional argument somewhere and being interpreted wrong by our new arguments.
-
Patrick Cloke authored
This also makes additional updates where the implementation had drifted from the approved MSC. Unstable endpoints will be removed at a later data.
-
Erik Johnston authored
Co-authored-by:
Brendan Abolivier <babolivier@matrix.org>
-
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.
-
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
-