From 62b28867a061c2a4d23bc18f0dd6593d046a1aa5 Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 11 Jul 2025 16:38:13 -0600 Subject: chore: add principal, action and resource to log --- src/authorization/cedar_authorizer.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/authorization') diff --git a/src/authorization/cedar_authorizer.rs b/src/authorization/cedar_authorizer.rs index 940794b2..6cda7484 100644 --- a/src/authorization/cedar_authorizer.rs +++ b/src/authorization/cedar_authorizer.rs @@ -159,6 +159,9 @@ impl Authorizer for CedarAuthorizer { tracing::info!( decision = ?decision, diagnostics = ?response.diagnostics(), + principal = %cedar_request.principal().unwrap(), + action = %cedar_request.action().unwrap(), + resource = %cedar_request.resource().unwrap(), host = %http_request.host, method = %http_request.method, path = %http_request.path, -- cgit v1.2.3