-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable arbitrary nesting of arrow operators #15
Comments
I just wanted to add documentation here that you can achieve this today by creating intermediary permissions on objects. For example:
|
This can be implemented via introducing a intermediate schema layer. So developers can define multiple hops, like |
Any plans to implement this? |
We have a highly hierarchical relationship graph, and many of our most nested entities have permissions that are defined via relationships our users (subjects) have at the top of the hierarchy. In order to facilitate these highly-nested permissions, we need to build out a significant number of proxy permissions that aren't ultimately used by our application logic. Having nested arrows would allow us to only define permissions that we intend to use in applications which would greatly simplify our schema. The existence of a permission implies that it will be used for domain decisions, and that's often not the case for our schema. Contrived example: Permission check of interest:
But would be nice to have:
|
@thackerc We plan to do it; composable schemas has enabled it, but it is not quite scheduled yet |
The arrow operator can only be used once in an expression (e.g.
org->admin
), but should be able to support traversing an arbitrary number of relations (e.g.namespace->org->admin
,tenant->namespace->org->admin->member
).This would allow for nested arrows in schema
The text was updated successfully, but these errors were encountered: