6 ms·
Can't I just use Auth0 for authorization?
by rschwabco 5y ago
Can't I just use Auth0 for authorization?
- ogazitt 5y agoAuth0 is a great developer API for authentication, and Aserto picks up where Auth0 leaves off. The "contract" between the authentication system (Auth0) and the authorization system (Aserto) is a signed JWT. You can get away with very simple access control using scopes embedded in a JWT token, but that approach runs out of room pretty quickly [0] With Aserto, you can write authorization rules that are evaluated for every application request, and reason about the user attributes, the operation, and any resource context that is involved in the authorization decision. [0] https://www.aserto.com/blog/oauth2-scopes-are-not-permissions https://www.aserto.com/blog/oauth2-scopes-are-not-permission...
- kache_ 5y agoAuth0 is building something pretty cool akin to Zanzibar https://play.fga.dev/ https://play.fga.dev/
- wereHamster 5y agoThere are at least two startups which are re-implementing something like zanzibar. In my experience, RBAC is too simplistic for even not so advanced apps. For example, with RBAC alone you can't express «User X can edit object Y», if object Y is one of many objects in a collection. Zanzibar – and any system building on top of tuples (subject, relation, object) – can express that quite intuitively.
- ogazitt 5y agoRBAC is simple to get started with, but indeed pretty limited. We tend to use the term because it's more recognizable than ABAC or ReBAC. The {subject,relation,object} tuples do provide a convenient way to express an ACL-based system. Most real-world systems we've encountered tend to have a combination of user-centric and resource-centric aspects to them. With an ABAC-style policy, you can easily enforce relationships like "user X can edit objects in project Y, and can read objects in project Z". In fact, the Aserto policy for Aserto [1] uses this style of authorization, without going "full-tuple". In fact, for many use-cases, the prospect of creating an ACL for every resource feels like a management nightmare for the folks we've talked to, and they typically have a "resource group" construct or hierarchy that they want to treat the same from an authorization perspective. Finally, in addition to the user model, Aserto has a resource model, and we're exploring evolving it more towards the tuple approach. [1] https://github.com/aserto-dev/policy-aona https://github.com/aserto-dev/policy-aona
- wereHamster 5y agoZanzibar has a notion of «User sets» to allow expressing conditions such as «File X can be viewed by (all users who can view Folder Y)» to avoid too much duplication in the rule sets. One challenge they had was to make resolving these rules not too slow, since that forms basically a graph (= graph traversal)
- kache_ 5y agoReading the Zanzibar paper is actually how I learned about how powerful of an optimization technique denormalization could be
- ogazitt 5y agoIt's definitely a good paper :) Denormalization has been around since Date/Codd invented 6NF and relational databases, and then we all realized that most applications have to precompute some joins in order to execute in a performant fashion. In SQL Server we used to call them "materialized views".
- ogazitt 5y agoYes, flattening the graph is essential to getting reasonable performance. A separate (difficult) problem is to keep all the tuple data consistent with the data in your store (often these contain duplicate info).
- janczukt 5y agoAs an ex-Auth0 I was watching Aserto for a while - it is indeed elegantly designed to naturally pick up where Auth0 leaves you. I wish this was available when we were adding authorization to Fusebit APIs. But well, next startup...
- ogazitt 5y agoThanks for the kind words! Maybe next time you look at evolving your authorization model, we can chat :)