summary refs log tree commit diff
path: root/scripts-dev/tail-synapse.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-03-23Stabilise all knock-related unstable identifiers that would be in state (#96)Andrew Morgan2-5/+10
2021-03-22Port "Add support for no_proxy and case insensitive env variables" from ↵Andrew Morgan48-154/+398
mainline to dinsic (#93) This PR is simply porting https://github.com/matrix-org/synapse/pull/9372 to dinsic. I also had to bring in https://github.com/matrix-org/synapse/pull/8821 and https://github.com/matrix-org/synapse/pull/9084 for this code to work properly - a sign that we should merge mainline into dinsic again soon.
2021-03-19Remove extraneous print (#94)Andrew Morgan1-1/+0
2021-03-19Fix the pipeline to use knock v7 Complement branch (#92)Andrew Morgan1-3/+3
2021-03-19Cap mypy tests at twisted==20.3.0 (#90)Andrew Morgan1-0/+3
2021-03-18Change knock room version to v7 (#88)Andrew Morgan5-18/+18
2021-03-02Allow knock->knock transitions (#86)Andrew Morgan1-2/+0
Small change to the event auth rules that allows transitioning from knock->knock (in case you want to update your knock reason, or change profile information etc). Coincides with the same commit in [the mainline PR](https://github.com/matrix-org/synapse/pull/6739) and [this update on MSC2403](https://github.com/matrix-org/matrix-doc/pull/2403/commits/49a72862a93d814219968cff814ff63926181645).
2021-03-01change check_threepid_can_be_invited to async (#85)Mathieu Velten1-5/+2
2021-02-19Add a config option to prioritise local users in user directory search ↵Andrew Morgan4-9/+158
results (#84) * Add a config option to prioritise local users in user directory search results (#9383) This PR adds a homeserver config option, `user_directory.prefer_local_users`, that when enabled will show local users higher in user directory search results than remote users. This option is off by default. Note that turning this on doesn't necessarily mean that remote users will always be put below local users, but they should be assuming all other ranking factors (search query match, profile information present etc) are identical. This is useful for, say, University networks that are openly federating, but want to prioritise local students and staff in the user directory over other random users. * Don't mix simple and english psql query types
2021-02-17Send a ver query parameter for make_knock (#83)Andrew Morgan4-7/+33
This informs the remote server of the room versions we support. If the room we're trying to knock on has a version that is not one of our supported room versions, the remote server will return an unsupported room version error. Noticed in https://github.com/matrix-org/matrix-doc/pull/2403#discussion_r577042144 Ported from https://github.com/matrix-org/synapse/pull/6739
2021-02-10Show knock rooms in the public room directory and inform clients they can be ↵Andrew Morgan2-6/+10
knocked on (#82) This PR implements the ["Changes regarding the Public Rooms Directory"](https://github.com/Sorunome/matrix-doc/blob/soru/knock/proposals/2403-knock.md#changes-regarding-the-public-rooms-directory) section of knocking MSC2403. Specifically, it: * Allows rooms with `join_rule` "knock" to be returned by the query behind the public rooms directory * Adds the field `join_rule` to each room entry returned by a public rooms directory query, so clients can know whether to attempt a join or knock on a room This PR is a clone of [the mainline PR](https://github.com/matrix-org/synapse/pull/9359). Complement tests for this change: https://github.com/matrix-org/complement/pull/72.
2021-02-09Add knocking support (#81)Andrew Morgan34-117/+1567
Implement knocking as defined by https://github.com/matrix-org/matrix-doc/pull/2403 This is the base knocking stuff, taken from https://github.com/matrix-org/synapse/pull/6739 and does not include any public room directory changes. While knocking hasn't merged yet on mainline due to waiting on getting Complement into Synapse's CI, the code has been well-tested.
2021-02-09Add complement running monolith synapse to buildkite pipeline (#80)Andrew Morgan1-0/+36
2021-02-09Fix Python Old-Deps CI step (#79)Andrew Morgan4-5/+12
* Fix the Python 3.5 old-deps build. (#9146) setuptools 51.0.0 dropped support for Python 3.5. * Fix Python 3.5 old deps build by using a compatible pip version. (#9217) Co-authored-by: Dan Callahan <danc@element.io> pip 21.0 stopped supporting Python 3.5. Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2021-01-29Remove riot email registration backwards compatibility hackAndrew Morgan1-10/+0
This was causing a LoginError to be propagated up to the registration servlet, which was expecting a InteractiveAuthIncompleteError in order to store a password_hash from the client for the session. DINUM relies on this happening. More info here: https://github.com/matrix-org/synapse/issues/9263
2021-01-21Add a parameter to enable/disable freeze feature (#78)Mathieu Velten2-1/+10
2021-01-19Ensure we read account validity templates from custom template dir if ↵Andrew Morgan2-1/+55
provided (#77)
2021-01-18Change check_3pid_allowed to async (#76)Mathieu Velten1-13/+10
2021-01-03Better align mainline and dinsic buildkite pipelinesAndrew Morgan2-27/+59
2020-12-31Merged commit 'deff8f628' into anoa/dinsic_release_1_23_1Andrew Morgan40-241/+639
2020-12-30Allow users to click account renewal links multiple times without hitting an ↵Andrew Morgan16-258/+408
'Invalid Token' page (#74)
2020-12-29Support PyJWT v2.0.0. (#8986)Patrick Cloke2-4/+13
Tests were broken due to an API changing. The code used in Synapse proper should be compatible with both versions already.
2020-12-14Allow per-room profile to be used for server notice user (#8799)Mathieu Velten2-1/+10
This applies even if the feature is disabled at the server level with `allow_per_room_profiles`. The server notice not being a real user it doesn't have an user profile.
2020-12-11Remove the CI requirement for newsfiles (#73)Andrew Morgan1-11/+0
We don't use newsfiles for DINUM releases anyways, so a CI requirement for them does not make sense.
2020-12-11Fix users info for remote users (#71)Mathieu Velten2-2/+2
2020-12-11Update mypy to 0.790 to resolve mypy CI errors (#72)Andrew Morgan4-7/+9
2020-12-09Pin the docker version for multiarch buildsRichard van der Hoff2-3/+6
It seems that letting CircleCI use its default docker version (17.09.0-ce, apparently) did not interact well with multiarch builds: in particular, we saw weird effects where running an amd64 build at the same time as an arm64 build caused the arm64 builds to fail with: Error while loading /usr/sbin/dpkg-deb: No such file or directory
2020-12-09Add 'xmlsec1' to dependency list github/release-v1.24.0 release-v1.24.0Erik Johnston1-1/+2
2020-12-09 1.23.1 v1.23.1 github/release-v1.23.1 release-v1.23.1Erik Johnston5-3/+59
2020-12-09 1.24.0 v1.24.0Erik Johnston4-2/+53
2020-12-09Fix installing pysaml2 on Python 3.5. (#8898)Patrick Cloke2-1/+6
This pins pysaml2 to < 6.4.0 on Python 3.5, as the last known working version.
2020-12-09Consistently use room_id from federation request body (#8776)Richard van der Hoff5-54/+49
* Consistently use room_id from federation request body Some federation APIs have a redundant `room_id` path param (see https://github.com/matrix-org/matrix-doc/issues/2330). We should make sure we consistently use either the path param or the body param, and the body param is easier. * Kill off some references to "context" Once upon a time, "rooms" were known as "contexts". I think this kills of the last references to "contexts".
2020-12-08Add X-Robots-Tag header to stop crawlers from indexing media (#8887)Aaron Raimist3-0/+19
Fixes / related to: https://github.com/matrix-org/synapse/issues/6533 This should do essentially the same thing as a robots.txt file telling robots to not index the media repo. https://developers.google.com/search/reference/robots_meta_tag Signed-off-by: Aaron Raimist <aaron@raim.ist>
2020-12-08Fix installing pysaml2 on Python 3.5. (#8898)Patrick Cloke2-1/+6
This pins pysaml2 to < 6.4.0 on Python 3.5, as the last known working version.
2020-12-08Better formatting for config errors from modules (#8874)Richard van der Hoff13-37/+160
The idea is that the parse_config method of extension modules can raise either a ConfigError or a JsonValidationError, and it will be magically turned into a legible error message. There's a few components to it: * Separating the "path" and the "message" parts of a ConfigError, so that we can fiddle with the path bit to turn it into an absolute path. * Generally improving the way ConfigErrors get printed. * Passing in the config path to load_module so that it can wrap any exceptions that get caught appropriately.
2020-12-08Simplify the flow for SSO UIA (#8881)Richard van der Hoff7-40/+144
* SsoHandler: remove inheritance from BaseHandler * Simplify the flow for SSO UIA We don't need to do all the magic for mapping users when we are doing UIA, so let's factor that out.
2020-12-08Clarify config template comments (#8891)Richard van der Hoff4-16/+9
2020-12-07Call set_avatar_url with target_user, not user_id (#8872)Will Hunt3-3/+9
* Call set_avatar_url with target_user, not user_id Fixes https://github.com/matrix-org/synapse/issues/8871 * Create 8872.bugfix * Update synapse/rest/admin/users.py Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> * Testing * Update changelog.d/8872.bugfix Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2020-12-07Do not raise a 500 exception when previewing empty media. (#8883)Patrick Cloke3-12/+22
2020-12-07Add type hints for HTTP and email pushers. (#8880)Patrick Cloke8-101/+168
2020-12-07Add type hints to the push mailer module. (#8882)Patrick Cloke3-40/+85
2020-12-04Add authentication to replication endpoints. (#8853)Patrick Cloke7-15/+184
Authentication is done by checking a shared secret provided in the Synapse configuration file.
2020-12-04Pass room_id to get_auth_chain_difference (#8879)Erik Johnston6-17/+33
This is so that we can choose which algorithm to use based on the room ID.
2020-12-04Add additional validation to pusher URLs. (#8865)Patrick Cloke6-30/+106
Pusher URLs now must end in `/_matrix/push/v1/notify` per the specification.
2020-12-04Do not 500 if the content-length is not provided when uploading media. (#8862)Patrick Cloke2-1/+2
Instead return the proper 400 error.
2020-12-04Minor update to CHANGES. v1.24.0rc2Patrick Cloke1-1/+1
2020-12-041.24.0rc2Patrick Cloke4-3/+16
2020-12-04Fix a regression that mapping providers should be able to redirect users. ↵Patrick Cloke6-8/+60
(#8878) This was broken in #8801.
2020-12-04Remove version pin prometheus_client dependency (#8875)Jordan Bancino3-9/+7
This removes the version pin of the `prometheus_client` dependency, in direct response to #8831. If merged, this will close #8831 As far as I can tell, no other changes are needed, but as I'm no synapse expert, I'm relying heavily on CI and maintainer reviews for this. My very primitive test of synapse with prometheus_client v0.9.0 on my home server didn't bring up any issues, so we'll see what happens. Signed-off-by: Jordan Bancino
2020-12-04Fix a buglet in the SAML username mapping provider doc (#8873)Richard van der Hoff2-1/+4
the constructor is called with a `module_api`.
2020-12-03Fix errorcode for disabled registration (#8867)Richard van der Hoff3-1/+3
The spec says we should return `M_FORBIDDEN` when