r/programming • • Sep 09 '26

There is no 10x RBAC

https://infisical.com/blog/folder-based-rbac
2 Upvotes

5 comments sorted by

40

u/comrade_donkey Sep 09 '26

RBAC

Looks inside...

{
    "action": ["readValue", "create", "delete"],
    "subject": "secrets",
    "inverted": true,
    "conditions": { "environment": "prod", "secretPath": { "$eq": "/payments" } }
}

ABAC.

13

u/CpnStumpy Sep 10 '26

ABAC can model RBAC which is why I always try to smile and nod when product asks for RBAC and then tell engineering to implement ABAC

1

u/AuthByExample Sep 18 '26

Something that makes a permissions system feel broken even when the policy is right: copying roles or scopes into a JWT and letting that token live for hours. You revoke someone or change their role, and every check still says yes until the token expires. Short-lived access tokens, with the refresh path reloading current authorization, fix most of that. For the sensitive calls I'd still ask a server-side policy store instead of trusting the claims from login.

4

u/[deleted] Sep 09 '26 edited Sep 09 '26

[removed] — view removed comment

2

u/ph34r Sep 10 '26

Cedar is amazing. I've used it on a few projects now