diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-21 16:01:28 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-21 16:01:28 -0600 |
| commit | b83a9995fb68cba801f5d202419237355c16df38 (patch) | |
| tree | 54d01478248363c84e05e2280ce67a4a33e0b8f5 /pkg/authz | |
| parent | b31d3761491022b0504383a479728e498f099c50 (diff) | |
chore: provide local check service as the default
Diffstat (limited to 'pkg/authz')
| -rw-r--r-- | pkg/authz/server.go | 3 |
1 files changed, 1 insertions, 2 deletions
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) } |
