Skip to content

Commit

Permalink
add AppCallbackHealthCheck_HealthCheck route to unauthed methods (#894)
Browse files Browse the repository at this point in the history
* add AppCallbackHealthCheck_HealthCheck route to unauthed methods

* whoops

* run linter
  • Loading branch information
FoseFx authored Nov 21, 2024
1 parent 30eae46 commit b84e577
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion libs/common/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
"telemetry"
"time"

daprPb "github.com/dapr/dapr/pkg/proto/runtime/v1"

"common/auth"

"github.com/joho/godotenv"
Expand Down Expand Up @@ -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)
}
Expand Down
3 changes: 2 additions & 1 deletion libs/hwauthz/spicedb/spicedb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package spicedb

import (
"context"
"hwauthz/commonPerm"
"hwtesting"
"os"
"os/signal"
Expand All @@ -11,6 +10,8 @@ import (
"testing"
"time"

"hwauthz/commonPerm"

"github.com/google/uuid"

zlog "github.com/rs/zerolog/log"
Expand Down
3 changes: 2 additions & 1 deletion services/property-svc/stories/GetProperty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b84e577

Please sign in to comment.