forked-synapse/synapse
reivilibre a83a337c4d
Filter out rooms from the room directory being served to other homeservers when those rooms block that homeserver by their Access Control Lists. (#16759)
The idea here being that the directory server shouldn't advertise rooms
to a requesting server is the requesting server would not be allowed to
join or participate in the room.

<!--
Fixes: # <!-- -->
<!--
Supersedes: # <!-- -->
<!--
Follows: # <!-- -->
<!--
Part of: # <!-- -->
Base: `develop` <!-- git-stack-base-branch:develop -->

<!--
This pull request is commit-by-commit review friendly. <!-- -->
<!--
This pull request is intended for commit-by-commit review. <!-- -->

Original commit schedule, with full messages:

<ol>
<li>

Pass `from_federation_origin` down into room list retrieval code 

</li>
<li>

Don't cache /publicRooms response for inbound federated requests 

</li>
<li>

fixup! Don't cache /publicRooms response for inbound federated requests 

</li>
<li>

Cap the number of /publicRooms entries to 100 

</li>
<li>

Simplify code now that you can't request unlimited rooms 

</li>
<li>

Filter out rooms from federated requests that don't have the correct ACL

</li>
<li>

Request a handful more when filtering ACLs so that we can try to avoid
shortchanging the requester

</li>
</ol>

---------

Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
2024-01-08 17:24:20 +00:00
..
_scripts Merge remote-tracking branch 'gitlab/clokep/license-license' into new_develop 2023-12-13 15:11:56 +00:00
api Merge remote-tracking branch 'gitlab/clokep/license-license' into new_develop 2023-12-13 15:11:56 +00:00
app Merge remote-tracking branch 'gitlab/clokep/license-license' into new_develop 2023-12-13 15:11:56 +00:00
appservice Update license headers 2023-11-21 15:29:58 -05:00
config Update book location 2023-12-13 16:15:22 +00:00
crypto Update license headers 2023-11-21 15:29:58 -05:00
events Port EventInternalMetadata class to Rust (#16782) 2024-01-08 14:06:48 +00:00
federation Filter out rooms from the room directory being served to other homeservers when those rooms block that homeserver by their Access Control Lists. (#16759) 2024-01-08 17:24:20 +00:00
handlers Filter out rooms from the room directory being served to other homeservers when those rooms block that homeserver by their Access Control Lists. (#16759) 2024-01-08 17:24:20 +00:00
http Fix email verification redirection (#16761) 2024-01-02 16:25:26 +00:00
logging Update license headers 2023-11-21 15:29:58 -05:00
media Merge remote-tracking branch 'gitlab/clokep/license-license' into new_develop 2023-12-13 15:11:56 +00:00
metrics Update license headers 2023-11-21 15:29:58 -05:00
module_api Update book location 2023-12-13 16:15:22 +00:00
push Merge remote-tracking branch 'gitlab/clokep/license-license' into new_develop 2023-12-13 15:11:56 +00:00
replication Merge remote-tracking branch 'gitlab/clokep/license-license' into new_develop 2023-12-13 15:11:56 +00:00
res Use oEmbed for YouTube Shorts (#15025) 2023-05-03 12:54:42 -04:00
rest Search non ASCII display names using Admin API (#16767) 2024-01-04 09:36:57 +00:00
server_notices Merge remote-tracking branch 'gitlab/clokep/license-license' into new_develop 2023-12-13 15:11:56 +00:00
spam_checker_api Update license headers 2023-11-21 15:29:58 -05:00
state Update license headers 2023-11-21 15:29:58 -05:00
static Update link to the clients webpage, fix #15825 (#15874) 2023-07-06 17:28:09 +02:00
storage Port EventInternalMetadata class to Rust (#16782) 2024-01-08 14:06:48 +00:00
streams Update license headers 2023-11-21 15:29:58 -05:00
synapse_rust Port EventInternalMetadata class to Rust (#16782) 2024-01-08 14:06:48 +00:00
types Update license headers 2023-11-21 15:29:58 -05:00
util Update license headers 2023-11-21 15:29:58 -05:00
__init__.py Revert changes to README 2023-12-13 15:02:08 +00:00
_pydantic_compat.py Update license headers 2023-11-21 15:29:58 -05:00
event_auth.py Update license headers 2023-11-21 15:29:58 -05:00
notifier.py Update license headers 2023-11-21 15:29:58 -05:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
server.py Update license headers 2023-11-21 15:29:58 -05:00
visibility.py Update license headers 2023-11-21 15:29:58 -05:00