feat: add support for ssh acl policies

This commit is contained in:
Johan Siebens
2022-10-06 20:49:05 +02:00
parent c70a4cfe6a
commit ddc65d2df9
24 changed files with 1627 additions and 209 deletions
-10
View File
@@ -1,8 +1,6 @@
package domain
import (
"encoding/json"
"fmt"
"github.com/jsiebens/ionscale/internal/addr"
"github.com/stretchr/testify/assert"
"net/netip"
@@ -11,14 +9,6 @@ import (
"testing"
)
func printRules(rules []tailcfg.FilterRule) {
indent, err := json.MarshalIndent(rules, "", " ")
if err != nil {
panic(err)
}
fmt.Println(string(indent))
}
func TestACLPolicy_BuildFilterRulesWildcards(t *testing.T) {
p1 := createMachine("john@example.com")
p2 := createMachine("jane@example.com")