policy/v2: add advertised routes to compat test topologies

Add routable_ips and approved_routes fields to the node topology
definitions in all golden test files. These represent the subnet
routes actually advertised by nodes on the Tailscale SaaS network
during data capture:

  Routes topology (92 files, 6 router nodes):
    big-router:     10.0.0.0/8
    subnet-router:  10.33.0.0/16
    ha-router1:     192.168.1.0/24
    ha-router2:     192.168.1.0/24
    multi-router:   172.16.0.0/24
    exit-node:      0.0.0.0/0, ::/0

  ACL topology (199 files, 1 router node):
    subnet-router:  10.33.0.0/16

  Grants topology (203 files, 1 router node):
    subnet-router:  10.33.0.0/16

The route assignments were deduced from the golden data by analyzing
which router nodes receive FilterRules for which destination CIDRs
across all test files, and cross-referenced with the MTS setup
script (setup_grant_nodes.sh).

Updates #2180
This commit is contained in:
Kristoffer Dalby 2026-03-18 13:40:19 +00:00
parent 927ce418d2
commit 995ed0187c
494 changed files with 76022 additions and 15770 deletions

View file

@ -44,8 +44,16 @@
]
},
"grants_section": [
{ "src": ["tag:client"], "dst": ["*"], "ip": ["*"] },
{ "src": ["tag:client"], "dst": ["tag:server"], "ip": ["22"] }
{
"src": ["tag:client"],
"dst": ["*"],
"ip": ["*"]
},
{
"src": ["tag:client"],
"dst": ["tag:server"],
"ip": ["22"]
}
],
"api_endpoint": "https://api.tailscale.com/api/v2/tailnet/kratail2tid%40passkey/acl",
"api_method": "POST",
@ -69,7 +77,9 @@
"user_id": 7489538288452506,
"tags": ["tag:router"],
"ipv4": "100.92.142.61",
"ipv6": "fd7a:115c:a1e0::3e37:8e3d"
"ipv6": "fd7a:115c:a1e0::3e37:8e3d",
"routable_ips": ["10.33.0.0/16"],
"approved_routes": ["10.33.0.0/16"]
},
"tagged-client": {
"mts_name": "tagged-client",
@ -136,7 +146,15 @@
"packet_filter_rules": [
{
"SrcIPs": ["100.83.200.69", "fd7a:115c:a1e0::c537:c845"],
"DstPorts": [{ "IP": "*", "Ports": { "First": 0, "Last": 65535 } }]
"DstPorts": [
{
"IP": "*",
"Ports": {
"First": 0,
"Last": 65535
}
}
]
}
],
"packet_filter_matches": [
@ -145,8 +163,20 @@
"Srcs": ["100.83.200.69/32", "fd7a:115c:a1e0::c537:c845/128"],
"SrcCaps": null,
"Dsts": [
{ "Net": "0.0.0.0/0", "Ports": { "First": 0, "Last": 65535 } },
{ "Net": "::/0", "Ports": { "First": 0, "Last": 65535 } }
{
"Net": "0.0.0.0/0",
"Ports": {
"First": 0,
"Last": 65535
}
},
{
"Net": "::/0",
"Ports": {
"First": 0,
"Last": 65535
}
}
],
"Caps": []
}
@ -182,8 +212,14 @@
"OS": "linux",
"Hostname": "tagged-client",
"Services": [
{ "Proto": "peerapi4", "Port": 41378 },
{ "Proto": "peerapi6", "Port": 41378 }
{
"Proto": "peerapi4",
"Port": 41378
},
{
"Proto": "peerapi6",
"Port": 41378
}
]
},
"Created": "2026-02-23T00:13:11.017324028Z",
@ -193,7 +229,11 @@
"ComputedName": "tagged-client",
"ComputedNameWithHost": "tagged-client"
},
"UserProfile": { "ID": 1260082990019555, "LoginName": "tagged-devices", "DisplayName": "Tagged Devices" },
"UserProfile": {
"ID": 1260082990019555,
"LoginName": "tagged-devices",
"DisplayName": "Tagged Devices"
},
"CapMap": null
}
},
@ -232,7 +272,15 @@
"packet_filter_rules": [
{
"SrcIPs": ["100.83.200.69", "fd7a:115c:a1e0::c537:c845"],
"DstPorts": [{ "IP": "*", "Ports": { "First": 0, "Last": 65535 } }]
"DstPorts": [
{
"IP": "*",
"Ports": {
"First": 0,
"Last": 65535
}
}
]
}
],
"packet_filter_matches": [
@ -241,8 +289,20 @@
"Srcs": ["100.83.200.69/32", "fd7a:115c:a1e0::c537:c845/128"],
"SrcCaps": null,
"Dsts": [
{ "Net": "0.0.0.0/0", "Ports": { "First": 0, "Last": 65535 } },
{ "Net": "::/0", "Ports": { "First": 0, "Last": 65535 } }
{
"Net": "0.0.0.0/0",
"Ports": {
"First": 0,
"Last": 65535
}
},
{
"Net": "::/0",
"Ports": {
"First": 0,
"Last": 65535
}
}
],
"Caps": []
}
@ -278,8 +338,14 @@
"OS": "linux",
"Hostname": "tagged-client",
"Services": [
{ "Proto": "peerapi4", "Port": 41378 },
{ "Proto": "peerapi6", "Port": 41378 }
{
"Proto": "peerapi4",
"Port": 41378
},
{
"Proto": "peerapi6",
"Port": 41378
}
]
},
"Created": "2026-02-23T00:13:11.017324028Z",
@ -289,7 +355,11 @@
"ComputedName": "tagged-client",
"ComputedNameWithHost": "tagged-client"
},
"UserProfile": { "ID": 1260082990019555, "LoginName": "tagged-devices", "DisplayName": "Tagged Devices" },
"UserProfile": {
"ID": 1260082990019555,
"LoginName": "tagged-devices",
"DisplayName": "Tagged Devices"
},
"CapMap": null
}
},
@ -328,7 +398,15 @@
"packet_filter_rules": [
{
"SrcIPs": ["100.83.200.69", "fd7a:115c:a1e0::c537:c845"],
"DstPorts": [{ "IP": "*", "Ports": { "First": 0, "Last": 65535 } }]
"DstPorts": [
{
"IP": "*",
"Ports": {
"First": 0,
"Last": 65535
}
}
]
}
],
"packet_filter_matches": [
@ -337,8 +415,20 @@
"Srcs": ["100.83.200.69/32", "fd7a:115c:a1e0::c537:c845/128"],
"SrcCaps": null,
"Dsts": [
{ "Net": "0.0.0.0/0", "Ports": { "First": 0, "Last": 65535 } },
{ "Net": "::/0", "Ports": { "First": 0, "Last": 65535 } }
{
"Net": "0.0.0.0/0",
"Ports": {
"First": 0,
"Last": 65535
}
},
{
"Net": "::/0",
"Ports": {
"First": 0,
"Last": 65535
}
}
],
"Caps": []
}
@ -369,8 +459,14 @@
"OS": "linux",
"Hostname": "exit-node",
"Services": [
{ "Proto": "peerapi4", "Port": 37000 },
{ "Proto": "peerapi6", "Port": 37000 }
{
"Proto": "peerapi4",
"Port": 37000
},
{
"Proto": "peerapi6",
"Port": 37000
}
]
},
"Created": "2026-02-23T00:13:20.566112173Z",
@ -380,7 +476,11 @@
"ComputedName": "exit-node",
"ComputedNameWithHost": "exit-node"
},
"UserProfile": { "ID": 1260082990019555, "LoginName": "tagged-devices", "DisplayName": "Tagged Devices" },
"UserProfile": {
"ID": 1260082990019555,
"LoginName": "tagged-devices",
"DisplayName": "Tagged Devices"
},
"CapMap": null
}
},
@ -409,8 +509,14 @@
"OS": "linux",
"Hostname": "subnet-router",
"Services": [
{ "Proto": "peerapi4", "Port": 63250 },
{ "Proto": "peerapi6", "Port": 63250 }
{
"Proto": "peerapi4",
"Port": 63250
},
{
"Proto": "peerapi6",
"Port": 63250
}
]
},
"Created": "2026-02-23T00:13:15.731478784Z",
@ -421,7 +527,11 @@
"ComputedName": "subnet-router",
"ComputedNameWithHost": "subnet-router"
},
"UserProfile": { "ID": 1260082990019555, "LoginName": "tagged-devices", "DisplayName": "Tagged Devices" },
"UserProfile": {
"ID": 1260082990019555,
"LoginName": "tagged-devices",
"DisplayName": "Tagged Devices"
},
"CapMap": null
}
},
@ -450,8 +560,14 @@
"OS": "linux",
"Hostname": "tagged-prod",
"Services": [
{ "Proto": "peerapi4", "Port": 37678 },
{ "Proto": "peerapi6", "Port": 37678 }
{
"Proto": "peerapi4",
"Port": 37678
},
{
"Proto": "peerapi6",
"Port": 37678
}
]
},
"Created": "2026-02-20T14:03:12.89283153Z",
@ -461,7 +577,11 @@
"ComputedName": "tagged-prod",
"ComputedNameWithHost": "tagged-prod"
},
"UserProfile": { "ID": 1260082990019555, "LoginName": "tagged-devices", "DisplayName": "Tagged Devices" },
"UserProfile": {
"ID": 1260082990019555,
"LoginName": "tagged-devices",
"DisplayName": "Tagged Devices"
},
"CapMap": null
}
},
@ -490,8 +610,14 @@
"OS": "linux",
"Hostname": "tagged-server",
"Services": [
{ "Proto": "peerapi4", "Port": 46499 },
{ "Proto": "peerapi6", "Port": 46499 }
{
"Proto": "peerapi4",
"Port": 46499
},
{
"Proto": "peerapi6",
"Port": 46499
}
]
},
"Created": "2026-01-23T10:10:26.365653609Z",
@ -501,7 +627,11 @@
"ComputedName": "tagged-server",
"ComputedNameWithHost": "tagged-server"
},
"UserProfile": { "ID": 1260082990019555, "LoginName": "tagged-devices", "DisplayName": "Tagged Devices" },
"UserProfile": {
"ID": 1260082990019555,
"LoginName": "tagged-devices",
"DisplayName": "Tagged Devices"
},
"CapMap": null
}
},
@ -531,8 +661,14 @@
"OS": "linux",
"Hostname": "user-kris",
"Services": [
{ "Proto": "peerapi4", "Port": 40159 },
{ "Proto": "peerapi6", "Port": 40159 }
{
"Proto": "peerapi4",
"Port": 40159
},
{
"Proto": "peerapi6",
"Port": 40159
}
]
},
"Created": "2026-02-20T14:09:34.803901523Z",
@ -541,7 +677,11 @@
"ComputedName": "user-kris",
"ComputedNameWithHost": "user-kris"
},
"UserProfile": { "ID": 4538565228176803, "LoginName": "kristoffer@dalby.cc", "DisplayName": "kristoffer" },
"UserProfile": {
"ID": 4538565228176803,
"LoginName": "kristoffer@dalby.cc",
"DisplayName": "kristoffer"
},
"CapMap": null
}
},
@ -571,8 +711,14 @@
"OS": "linux",
"Hostname": "user-mon",
"Services": [
{ "Proto": "peerapi4", "Port": 33201 },
{ "Proto": "peerapi6", "Port": 33201 }
{
"Proto": "peerapi4",
"Port": 33201
},
{
"Proto": "peerapi6",
"Port": 33201
}
]
},
"Created": "2026-02-20T14:09:00.203639664Z",
@ -615,8 +761,14 @@
"OS": "linux",
"Hostname": "user1",
"Services": [
{ "Proto": "peerapi4", "Port": 46708 },
{ "Proto": "peerapi6", "Port": 46708 }
{
"Proto": "peerapi4",
"Port": 46708
},
{
"Proto": "peerapi6",
"Port": 46708
}
]
},
"Created": "2026-01-23T10:04:13.531671894Z",
@ -625,7 +777,11 @@
"ComputedName": "user1",
"ComputedNameWithHost": "user1"
},
"UserProfile": { "ID": 4156223528223174, "LoginName": "kratail2tid@passkey", "DisplayName": "kratail2tid" },
"UserProfile": {
"ID": 4156223528223174,
"LoginName": "kratail2tid@passkey",
"DisplayName": "kratail2tid"
},
"CapMap": null
}
}
@ -639,7 +795,15 @@
"packet_filter_rules": [
{
"SrcIPs": ["100.83.200.69", "fd7a:115c:a1e0::c537:c845"],
"DstPorts": [{ "IP": "*", "Ports": { "First": 0, "Last": 65535 } }]
"DstPorts": [
{
"IP": "*",
"Ports": {
"First": 0,
"Last": 65535
}
}
]
}
],
"packet_filter_matches": [
@ -648,8 +812,20 @@
"Srcs": ["100.83.200.69/32", "fd7a:115c:a1e0::c537:c845/128"],
"SrcCaps": null,
"Dsts": [
{ "Net": "0.0.0.0/0", "Ports": { "First": 0, "Last": 65535 } },
{ "Net": "::/0", "Ports": { "First": 0, "Last": 65535 } }
{
"Net": "0.0.0.0/0",
"Ports": {
"First": 0,
"Last": 65535
}
},
{
"Net": "::/0",
"Ports": {
"First": 0,
"Last": 65535
}
}
],
"Caps": []
}
@ -690,8 +866,14 @@
"OS": "linux",
"Hostname": "tagged-client",
"Services": [
{ "Proto": "peerapi4", "Port": 41378 },
{ "Proto": "peerapi6", "Port": 41378 }
{
"Proto": "peerapi4",
"Port": 41378
},
{
"Proto": "peerapi6",
"Port": 41378
}
]
},
"Created": "2026-02-23T00:13:11.017324028Z",
@ -701,7 +883,11 @@
"ComputedName": "tagged-client",
"ComputedNameWithHost": "tagged-client"
},
"UserProfile": { "ID": 1260082990019555, "LoginName": "tagged-devices", "DisplayName": "Tagged Devices" },
"UserProfile": {
"ID": 1260082990019555,
"LoginName": "tagged-devices",
"DisplayName": "Tagged Devices"
},
"CapMap": null
}
},
@ -736,9 +922,27 @@
{
"SrcIPs": ["100.83.200.69", "fd7a:115c:a1e0::c537:c845"],
"DstPorts": [
{ "IP": "*", "Ports": { "First": 0, "Last": 65535 } },
{ "IP": "100.108.74.26", "Ports": { "First": 22, "Last": 22 } },
{ "IP": "fd7a:115c:a1e0::b901:4a87", "Ports": { "First": 22, "Last": 22 } }
{
"IP": "*",
"Ports": {
"First": 0,
"Last": 65535
}
},
{
"IP": "100.108.74.26",
"Ports": {
"First": 22,
"Last": 22
}
},
{
"IP": "fd7a:115c:a1e0::b901:4a87",
"Ports": {
"First": 22,
"Last": 22
}
}
]
}
],
@ -748,10 +952,34 @@
"Srcs": ["100.83.200.69/32", "fd7a:115c:a1e0::c537:c845/128"],
"SrcCaps": null,
"Dsts": [
{ "Net": "0.0.0.0/0", "Ports": { "First": 0, "Last": 65535 } },
{ "Net": "::/0", "Ports": { "First": 0, "Last": 65535 } },
{ "Net": "100.108.74.26/32", "Ports": { "First": 22, "Last": 22 } },
{ "Net": "fd7a:115c:a1e0::b901:4a87/128", "Ports": { "First": 22, "Last": 22 } }
{
"Net": "0.0.0.0/0",
"Ports": {
"First": 0,
"Last": 65535
}
},
{
"Net": "::/0",
"Ports": {
"First": 0,
"Last": 65535
}
},
{
"Net": "100.108.74.26/32",
"Ports": {
"First": 22,
"Last": 22
}
},
{
"Net": "fd7a:115c:a1e0::b901:4a87/128",
"Ports": {
"First": 22,
"Last": 22
}
}
],
"Caps": []
}
@ -792,8 +1020,14 @@
"OS": "linux",
"Hostname": "tagged-client",
"Services": [
{ "Proto": "peerapi4", "Port": 41378 },
{ "Proto": "peerapi6", "Port": 41378 }
{
"Proto": "peerapi4",
"Port": 41378
},
{
"Proto": "peerapi6",
"Port": 41378
}
]
},
"Created": "2026-02-23T00:13:11.017324028Z",
@ -803,7 +1037,11 @@
"ComputedName": "tagged-client",
"ComputedNameWithHost": "tagged-client"
},
"UserProfile": { "ID": 1260082990019555, "LoginName": "tagged-devices", "DisplayName": "Tagged Devices" },
"UserProfile": {
"ID": 1260082990019555,
"LoginName": "tagged-devices",
"DisplayName": "Tagged Devices"
},
"CapMap": null
}
},
@ -837,7 +1075,15 @@
"packet_filter_rules": [
{
"SrcIPs": ["100.83.200.69", "fd7a:115c:a1e0::c537:c845"],
"DstPorts": [{ "IP": "*", "Ports": { "First": 0, "Last": 65535 } }]
"DstPorts": [
{
"IP": "*",
"Ports": {
"First": 0,
"Last": 65535
}
}
]
}
],
"packet_filter_matches": [
@ -846,8 +1092,20 @@
"Srcs": ["100.83.200.69/32", "fd7a:115c:a1e0::c537:c845/128"],
"SrcCaps": null,
"Dsts": [
{ "Net": "0.0.0.0/0", "Ports": { "First": 0, "Last": 65535 } },
{ "Net": "::/0", "Ports": { "First": 0, "Last": 65535 } }
{
"Net": "0.0.0.0/0",
"Ports": {
"First": 0,
"Last": 65535
}
},
{
"Net": "::/0",
"Ports": {
"First": 0,
"Last": 65535
}
}
],
"Caps": []
}
@ -888,8 +1146,14 @@
"OS": "linux",
"Hostname": "tagged-client",
"Services": [
{ "Proto": "peerapi4", "Port": 41378 },
{ "Proto": "peerapi6", "Port": 41378 }
{
"Proto": "peerapi4",
"Port": 41378
},
{
"Proto": "peerapi6",
"Port": 41378
}
]
},
"Created": "2026-02-23T00:13:11.017324028Z",
@ -899,7 +1163,11 @@
"ComputedName": "tagged-client",
"ComputedNameWithHost": "tagged-client"
},
"UserProfile": { "ID": 1260082990019555, "LoginName": "tagged-devices", "DisplayName": "Tagged Devices" },
"UserProfile": {
"ID": 1260082990019555,
"LoginName": "tagged-devices",
"DisplayName": "Tagged Devices"
},
"CapMap": null
}
},
@ -933,7 +1201,15 @@
"packet_filter_rules": [
{
"SrcIPs": ["100.83.200.69", "fd7a:115c:a1e0::c537:c845"],
"DstPorts": [{ "IP": "*", "Ports": { "First": 0, "Last": 65535 } }]
"DstPorts": [
{
"IP": "*",
"Ports": {
"First": 0,
"Last": 65535
}
}
]
}
],
"packet_filter_matches": [
@ -942,8 +1218,20 @@
"Srcs": ["100.83.200.69/32", "fd7a:115c:a1e0::c537:c845/128"],
"SrcCaps": null,
"Dsts": [
{ "Net": "0.0.0.0/0", "Ports": { "First": 0, "Last": 65535 } },
{ "Net": "::/0", "Ports": { "First": 0, "Last": 65535 } }
{
"Net": "0.0.0.0/0",
"Ports": {
"First": 0,
"Last": 65535
}
},
{
"Net": "::/0",
"Ports": {
"First": 0,
"Last": 65535
}
}
],
"Caps": []
}
@ -984,8 +1272,14 @@
"OS": "linux",
"Hostname": "tagged-client",
"Services": [
{ "Proto": "peerapi4", "Port": 41378 },
{ "Proto": "peerapi6", "Port": 41378 }
{
"Proto": "peerapi4",
"Port": 41378
},
{
"Proto": "peerapi6",
"Port": 41378
}
]
},
"Created": "2026-02-23T00:13:11.017324028Z",
@ -995,7 +1289,11 @@
"ComputedName": "tagged-client",
"ComputedNameWithHost": "tagged-client"
},
"UserProfile": { "ID": 1260082990019555, "LoginName": "tagged-devices", "DisplayName": "Tagged Devices" },
"UserProfile": {
"ID": 1260082990019555,
"LoginName": "tagged-devices",
"DisplayName": "Tagged Devices"
},
"CapMap": null
}
},
@ -1029,7 +1327,15 @@
"packet_filter_rules": [
{
"SrcIPs": ["100.83.200.69", "fd7a:115c:a1e0::c537:c845"],
"DstPorts": [{ "IP": "*", "Ports": { "First": 0, "Last": 65535 } }]
"DstPorts": [
{
"IP": "*",
"Ports": {
"First": 0,
"Last": 65535
}
}
]
}
],
"packet_filter_matches": [
@ -1038,8 +1344,20 @@
"Srcs": ["100.83.200.69/32", "fd7a:115c:a1e0::c537:c845/128"],
"SrcCaps": null,
"Dsts": [
{ "Net": "0.0.0.0/0", "Ports": { "First": 0, "Last": 65535 } },
{ "Net": "::/0", "Ports": { "First": 0, "Last": 65535 } }
{
"Net": "0.0.0.0/0",
"Ports": {
"First": 0,
"Last": 65535
}
},
{
"Net": "::/0",
"Ports": {
"First": 0,
"Last": 65535
}
}
],
"Caps": []
}
@ -1080,8 +1398,14 @@
"OS": "linux",
"Hostname": "tagged-client",
"Services": [
{ "Proto": "peerapi4", "Port": 41378 },
{ "Proto": "peerapi6", "Port": 41378 }
{
"Proto": "peerapi4",
"Port": 41378
},
{
"Proto": "peerapi6",
"Port": 41378
}
]
},
"Created": "2026-02-23T00:13:11.017324028Z",
@ -1091,7 +1415,11 @@
"ComputedName": "tagged-client",
"ComputedNameWithHost": "tagged-client"
},
"UserProfile": { "ID": 1260082990019555, "LoginName": "tagged-devices", "DisplayName": "Tagged Devices" },
"UserProfile": {
"ID": 1260082990019555,
"LoginName": "tagged-devices",
"DisplayName": "Tagged Devices"
},
"CapMap": null
}
},