mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 10:30:41 +08:00
When `Service::handle_message` handles `Message::Subscribe`, constraints regarding visibility of repositories are not considered, this leads to leaking RIDs of private repositories. Add a corresponding check. Add a test to verify that reference announcements relayed via subscribe correctly apply visibility filtering, there by ensuring references of private repositories are only propagated to nodes on the allow list. The test regarding deduplication needs a fix: Ensure that all mock repositories are public and in storage so that they do not get filtered out in case of unknown visiblity. Co-authored-by: Lorenz Leutgeb <lorenz.leutgeb@radicle.dev>