summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-02 16:29:09 -0600
committermo khan <mo@mokhan.ca>2025-05-02 16:29:09 -0600
commit998420bbab94f9b36b52e8be5e0d94df2ebd2e90 (patch)
tree6466cd4dc0272557096f850aea7ad98ebd31e798
parent01b0532d2b5866906aecff515d60880e3b740410 (diff)
fix: log the cedar policy decision
-rw-r--r--pkg/policies/allowed.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/policies/allowed.go b/pkg/policies/allowed.go
index 328ecdbc..733c08b8 100644
--- a/pkg/policies/allowed.go
+++ b/pkg/policies/allowed.go
@@ -12,7 +12,7 @@ func Allowed(ctx context.Context, request cedar.Request) bool {
ok, diagnostic := All.IsAuthorized(Entities, request)
log.WithFields(ctx, log.Fields{
- "ok": "ok",
+ "ok": ok,
"principal": request.Principal,
"action": request.Action,
"context": request.Context,