You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@casbin.apache.org by "tlyyxjz (via GitHub)" <gi...@apache.org> on 2026/08/30 14:26:54 UTC
Re: [I] [Bug] Casbin ABAC rules fail if policy includes any "deny" rows [casbin]
tlyyxjz commented on issue #917:
URL: https://github.com/apache/casbin/issues/917#issuecomment-5469257617
Really nice minimal repro. The `!some(where(p.eft == deny))` clause makes any unrelated deny row poison the entire evaluation — easy to forget when you mix ABAC (subject attributes) with policy effects. That ABAC × deny interaction is a classic "silently wrong" trap: it looks fine in tests, fails deep in prod. Exactly the kind of matcher/effect combination an automated diagnostic (over policy_effect + matcher) should catch before it ships.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@casbin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@casbin.apache.org
For additional commands, e-mail: commits-help@casbin.apache.org