mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-10 13:46:46 +02:00
integration: user valid policy for ssh
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
eb05368dd5
commit
45bb3bcf5c
@ -172,7 +172,7 @@ func TestSSHMultipleUsersAllToAll(t *testing.T) {
|
|||||||
{
|
{
|
||||||
Action: "accept",
|
Action: "accept",
|
||||||
Sources: []string{"group:integration-test"},
|
Sources: []string{"group:integration-test"},
|
||||||
Destinations: []string{"group:integration-test"},
|
Destinations: []string{"user1@", "user2@"},
|
||||||
Users: []string{"ssh-it-user"},
|
Users: []string{"ssh-it-user"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -267,7 +267,7 @@ func TestSSHIsBlockedInACL(t *testing.T) {
|
|||||||
{
|
{
|
||||||
Action: "accept",
|
Action: "accept",
|
||||||
Sources: []string{"group:integration-test"},
|
Sources: []string{"group:integration-test"},
|
||||||
Destinations: []string{"group:integration-test"},
|
Destinations: []string{"user1@"},
|
||||||
Users: []string{"ssh-it-user"},
|
Users: []string{"ssh-it-user"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -317,13 +317,13 @@ func TestSSHUserOnlyIsolation(t *testing.T) {
|
|||||||
{
|
{
|
||||||
Action: "accept",
|
Action: "accept",
|
||||||
Sources: []string{"group:ssh1"},
|
Sources: []string{"group:ssh1"},
|
||||||
Destinations: []string{"group:ssh1"},
|
Destinations: []string{"user1@"},
|
||||||
Users: []string{"ssh-it-user"},
|
Users: []string{"ssh-it-user"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Action: "accept",
|
Action: "accept",
|
||||||
Sources: []string{"group:ssh2"},
|
Sources: []string{"group:ssh2"},
|
||||||
Destinations: []string{"group:ssh2"},
|
Destinations: []string{"user2@"},
|
||||||
Users: []string{"ssh-it-user"},
|
Users: []string{"ssh-it-user"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user