mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-13 11:29:09 +09:00
8addacb06a
Add TestRoutesCompatPeerVisibility and TestRoutesCompatNoFalsePositivePeers which use the Tailscale SaaS golden file data to validate the CanAccess / ReduceNodes / ReduceRoutes code paths for subnet-to-subnet ACL scenarios. These tests derive expected peer relationships from the golden file captures: if Tailscale SaaS delivers filter rules to a node with SrcIPs overlapping another node's subnet routes, those nodes must be peers. This exercises the CanAccess fix where subnet routes are treated as source identity, ensuring the fix is validated against real SaaS behavior. Also fix buildRoutesUsersAndNodes to auto-assign unique node IDs when the golden files don't provide them, which is required for ReduceNodes to correctly skip self-comparisons. Updates #3157 Updates #3169