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

60 lines
1 KiB
Text
Raw Normal View History

// SSH-B3
//
// SSH: accept: src=['tag:prod'] dst=['tag:server'] users=['root']
//
// Expected: SSH rules on 1 of 5 nodes
{
"test_id": "SSH-B3",
"ssh_section": [
{
"action": "accept",
"src": [
"tag:prod"
],
"dst": [
"tag:server"
],
"users": [
"root"
]
}
],
"nodes": {
"user1": {
"rules": []
},
"user-kris": {
"rules": []
},
"user-mon": {
"rules": []
},
"tagged-server": {
"rules": [
{
"principals": [
{
"nodeIP": "100.103.8.15"
},
{
"nodeIP": "fd7a:115c:a1e0::5b37:80f"
}
],
"sshUsers": {
"root": "root"
},
"action": {
"accept": true,
"allowAgentForwarding": true,
"allowLocalPortForwarding": true,
"allowRemotePortForwarding": true
}
}
]
},
"tagged-prod": {
"rules": []
}
}
}