mirror of
https://github.com/juanfont/headscale.git
synced 2026-04-24 09:38:45 +02:00
Add GRANT-V01 through GRANT-V25 JSON files captured from Tailscale SaaS to fill coverage gaps in the grants compatibility test suite. These tests cover: - App grants on specific tags (not just wildcards) - Mixed ip+app grants on specific tags - Via routes with specific src identities (tags, groups, members) - Via with multiple dst subnets and multiple via tags - Drive cap with reverse drive-sharer generation - autogroup:self with app grants - autogroup:internet rejection with app grants - Raw default route CIDR (0.0.0.0/0, ::/0) rejection as grant dst Updates #2180
51 lines
1.5 KiB
JSON
51 lines
1.5 KiB
JSON
{
|
|
"test_id": "GRANT-V05",
|
|
"description": "",
|
|
"timestamp": "2026-02-23T15:39:59Z",
|
|
"error": true,
|
|
"input": {
|
|
"policy_file": "grant_policies_v2/grant_v05.json",
|
|
"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"
|
|
},
|
|
"autoApprovers": {
|
|
"routes": {
|
|
"10.33.0.0/16": ["tag:router"],
|
|
"0.0.0.0/0": ["tag:exit"],
|
|
"::/0": ["tag:exit"]
|
|
}
|
|
},
|
|
"grants": [
|
|
{
|
|
"src": ["*"],
|
|
"dst": ["::/0"],
|
|
"app": {
|
|
"example.com/cap/global-v6": [{}]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"grants_section": [{ "src": ["*"], "dst": ["::/0"], "app": { "example.com/cap/global-v6": [{}] } }],
|
|
"api_endpoint": "https://api.tailscale.com/api/v2/tailnet/kratail2tid%40passkey/acl",
|
|
"api_method": "POST",
|
|
"api_response_code": 400,
|
|
"api_response_body": { "message": "dst \"::/0\": to allow all IP addresses, use \"*\" or \"autogroup:internet\"" }
|
|
}
|
|
}
|