TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why Google Zanzibar shines at building authorization

205 pointsby kkajlaalmost 2 years ago

15 comments

AndreasHaealmost 2 years 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.<p>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.<p>[0]: <a href="https:&#x2F;&#x2F;www.ory.sh&#x2F;keto&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.ory.sh&#x2F;keto&#x2F;</a> [1]: <a href="https:&#x2F;&#x2F;auth0.com&#x2F;developers&#x2F;lab&#x2F;fine-grained-authorization" rel="nofollow noreferrer">https:&#x2F;&#x2F;auth0.com&#x2F;developers&#x2F;lab&#x2F;fine-grained-authorization</a>
评论 #36473083 未加载
评论 #36473531 未加载
评论 #36476538 未加载
smarx007almost 2 years ago
Very happy to see industry discover the power of graphs and especially, a triple-based representation (cf. RDF [0]; subjects are “subjects”, relationships are “predicates”, and objects are “objects”).<p>Now, a genuine question: why try to shoehorn a freeform graph (because the list of relationships is not hardcoded) into a relational DB instead of using a graph DBMS like Neo4j, Apache Jena (Fuseki) etc. From looking at the source code briefly [1], I didn’t see any extreme SQL optimizations. This indicates to me that Warrant would either support a very limited set of query types, or be very slow on quite a few types of them. Also see “billion triple challenge” in the academia around this.<p>Good luck with your startup!<p>[0]: <a href="https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;rdf11-primer&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;rdf11-primer&#x2F;</a><p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;warrant-dev&#x2F;warrant&#x2F;tree&#x2F;main&#x2F;pkg&#x2F;authz&#x2F;object">https:&#x2F;&#x2F;github.com&#x2F;warrant-dev&#x2F;warrant&#x2F;tree&#x2F;main&#x2F;pkg&#x2F;authz&#x2F;o...</a>
评论 #36473633 未加载
susscrofaalmost 2 years ago
The Zanzibar paper has a section on the consistency model, which says that the race conditions outlined are solved by respecting update order. It then solves it by using Spanner as underlying storage (which is kind of lazy).<p>How does Warrant deal with consistency?
评论 #36472506 未加载
评论 #36472729 未加载
评论 #36472455 未加载
sulamalmost 2 years ago
I was super curious to hear how Zanzibar is being used to control access to buildings. Don’t be fooled, this is not that post. ;)
评论 #36472688 未加载
评论 #36476157 未加载
评论 #36472697 未加载
评论 #36472918 未加载
评论 #36472594 未加载
seymonalmost 2 years ago
One thing I find difficult using access control systems as a distributed service like Zanzibar is a convenient and performant way to search and filter resource data using permissions. For example defining database queries that should only return resources a subject has access to based on Zanzibar permissions.
评论 #36472848 未加载
评论 #36473348 未加载
评论 #36477095 未加载
scarmigalmost 2 years ago
It&#x27;s exciting to see so much action in this space.<p>How would you compare Warrant to other Zanzibar (ZaaS?) offerings? Particularly Ory and Authzed&#x2F;SpiceDb.
zedadexalmost 2 years ago
&gt; Over the last couple years, authorization (AKA “authz”) has become a hot topic of debate. Proponents of various authz frameworks, libraries, and philosophies have voiced their opinions on how it should be implemented, jockeying for position to become the de facto way to implement authz<p>As a developer of a tiny internal webapp - this is fascinating to read! I like to keep things as simple as possible, but as with anything our scope and use cases have grown over time.<p>Our authzn can handle some of this stuff - our rules, built atop our org&#x27;s existing IAM, are <i>very</i> similar to these directed relationship tuples - but as we need to grow that out any further I&#x27;m excited to look into which aspects of ReBaC we&#x27;re still missing.<p>Thanks for the link!
AceJohnny2almost 2 years ago
Plugging another company that&#x27;s been implementing Google-Zanzibar-like auth tech: <a href="https:&#x2F;&#x2F;authzed.com&#x2F;">https:&#x2F;&#x2F;authzed.com&#x2F;</a><p>They&#x27;ve posted a number of interesting articles on the topic here, such as this one listing competing implementations (but 2y old): <a href="https:&#x2F;&#x2F;authzed.com&#x2F;blog&#x2F;zanzibar-implementations">https:&#x2F;&#x2F;authzed.com&#x2F;blog&#x2F;zanzibar-implementations</a>
gnerayalmost 2 years ago
Is anyone here using Warrant or other Zanzibar-like services?<p>If so, how did you evaluate them relative to each other and&#x2F;or building yourselves?
sailsalmost 2 years ago
&gt; A Flexible, Uniform Data Model for Authorization<p>Are there good examples of similar applications of data modules for similarly niche use cases? I get that there are obviously endless data models, but this seems to extend beyond that into a more integrated concept and I don’t quite know why that seems to be the case.
评论 #36472066 未加载
deanCommiealmost 2 years ago
Can anyone who&#x27;s taken a close look at both Zanzibar and Amazon&#x27;s IAM compare and contrast them?
评论 #36478514 未加载
评论 #36474085 未加载
say_it_as_it_isalmost 2 years ago
Yet another Zanzibar system emerges. There&#x27;s no functional advantage to using this system over any of the others, and the others aren&#x27;t necessary either for the vast majority of needs.<p>Zanzibar is overkill for the majority of needs and introduces far too much complexity. It is the solution that covers scenarios of the likes in which you will never see. You will never grow into needing them, either. It is the pinnacle of over engineered software. The reason why people form companies offering it as a solution is to try to recover hundreds of hours of effort cost on something they didn&#x27;t need.
评论 #36482304 未加载
fiddlerwoaroofalmost 2 years ago
How does Zanzibar relate to capability-based schemes?
评论 #36471787 未加载
评论 #36471587 未加载
评论 #36471556 未加载
simongrayalmost 2 years ago
Add this to the list of blog posts praising RDF without anyone realising it.<p>And the additional element added to the tuple is reminiscent of quads, also in heavy use in RDF implementations or similar graph databases.
rantingdemonalmost 2 years ago
Fascetiously, for internal use cases, just use AD