summary refs log tree commit diff
path: root/scripts-dev/check_auth.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-13Fix CI after new release of isortBrendan Abolivier1-1/+0
2019-05-10URL preview blacklisting fixes (#5155)Andrew Morgan4-31/+47
Prevents a SynapseError being raised inside of a IResolutionReceiver and instead opts to just return 0 results. This thus means that we have to lump a failed lookup and a blacklisted lookup together with the same error message, but the substitute should be generic enough to cover both cases.
2019-05-10Revert 085ae346ace418e0fc043ac5f568f85ebf80038eDavid Baker1-1/+1
Accidentally went straight to develop
2019-05-10Add a DUMMY stage to captcha-only registration flowDavid Baker1-1/+1
This allows the client to complete the email last which is more natual for the user. Without this stage, if the client would complete the recaptcha (and terms, if enabled) stages and then the registration request would complete because you've now completed a flow, even if you were intending to complete the flow that's the same except has email auth at the end. Adding a dummy auth stage to the recaptcha-only flow means it's always unambiguous which flow the client was trying to complete. Longer term we should think about changing the protocol so the client explicitly says which flow it's trying to complete. https://github.com/vector-im/riot-web/issues/9586
2019-05-10fix sample configRichard van der Hoff1-1/+1
2019-05-10Make Prometheus snippet less confusing on the metrics collection doc (#4288)Gergely Polonkai1-1/+4
Signed-off-by: Gergely Polonkai <gergely@polonkai.eu>
2019-05-10Set syslog identifiers in systemd units (#5023)Christoph Müller6-1/+14
2019-05-10Run Black on the tests again (#5170)Amber Brown54-1169/+829
2019-05-09Add AllowEncodedSlashes to apache (#5068)colonelkrud1-0/+2
* Add AllowEncodedSlashes to apache Add `AllowEncodedSlashes On` to apache config to support encoding for v3 rooms. "The AllowEncodedSlashes setting is not inherited by virtual hosts, and virtual hosts are used in many default Apache configurations, such as the one in Ubuntu. The workaround is to add the AllowEncodedSlashes setting inside a <VirtualHost> container (/etc/apache2/sites-available/default in Ubuntu)." Source: https://stackoverflow.com/questions/4390436/need-to-allow-encoded-slashes-on-apache * change allowencodedslashes to nodecode
2019-05-09remove instructions for jessie installation (#5164)Richard van der Hoff1-16/+5
We don't ship jessie packages, so these were a bit misleading.
2019-05-09Run `black` on per_destination_queueRichard van der Hoff1-35/+39
... mostly to fix pep8 fails
2019-05-09Limit the number of EDUs in transactions to 100 as expected by receiver (#5138)Quentin Dufour3-27/+32
Fixes #3951.
2019-05-08Fix bogus imports in tests (#5154)Brendan Abolivier4-5/+7
2019-05-08add options to require an access_token to GET /profile and /publicRooms on ↵Matthew Hodgson9-13/+252
CS API (#5083) This commit adds two config options: * `restrict_public_rooms_to_local_users` Requires auth to fetch the public rooms directory through the CS API and disables fetching it through the federation API. * `require_auth_for_profile_requests` When set to `true`, requires that requests to `/profile` over the CS API are authenticated, and only returns the user's profile if the requester shares a room with the profile's owner, as per MSC1301. MSC1301 also specifies a behaviour for federation (only returning the profile if the server asking for it shares a room with the profile's owner), but that's currently really non-trivial to do in a not too expensive way. Next step is writing down a MSC that allows a HS to specify which user sent the profile query. In this implementation, Synapse won't send a profile query over federation if it doesn't believe it already shares a room with the profile's owner, though. Groups have been intentionally omitted from this commit.
2019-05-08Do checks on aliases for incoming m.room.aliases events (#5128)Brendan Abolivier7-8/+225
Follow-up to #5124 Also added a bunch of checks to make sure everything (both the stuff added on #5124 and this PR) works as intended.
2019-05-07Remove the requirement to authenticate for /admin/server_version. (#5122)Richard van der Hoff5-38/+32
This endpoint isn't much use for its intended purpose if you first need to get yourself an admin's auth token. I've restricted it to the `/_synapse/admin` path to make it a bit easier to lock down for those concerned about exposing this information. I don't imagine anyone is using it in anger currently.
2019-05-06Fix spelling in server notices admin API docs (#5142)Travis Ralston2-1/+2
2019-05-06Fix sample configRichard van der Hoff1-1/+1
... after it got broken in 1565ebec2c.
2019-05-030.99.3.2 v0.99.3.2 github/release-v0.99.3.2 release-v0.99.3.2Richard van der Hoff4-2/+16
2019-05-03include disco in deb build target listRichard van der Hoff1-0/+1