anonymousland-synapse/synapse
Matthew Hodgson c0e0740bef add options to require an access_token to GET /profile and /publicRooms on 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-08 18:26:56 +01:00
..
_scripts
api Do checks on aliases for incoming m.room.aliases events (#5128) 2019-05-08 17:01:30 +01:00
app Merge pull request #5037 from matrix-org/erikj/limit_inflight_dns 2019-05-08 17:11:03 +01:00
appservice
config add options to require an access_token to GET /profile and /publicRooms on CS API (#5083) 2019-05-08 18:26:56 +01:00
crypto
events Do checks on aliases for incoming m.room.aliases events (#5128) 2019-05-08 17:01:30 +01:00
federation add options to require an access_token to GET /profile and /publicRooms on CS API (#5083) 2019-05-08 18:26:56 +01:00
groups
handlers add options to require an access_token to GET /profile and /publicRooms on CS API (#5083) 2019-05-08 18:26:56 +01:00
http
metrics
module_api
push Add a default .m.rule.tombstone push rule (#4867) 2019-04-29 15:40:31 -06:00
replication
res/templates Send out emails with links to extend an account's validity period 2019-04-17 14:42:20 +01:00
rest add options to require an access_token to GET /profile and /publicRooms on CS API (#5083) 2019-05-08 18:26:56 +01:00
server_notices
state
static
storage
streams
util Merge branch 'master' into develop 2019-05-03 19:25:01 +01:00
__init__.py 0.99.3.2 2019-05-03 18:56:24 +01:00
event_auth.py
notifier.py
python_dependencies.py Merge branch 'master' into develop 2019-05-03 19:25:01 +01:00
secrets.py
server.py
server.pyi
types.py
visibility.py