Hacker Newsnew | past | comments | ask | show | jobs | submit | eliocs's commentslogin

Lot of 'new' databases are basing their moat on this and sync engines. Eg: supabase, zero.dev, jazzdb, etc.


How would you achieve fast list queries of accessible resources with this approach?


feldera has a way to run ad-hoc/list queries on materialized views. Alternatively, you can send the result somewhere where you can query it.


Can you let me know how would you for example query all accessible resources for a user using Google's Zanzibar?


In SpiceDB, this is known as the LookupResources [1] API, which returns all resources (of a particular type) that a particular subject (user in this case) has a particular permission on.

We have a guide on doing ACL-aware filtering and listing [2] with this API and describing other approaches for larger Enterprise scales

Disclaimer: I'm the co-founder and CTO of AuthZed, we develop SpiceDB, and I wrote our most recent implementation of LookupResources

[1]: https://buf.build/authzed/api/docs/main:authzed.api.v1#authz... [2]: https://authzed.com/docs/spicedb/modeling/protecting-a-list-...


Related: if anyone has a method of achieving this query against GCP resources I'd be keen to learn that as well.


We actually have users that synchronize their resources from various sources (AWS, Kubernetes, etc) into SpiceDB, explicitly so they can perform these kinds of queries!

One of the major benefits of a centralized authorization system is allowing for permissions queries across resources and subjects from multiple different services/sources (of course, with the need to synchronize the data in)

Happy to expand on how some users do so, if you're curious.


I just want to point out you have to take care about that, yes you can have a trigger or a transaction to make sure it happens but it isn't there out of the box


Location: Spain Remote: yes Willing to relocate: no Technologies: Full Stack Javascript, Android, iPhone, Machine Learning Resume: http://eliocapella.com/resume.html email: me at eliocapella.com


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: