Re:Policy as Code vs. Policy as Graph Comparison
by jzelinskie on Friday June 30, 2023 @04:18PM
(#36541611)
>In other words: start with ReBAC and add the ABAC bits you want. I.e., cross the two schemes.
This is the approach by SpiceDB as mentioned in the article: https://authzed.com/blog/caveats
You can use a bit of code atop what TFA calls ReBAC to get ABAC.
Suppose your ReBAC check primitive is `check(subject, verb, label)`, and you want to have subject attributes like "DID_2FA", "DID_MFA", "IS_INSIDE_PERIMETER", etc., and grant/label attributes like "REQUIRES_2FA", etc, you might implement `check_prime()` like:
Where grant/label attributes are singletons that imply one subject singleton attribute is required then this can be simplified and made more extensible.In other words: start with ReBAC and add the ABAC bits you want. I.e., cross the two schemes.