diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-02 16:29:09 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-02 16:29:09 -0600 |
| commit | 998420bbab94f9b36b52e8be5e0d94df2ebd2e90 (patch) | |
| tree | 6466cd4dc0272557096f850aea7ad98ebd31e798 /pkg | |
| parent | 01b0532d2b5866906aecff515d60880e3b740410 (diff) | |
fix: log the cedar policy decision
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/policies/allowed.go | 2 |
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, |
