diff --git a/libs/common/setup.go b/libs/common/setup.go index 024d3011a..8ac5b28b1 100644 --- a/libs/common/setup.go +++ b/libs/common/setup.go @@ -10,6 +10,8 @@ import ( "telemetry" "time" + daprPb "github.com/dapr/dapr/pkg/proto/runtime/v1" + "common/auth" "github.com/joho/godotenv" @@ -82,7 +84,9 @@ func Setup(serviceName, version string, opts ...SetupOption) context.Context { contextCancel = cancel // Collect options - options := SetupOptions{} + options := SetupOptions{ + unauthenticatedMethods: []string{daprPb.AppCallbackHealthCheck_HealthCheck_FullMethodName}, + } for _, opt := range opts { opt(&options) } diff --git a/libs/hwauthz/spicedb/spicedb_test.go b/libs/hwauthz/spicedb/spicedb_test.go index 13619cdf3..1904ab626 100644 --- a/libs/hwauthz/spicedb/spicedb_test.go +++ b/libs/hwauthz/spicedb/spicedb_test.go @@ -2,7 +2,6 @@ package spicedb import ( "context" - "hwauthz/commonPerm" "hwtesting" "os" "os/signal" @@ -11,6 +10,8 @@ import ( "testing" "time" + "hwauthz/commonPerm" + "github.com/google/uuid" zlog "github.com/rs/zerolog/log" diff --git a/services/property-svc/stories/GetProperty_test.go b/services/property-svc/stories/GetProperty_test.go index bc84f36e6..b2531d65f 100644 --- a/services/property-svc/stories/GetProperty_test.go +++ b/services/property-svc/stories/GetProperty_test.go @@ -8,9 +8,10 @@ import ( "hwauthz/spicedb" "hwtesting" "hwutil" - "property-svc/internal/property-view/perm" "testing" + "property-svc/internal/property-view/perm" + "github.com/google/uuid" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require"