forked-synapse/tests
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
..
api Update license headers 2023-11-21 15:29:58 -05:00
app Update license headers 2023-11-21 15:29:58 -05:00
appservice Update license headers 2023-11-21 15:29:58 -05:00
config Merge remote-tracking branch 'gitlab/clokep/license-license' into new_develop 2023-12-13 15:11:56 +00:00
crypto Update license headers 2023-11-21 15:29:58 -05:00
events Update license headers 2023-11-21 15:29:58 -05:00
federation Update license headers 2023-11-21 15:29:58 -05: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 Update license headers 2023-11-21 15:29:58 -05: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 license headers 2023-11-21 15:29:58 -05:00
push Update license headers 2023-11-21 15:29:58 -05:00
replication Merge remote-tracking branch 'gitlab/clokep/license-license' into new_develop 2023-12-13 15:11:56 +00:00
rest Search non ASCII display names using Admin API (#16767) 2024-01-04 09:36:57 +00:00
scripts Update license headers 2023-11-21 15:29:58 -05:00
server_notices Update license headers 2023-11-21 15:29:58 -05:00
state Update license headers 2023-11-21 15:29:58 -05:00
storage Port EventInternalMetadata class to Rust (#16782) 2024-01-08 14:06:48 +00:00
test_utils Update license headers 2023-11-21 15:29:58 -05:00
types Use immutabledict instead of frozendict (#15113) 2023-03-22 17:15:34 +00:00
util Update license headers 2023-11-21 15:29:58 -05:00
__init__.py Update license headers 2023-11-21 15:29:58 -05:00
server.py Update license headers 2023-11-21 15:29:58 -05:00
test_distributor.py Update license headers 2023-11-21 15:29:58 -05:00
test_event_auth.py Update license headers 2023-11-21 15:29:58 -05:00
test_federation.py Update license headers 2023-11-21 15:29:58 -05:00
test_mau.py Update license headers 2023-11-21 15:29:58 -05:00
test_phone_home.py Update license headers 2023-11-21 15:29:58 -05:00
test_rust.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_server.py Update license headers 2023-11-21 15:29:58 -05:00
test_state.py Update license headers 2023-11-21 15:29:58 -05:00
test_terms_auth.py Update license headers 2023-11-21 15:29:58 -05:00
test_test_utils.py Update license headers 2023-11-21 15:29:58 -05:00
test_types.py Update license headers 2023-11-21 15:29:58 -05:00
test_visibility.py Update license headers 2023-11-21 15:29:58 -05:00
unittest.py Update license headers 2023-11-21 15:29:58 -05:00
utils.py Merge remote-tracking branch 'gitlab/clokep/license-license' into new_develop 2023-12-13 15:11:56 +00:00