- Jan 13, 2022
-
-
Andy Balaam authored
-
- Jan 12, 2022
-
-
Jason Robinson authored
Currently when puppeting another user, the user doing the puppeting is tracked for client IPs and MAU (if configured). When tracking MAU is important, it becomes necessary to be possible to also track the client IPs and MAU of puppeted users. As an example a client that manages user creation and creation of tokens via the Synapse admin API, passing those tokens for the client to use. This PR adds optional configuration to enable tracking of puppeted users into monthly active users. The default behaviour stays the same. Signed-off-by:
Jason Robinson <jasonr@matrix.org>
-
haslersn authored
Signed-off-by:
Sebastian Hasler <sebastian.hasler@stuvus.uni-stuttgart.de>
-
Richard van der Hoff authored
Having spent much of the last week attempting to run complement tests from somewhere with damp string instead of internet... something had to be done.
-
- Jan 10, 2022
-
-
Michael Kaye authored
-
Andrew Morgan authored
-
reivilibre authored
-
David Robertson authored
* Deal with mypy errors w/ type-hinted pynacl 1.5.0 Fixes #11644. I really don't like that we're monkey patching pynacl SignedKey instances with alg and version objects. But I'm too scared to make the changes necessary right now. (Ideally I would replace `signedjson.types.SingingKey` with a runtime class which wraps or inherits from `nacl.signing.SigningKey`.) C.f. https://github.com/matrix-org/python-signedjson/issues/16
-
kegsay authored
* Prettier complement logs * Changelog
-
- Jan 08, 2022
-
-
Patrick Cloke authored
By returning all of the m.space.child state of the space, not just the first 50. The number of rooms returned is still capped at 50. For the federation API this implies that the requesting server will need to individually query for any other rooms it is not joined to.
-
- Jan 07, 2022
-
-
David Robertson authored
* Optionally use an on-disk sqlite db in tests When debugging a test it is sometimes useful to inspect the state of the DB. This is not easy when the db is in-memory: one cannot attach the sqlite CLI to another process's DB. With this change, if SYNAPSE_TEST_PERSIST_SQLITE_DB is set, we use `_trial_temp/test.db` as our sqlite database. One can then use `sqlite3 _trial_temp/test.db` and query to your heart's content. The DB is destroyed and recreated between different test cases. Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
David Robertson authored
-
Olivier Wilkinson (reivilibre) authored
-
Patrick Cloke authored
This makes the serialization of events synchronous (and it no longer access the database), but we must manually calculate and provide the bundled aggregations. Overall this should cause no change in behavior, but is prep work for other improvements.
-
Olivier Wilkinson (reivilibre) authored
-
- Jan 06, 2022
-
-
Patrick Cloke authored
This was removed from MSC2674 before that was approved and is not used by any known clients.
-
Patrick Cloke authored
On Python 2, indexing a byte-string gives back a byte-string, while on Python 3 it gives back the ASCII equivalent as an int.
-
Shay authored
* add some tests to verify we are stripping unauthorized fields out of unsigned * add function to strip unauthorized fields from the unsigned object of event * newsfragment * update newsfragment number * add check to on_send_membership_event * refactor tests * fix lint error * slightly refactor tests and add some comments * slight refactor * refactor tests * fix import error * slight refactor * remove unsigned filtration code from synapse/handlers/federation_event.py * lint * move unsigned filtering code to event base * refactor tests * update newsfragment * requested changes * remove unused retun values
-
reivilibre authored
Work around Mjolnir compatibility issue by adding an import for `glob_to_regex` in `synapse.util`, where it moved from. (#11696)
-
lukasdenk authored
Make room creations denied by `user_may_create_room` cause an `M_FORBIDDEN` error to be returned, not `M_UNKNOWN` (#11672) Co-authored-by:
reivilibre <olivier@librepush.net>
-
- Jan 05, 2022
-
-
Travis Ralston authored
Fixes minor discrepancies between the /hierarchy endpoint described in MSC2946 and the implementation. Note that the changes impact the stable and unstable /hierarchy and unstable /spaces endpoints for both client and federation APIs.
-
Dirk Klimpel authored
-
Olivier Wilkinson (reivilibre) authored
-
Shay authored
* newsfragment * fix newsfragment number * update changelog * remove extra space
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Olivier Wilkinson (reivilibre) authored
-
Olivier Wilkinson (reivilibre) authored
-
Olivier Wilkinson (reivilibre) authored
-
David Robertson authored
If we've never made a request to a remote homeserver, we should cache the response---even if the response is "this user has no devices".
-
Olivier Wilkinson (reivilibre) authored
-
Richard van der Hoff authored
* `_auth_and_persist_outliers`: mark persisted events as outliers Mark any events that get persisted via `_auth_and_persist_outliers` as, well, outliers. Currently this will be a no-op as everything will already be flagged as an outlier, but I'm going to change that. * `process_remote_join`: stop flagging as outlier The events are now flagged as outliers later on, by `_auth_and_persist_outliers`. * `send_join`: remove `outlier=True` The events created here are returned in the result of `send_join` to `FederationHandler.do_invite_join`. From there they are passed into `FederationEventHandler.process_remote_join`, which passes them to `_auth_and_persist_outliers`... which sets the `outlier` flag. * `get_event_auth`: remove `outlier=True` stop flagging the events returned by `get_event_auth` as outliers. This method is only called by `_get_remote_auth_chain_for_event`, which passes the results into `_auth_and_persist_outliers`, which will flag them as outliers. * `_get_remote_auth_chain_for_event`: remove `outlier=True` we pass all the events into `_auth_and_persist_outliers`, which will now flag the events as outliers. * `_check_sigs_and_hash_and_fetch`: remove unused `outlier` parameter This param is now never set to True, so we can remove it. * `_check_sigs_and_hash_and_fetch_one`: remove unused `outlier` param This is no longer set anywhere, so we can remove it. * `get_pdu`: remove unused `outlier` parameter ... and chase it down into `get_pdu_from_destination_raw`. * `event_from_pdu_json`: remove redundant `outlier` param This is never set to `True`, so can be removed. * changelog * update docstring
-
Philipp Matthias Schäfer authored
Co-authored-by:
reivilibre <olivier@librepush.net> Co-authored-by:
reivilibre <oliverw@matrix.org>
-
Fr3shTea authored
Co-authored-by:
reivilibre <olivier@librepush.net>
-
Dirk Klimpel authored
Co-authored-by:
reivilibre <olivier@librepush.net>
-
reivilibre authored
Co-authored-by:
Sean Quah <seanq@element.io>
-
reivilibre authored
Clarify SSO mapping provider documentation by writing `def` or `async def` before the names of methods, as appropriate. (#11681)
-
Callum Macdonald authored
-