4 ms·
We successfully used a Relationship-based Authorization System based on the Zanzibar paper at my last job building a B2B SaaS leaning heavily on cross-company i
by AndreasHae 3y ago
We successfully used a Relationship-based Authorization System based on the Zanzibar paper at my last job building a B2B SaaS leaning heavily on cross-company integration.
The flexibility in defining rules through tuples helped us iterate rapidly on new product features. We used self-hosted Ory Keto [0] instances as the implementation, though we would have preferred a managed solution. We were checking out Auth0 Fine Grained Authorization [1] but it was still in Alpha back then.
[0]: https://www.ory.sh/keto/ https://www.ory.sh/keto/
[1]: https://auth0.com/developers/lab/fine-grained-authorization https://auth0.com/developers/lab/fine-grained-authorization
- kkajla 3y ago> though we would have preferred a managed solution We completely agree here, which is why we initially started out with our managed cloud offering, Warrant Cloud[1]. While Zanzibar is powerful, operating it with solid latency/availability can be quite challenging. [1] https://warrant.dev/ https://warrant.dev/
- free652 3y agoSo how do you manage filtering of a billion records?
- comboy 3y agoCan anybody explain me why there seem to be much focus on scalability in this context? I mean we have 8 billion people. If the whole planet registers, home PC can handle it, plus it partitions beautifully if necessary in case of authentication. So what am I missing?
- smarx007 3y agoForget about 8B people in this context. If you have 1000 microservices in the company and each has 100 rps, you are looking at ca. 100k rps to a Zanzibar-style system to authorize every request (not to authenticate a user).
- comboy 3y agoThanks.
- dietr1ch 3y agoWhy does it need to be checked on a per-request level? I'd expect you to be able to give short-lived capability tokens to clients that each machine can verify down the stack without making new rpcs. This would avoid the fan-out of all the internal services. Is it just to prevent abuse?
- AlphaSite 3y agoDoes the token identify every resource you have access to? I think is for multi tenant applications with fine grained access control.
- paulddraper 3y ago"Oh, you just [insert complex solution here]" You need one capability token per principal and resource and perhaps access right.
- akajla 3y agoYou can encode capabilities/permissions as scopes in distributed tokens (e.g. OAuth) but this can start to break down if you have very granular, fine-grained permissions (e.g. user:1 has 'editor' access to 1000s of documents/objects). This is similar to the problem that Carta ran into while building out their permissions[1]. In addition, yes - validating permissions on each request makes it so that you can revoke privilege(s) with immediate effect without needing a token to be invalidated. [1] https://medium.com/building-carta/authz-cartas-highly-scalable-permissions-system-782a7f2c840f https://medium.com/building-carta/authz-cartas-highly-scalab...
- deleted 3y ago[deleted]
- smarx007 3y agoI think it's best to refer to the Zanzibar paper: https://www.usenix.org/system/files/atc19-pang.pdf https://www.usenix.org/system/files/atc19-pang.pdf
- arekkas 3y agoGlad to see that you used Ory Keto! :) Ory does have a managed service offering now for Ory Keto as well!