From f6457a5ed6d6f5fbc4135e410255f040fead2c77 Mon Sep 17 00:00:00 2001 From: Edbert Linardi Date: Tue, 26 Sep 2023 21:24:52 +0700 Subject: [PATCH] Always logs authz policy eval result (#331) --- auth/opa/rpcauth/rpcauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/opa/rpcauth/rpcauth.go b/auth/opa/rpcauth/rpcauth.go index 928a5415..9bc09adf 100644 --- a/auth/opa/rpcauth/rpcauth.go +++ b/auth/opa/rpcauth/rpcauth.go @@ -133,7 +133,7 @@ func (g *Authorizer) Eval(ctx context.Context, input *RPCAuthInput) error { logger.V(1).Error(err, "failed to get hints for authz policy denial", "error", err) } } - logger.V(1).Info("authz policy evaluation result", "authorizationResult", result, "input", input, "denialHints", hints) + logger.Info("authz policy evaluation result", "authorizationResult", result, "input", input, "denialHints", hints) if !result { errRegister := recorder.Counter(ctx, authzDeniedPolicyCounter, 1, attribute.String("method", input.Method)) if errRegister != nil {