From b83a9995fb68cba801f5d202419237355c16df38 Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 21 Jul 2025 16:01:28 -0600 Subject: chore: provide local check service as the default --- pkg/authz/server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkg/authz') diff --git a/pkg/authz/server.go b/pkg/authz/server.go index 4ab7c17..c54077b 100644 --- a/pkg/authz/server.go +++ b/pkg/authz/server.go @@ -37,7 +37,7 @@ func New(ctx context.Context, options ...grpc.ServerOption) *Server { func authorizationServiceFor(ctx context.Context) auth.AuthorizationServer { connection := Connection.From(ctx) - svcs := []auth.AuthorizationServer{} + svcs := []auth.AuthorizationServer{NewLocalCheckService()} if x.IsPresent(connection) { pls.LogNow(ctx, log.Fields{"authzd": map[string]string{ "target": connection.CanonicalTarget(), @@ -45,6 +45,5 @@ func authorizationServiceFor(ctx context.Context) auth.AuthorizationServer { }}) svcs = append(svcs, NewRemoteCheckService(auth.NewAuthorizationClient(connection))) } - svcs = append(svcs, NewLocalCheckService()) return NewCheckService(svcs) } -- cgit v1.2.3