Replies: 1 comment 2 replies
-
It would be amazing to support having many (100s of thousands) of accounts that are surfaced in Datalog. This would make eg multi-tenant applications much easier. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'd like to discuss potential authorization designs.
I think cozodb should consider Authentication (i.e. proof of a user's status) as out-of-scope, or rather, an application-level design decision. However, given a user name or id was already verified it could be used as a parameter to queries that apply access control internally.
In the HN discussion of the recent blog post / release someone asked about data security, and one of the replies mentioned the palantir access control design (slides). While this looks neat unfortunately this design does not seem to be well specified so I'm unsure how one would go about implementing it.
Another option could be to model authorization after Google's Zanzibar paper 1 or authzed's spicedb which is an open-source implementation of it 2. In particular, the Developing a Schema guide may help model a useful authorization schema. The biggest challenge for this design may be orienting the general schema around 'subject'/'object' resources, and relating those resources to cozo relations.
Excerpt from authzed's Developing a Schema:
Honestly this seems eminently implementable in cozoscript today, so maybe all we would need is some examples of how to implement authorization with your own schema, and no changes to cozodb itself would be necessary.
Footnotes
https://zanzibar.tech/ ↩
https://github.com/authzed/spicedb ↩
Beta Was this translation helpful? Give feedback.
All reactions