From d8c856e602efcf55f6c37e9475ce0238c4549078 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 3 Nov 2022 10:58:35 +0100 Subject: [PATCH] Add basic accept all acl to all test as example Signed-off-by: Kristoffer Dalby --- integration/scenario.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/integration/scenario.go b/integration/scenario.go index 392de694..e090e5b9 100644 --- a/integration/scenario.go +++ b/integration/scenario.go @@ -151,7 +151,19 @@ func (s *Scenario) Namespaces() []string { // TODO(kradalby): make port and headscale configurable, multiple instances support? func (s *Scenario) StartHeadscale() error { - headscale, err := hsic.New(s.pool, headscalePort, s.network) + headscale, err := hsic.New(s.pool, headscalePort, s.network, + hsic.WithACLPolicy( + &headscale.ACLPolicy{ + ACLs: []headscale.ACL{ + { + Action: "accept", + Sources: []string{"*"}, + Destinations: []string{"*:*"}, + }, + }, + }, + ), + ) if err != nil { return fmt.Errorf("failed to create headscale container: %w", err) }