diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-11 16:38:13 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-11 16:38:13 -0600 |
| commit | 62b28867a061c2a4d23bc18f0dd6593d046a1aa5 (patch) | |
| tree | 246b78d0636372d333f4e923c0ebbb8e7fc59f37 /src/authorization | |
| parent | cbb77bed42e4acbf66ba882db262977615637261 (diff) | |
chore: add principal, action and resource to log
Diffstat (limited to 'src/authorization')
| -rw-r--r-- | src/authorization/cedar_authorizer.rs | 3 |
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, |
