You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ADR: Defining permission dependencies via Yaml extensibility #523
Two points that may help with retiring authz.policy:
g, g2, ... are independent role systems, not a built-in "permission depends on permission" relation. A g2 row only changes a decision if the matcher calls g2(...).
If the dependency is authorization semantics, modeling it as role inheritance is usually simpler. If it is catalog metadata (as in the second objective here), the YAML schema can stay the source of truth and expand into p / g / g2 rows when the policy is generated. Casbin does not require those rows to live in a CSV file; an adapter can load them from your database or from the YAML/JSON catalog.
Activity
hsluoyz commentedon Oct 31, 2026
I added a docs section on
g2and permission dependencies that is relevant here:https://casbin.apache.org/docs/rbac#named-role-systems-and-permission-dependencies
Two points that may help with retiring
authz.policy:g,g2, ... are independent role systems, not a built-in "permission depends on permission" relation. Ag2row only changes a decision if the matcher callsg2(...).p/g/g2rows when the policy is generated. Casbin does not require those rows to live in a CSV file; an adapter can load them from your database or from the YAML/JSON catalog.Commit: apache/casbin-website@15ca994e0