mirror of
https://github.com/juanfont/headscale.git
synced 2026-04-24 17:48:49 +02:00
Strip fields not consumed by any test from all 594 HuJSON test data files:
grant_results/ (248 files, 21MB -> 1.8MB):
- Remove: timestamp, propagation_wait_seconds, input.policy_file,
input.grants_section, input.api_endpoint, input.api_method,
topology.nodes.mts_name, topology.nodes.socket, topology.nodes.user_id,
captures.commands, captures.packet_filter_matches, captures.whois
- V14-V16, V26-V36: keep stripped netmap (Peers.Name/AllowedIPs/PrimaryRoutes
+ PacketFilterRules) for via_compat_test.go compatibility
- V17-V25: strip netmap (old topology, incompatible with via_compat harness)
acl_results/ (215 files, 1.4MB -> 1.2MB):
- Remove: timestamp, propagation_wait_seconds, input.policy_file,
input.api_endpoint, input.api_response_code, entire topology section
(parsed by Go struct but completely ignored — nodes are hardcoded)
routes_results/ (92 files, unchanged — topology is actively used):
- Remove: timestamp, propagation_wait_seconds, input.policy_file,
input.api_endpoint, input.api_response_code
ssh_results/ (39 files, unchanged — minimal to begin with):
- Remove: policy_file
340 lines
8.3 KiB
Plaintext
340 lines
8.3 KiB
Plaintext
// ACL-A15
|
|
//
|
|
// ACL: accept: src=['autogroup:member', 'autogroup:tagged'] dst=['*:*']
|
|
//
|
|
// Expected: Rules on 8 of 8 nodes
|
|
{
|
|
"test_id": "ACL-A15",
|
|
"input": {
|
|
"full_policy": {
|
|
"groups": {
|
|
"group:admins": [
|
|
"kratail2tid@passkey"
|
|
],
|
|
"group:developers": [
|
|
"kristoffer@dalby.cc",
|
|
"kratail2tid@passkey"
|
|
],
|
|
"group:monitors": [
|
|
"monitorpasskeykradalby@passkey"
|
|
],
|
|
"group:empty": []
|
|
},
|
|
"tagOwners": {
|
|
"tag:server": [
|
|
"kratail2tid@passkey"
|
|
],
|
|
"tag:prod": [
|
|
"kratail2tid@passkey"
|
|
],
|
|
"tag:client": [
|
|
"kratail2tid@passkey"
|
|
],
|
|
"tag:router": [
|
|
"kratail2tid@passkey"
|
|
],
|
|
"tag:exit": [
|
|
"kratail2tid@passkey"
|
|
]
|
|
},
|
|
"hosts": {
|
|
"webserver": "100.108.74.26",
|
|
"prodbox": "100.103.8.15",
|
|
"internal": "10.0.0.0/8",
|
|
"subnet24": "192.168.1.0/24"
|
|
},
|
|
"autoApprovers": {
|
|
"routes": {
|
|
"10.33.0.0/16": [
|
|
"tag:router"
|
|
],
|
|
"0.0.0.0/0": [
|
|
"tag:exit"
|
|
],
|
|
"::/0": [
|
|
"tag:exit"
|
|
]
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"action": "accept",
|
|
"src": [
|
|
"autogroup:member",
|
|
"autogroup:tagged"
|
|
],
|
|
"dst": [
|
|
"*:*"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"captures": {
|
|
"exit-node": {
|
|
"packet_filter_rules": [
|
|
{
|
|
"SrcIPs": [
|
|
"100.103.8.15",
|
|
"100.103.90.82",
|
|
"100.108.74.26",
|
|
"100.110.121.96",
|
|
"100.83.200.69",
|
|
"100.85.66.106",
|
|
"100.90.199.68",
|
|
"100.92.142.61",
|
|
"fd7a:115c:a1e0::1737:7960",
|
|
"fd7a:115c:a1e0::2d01:c747",
|
|
"fd7a:115c:a1e0::3e37:8e3d",
|
|
"fd7a:115c:a1e0::5b37:80f",
|
|
"fd7a:115c:a1e0::7c37:426a",
|
|
"fd7a:115c:a1e0::9e37:5a52",
|
|
"fd7a:115c:a1e0::b901:4a87",
|
|
"fd7a:115c:a1e0::c537:c845"
|
|
],
|
|
"DstPorts": [
|
|
{
|
|
"IP": "*",
|
|
"Ports": {
|
|
"First": 0,
|
|
"Last": 65535
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"subnet-router": {
|
|
"packet_filter_rules": [
|
|
{
|
|
"SrcIPs": [
|
|
"100.103.8.15",
|
|
"100.103.90.82",
|
|
"100.108.74.26",
|
|
"100.110.121.96",
|
|
"100.83.200.69",
|
|
"100.85.66.106",
|
|
"100.90.199.68",
|
|
"100.92.142.61",
|
|
"fd7a:115c:a1e0::1737:7960",
|
|
"fd7a:115c:a1e0::2d01:c747",
|
|
"fd7a:115c:a1e0::3e37:8e3d",
|
|
"fd7a:115c:a1e0::5b37:80f",
|
|
"fd7a:115c:a1e0::7c37:426a",
|
|
"fd7a:115c:a1e0::9e37:5a52",
|
|
"fd7a:115c:a1e0::b901:4a87",
|
|
"fd7a:115c:a1e0::c537:c845"
|
|
],
|
|
"DstPorts": [
|
|
{
|
|
"IP": "*",
|
|
"Ports": {
|
|
"First": 0,
|
|
"Last": 65535
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"tagged-client": {
|
|
"packet_filter_rules": [
|
|
{
|
|
"SrcIPs": [
|
|
"100.103.8.15",
|
|
"100.103.90.82",
|
|
"100.108.74.26",
|
|
"100.110.121.96",
|
|
"100.83.200.69",
|
|
"100.85.66.106",
|
|
"100.90.199.68",
|
|
"100.92.142.61",
|
|
"fd7a:115c:a1e0::1737:7960",
|
|
"fd7a:115c:a1e0::2d01:c747",
|
|
"fd7a:115c:a1e0::3e37:8e3d",
|
|
"fd7a:115c:a1e0::5b37:80f",
|
|
"fd7a:115c:a1e0::7c37:426a",
|
|
"fd7a:115c:a1e0::9e37:5a52",
|
|
"fd7a:115c:a1e0::b901:4a87",
|
|
"fd7a:115c:a1e0::c537:c845"
|
|
],
|
|
"DstPorts": [
|
|
{
|
|
"IP": "*",
|
|
"Ports": {
|
|
"First": 0,
|
|
"Last": 65535
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"tagged-prod": {
|
|
"packet_filter_rules": [
|
|
{
|
|
"SrcIPs": [
|
|
"100.103.8.15",
|
|
"100.103.90.82",
|
|
"100.108.74.26",
|
|
"100.110.121.96",
|
|
"100.83.200.69",
|
|
"100.85.66.106",
|
|
"100.90.199.68",
|
|
"100.92.142.61",
|
|
"fd7a:115c:a1e0::1737:7960",
|
|
"fd7a:115c:a1e0::2d01:c747",
|
|
"fd7a:115c:a1e0::3e37:8e3d",
|
|
"fd7a:115c:a1e0::5b37:80f",
|
|
"fd7a:115c:a1e0::7c37:426a",
|
|
"fd7a:115c:a1e0::9e37:5a52",
|
|
"fd7a:115c:a1e0::b901:4a87",
|
|
"fd7a:115c:a1e0::c537:c845"
|
|
],
|
|
"DstPorts": [
|
|
{
|
|
"IP": "*",
|
|
"Ports": {
|
|
"First": 0,
|
|
"Last": 65535
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"tagged-server": {
|
|
"packet_filter_rules": [
|
|
{
|
|
"SrcIPs": [
|
|
"100.103.8.15",
|
|
"100.103.90.82",
|
|
"100.108.74.26",
|
|
"100.110.121.96",
|
|
"100.83.200.69",
|
|
"100.85.66.106",
|
|
"100.90.199.68",
|
|
"100.92.142.61",
|
|
"fd7a:115c:a1e0::1737:7960",
|
|
"fd7a:115c:a1e0::2d01:c747",
|
|
"fd7a:115c:a1e0::3e37:8e3d",
|
|
"fd7a:115c:a1e0::5b37:80f",
|
|
"fd7a:115c:a1e0::7c37:426a",
|
|
"fd7a:115c:a1e0::9e37:5a52",
|
|
"fd7a:115c:a1e0::b901:4a87",
|
|
"fd7a:115c:a1e0::c537:c845"
|
|
],
|
|
"DstPorts": [
|
|
{
|
|
"IP": "*",
|
|
"Ports": {
|
|
"First": 0,
|
|
"Last": 65535
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"user-kris": {
|
|
"packet_filter_rules": [
|
|
{
|
|
"SrcIPs": [
|
|
"100.103.8.15",
|
|
"100.103.90.82",
|
|
"100.108.74.26",
|
|
"100.110.121.96",
|
|
"100.83.200.69",
|
|
"100.85.66.106",
|
|
"100.90.199.68",
|
|
"100.92.142.61",
|
|
"fd7a:115c:a1e0::1737:7960",
|
|
"fd7a:115c:a1e0::2d01:c747",
|
|
"fd7a:115c:a1e0::3e37:8e3d",
|
|
"fd7a:115c:a1e0::5b37:80f",
|
|
"fd7a:115c:a1e0::7c37:426a",
|
|
"fd7a:115c:a1e0::9e37:5a52",
|
|
"fd7a:115c:a1e0::b901:4a87",
|
|
"fd7a:115c:a1e0::c537:c845"
|
|
],
|
|
"DstPorts": [
|
|
{
|
|
"IP": "*",
|
|
"Ports": {
|
|
"First": 0,
|
|
"Last": 65535
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"user-mon": {
|
|
"packet_filter_rules": [
|
|
{
|
|
"SrcIPs": [
|
|
"100.103.8.15",
|
|
"100.103.90.82",
|
|
"100.108.74.26",
|
|
"100.110.121.96",
|
|
"100.83.200.69",
|
|
"100.85.66.106",
|
|
"100.90.199.68",
|
|
"100.92.142.61",
|
|
"fd7a:115c:a1e0::1737:7960",
|
|
"fd7a:115c:a1e0::2d01:c747",
|
|
"fd7a:115c:a1e0::3e37:8e3d",
|
|
"fd7a:115c:a1e0::5b37:80f",
|
|
"fd7a:115c:a1e0::7c37:426a",
|
|
"fd7a:115c:a1e0::9e37:5a52",
|
|
"fd7a:115c:a1e0::b901:4a87",
|
|
"fd7a:115c:a1e0::c537:c845"
|
|
],
|
|
"DstPorts": [
|
|
{
|
|
"IP": "*",
|
|
"Ports": {
|
|
"First": 0,
|
|
"Last": 65535
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"user1": {
|
|
"packet_filter_rules": [
|
|
{
|
|
"SrcIPs": [
|
|
"100.103.8.15",
|
|
"100.103.90.82",
|
|
"100.108.74.26",
|
|
"100.110.121.96",
|
|
"100.83.200.69",
|
|
"100.85.66.106",
|
|
"100.90.199.68",
|
|
"100.92.142.61",
|
|
"fd7a:115c:a1e0::1737:7960",
|
|
"fd7a:115c:a1e0::2d01:c747",
|
|
"fd7a:115c:a1e0::3e37:8e3d",
|
|
"fd7a:115c:a1e0::5b37:80f",
|
|
"fd7a:115c:a1e0::7c37:426a",
|
|
"fd7a:115c:a1e0::9e37:5a52",
|
|
"fd7a:115c:a1e0::b901:4a87",
|
|
"fd7a:115c:a1e0::c537:c845"
|
|
],
|
|
"DstPorts": [
|
|
{
|
|
"IP": "*",
|
|
"Ports": {
|
|
"First": 0,
|
|
"Last": 65535
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|