skip auth check when server is running in insecure mode (#107820)

* skip auth check when server is running in insecure mode

* add some useful logs

* lint
This commit is contained in:
Cory Forseth
2025-07-16 13:06:47 -04:00
committed by GitHub
parent 9c15662cf6
commit a0085b6cab
7 changed files with 17 additions and 6 deletions
@@ -14,7 +14,7 @@ func (s *Server) BatchCheck(ctx context.Context, r *authzextv1.BatchCheckRequest
ctx, span := s.tracer.Start(ctx, "server.BatchCheck")
defer span.End()
if err := authorize(ctx, r.GetNamespace()); err != nil {
if err := authorize(ctx, r.GetNamespace(), s.cfg); err != nil {
return nil, err
}