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

33 lines
912 B
Text
Raw Normal View History

// SSH-C3
//
// SSH: accept: src=['kristoffer@dalby.cc'] dst=['kristoffer@dalby.cc'] users=['root']
//
// Expected: SSH rules on 1 of 5 nodes
{
"test_id": "SSH-C3",
"policy_file": "ssh_policies/ssh_c3.json",
"ssh_section": [
{ "action": "accept", "src": ["kristoffer@dalby.cc"], "dst": ["kristoffer@dalby.cc"], "users": ["root"] }
],
"nodes": {
"user1": { "rules": [] },
"user-kris": {
"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
}
}
]
},
"user-mon": { "rules": [] },
"tagged-server": { "rules": [] },
"tagged-prod": { "rules": [] }
}
}