headscale/hscontrol/policy/v2/testdata/ssh_results/SSH-B1.hujson

31 lines
886 B
Text
Raw Normal View History

// SSH-B1
//
// SSH: accept: src=['kristoffer@dalby.cc'] dst=['tag:server'] users=['root']
//
// Expected: SSH rules on 1 of 5 nodes
{
"test_id": "SSH-B1",
"policy_file": "ssh_policies/ssh_b1.json",
"ssh_section": [{ "action": "accept", "src": ["kristoffer@dalby.cc"], "dst": ["tag:server"], "users": ["root"] }],
"nodes": {
"user1": { "rules": [] },
"user-kris": { "rules": [] },
"user-mon": { "rules": [] },
"tagged-server": {
"rules": [
{
"principals": [{ "nodeIP": "100.110.121.96" }, { "nodeIP": "fd7a:115c:a1e0::1737:7960" }],
"sshUsers": { "root": "root" },
"action": {
"accept": true,
"allowAgentForwarding": true,
"allowLocalPortForwarding": true,
"allowRemotePortForwarding": true
}
}
]
},
"tagged-prod": { "rules": [] }
}
}