summaryrefslogtreecommitdiff
path: root/src/authorization/cedar_authorizer.rs
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-11 16:38:13 -0600
committermo khan <mo@mokhan.ca>2025-07-11 16:38:13 -0600
commit62b28867a061c2a4d23bc18f0dd6593d046a1aa5 (patch)
tree246b78d0636372d333f4e923c0ebbb8e7fc59f37 /src/authorization/cedar_authorizer.rs
parentcbb77bed42e4acbf66ba882db262977615637261 (diff)
chore: add principal, action and resource to log
Diffstat (limited to 'src/authorization/cedar_authorizer.rs')
-rw-r--r--src/authorization/cedar_authorizer.rs3
1 files changed, 3 insertions, 0 deletions
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,