Hey again) I have such objects/subject relationsh...
# talk-keto
l
Hey again) I have such objects/subject relationships structure I have several questions: • Is is possible to achieve role inheritance? In my case I want to inherit all viewer permissions for creator role, because I don't wanna to duplicate all viewer policies for creator role • One for question. In my case I have organization (bmw) and departments (bmw-eu and bmw-us), and I want to have bmw-ue/us files permission for all bmw creators/viewers implicitly. So, I just wanna have parent-child relationships between organization and departments and inherit all resource permission from down to up. Like if you creator in BMW, you are automatically creator in bmw-eu, because bmw is parent of bmw-eu.
s
I assume you want to store the edges of the graph you posted as relation tuples, and then derive the policies in the box from that?
l
Hm Yes, it's really good example But I don't see lib.ts inside contrib/rewrites-example folder
So, then I'm trying to run your example I get: unclosed string literal keto | keto | 0 | import { Namespace, SubjectSet, Context } from "@ory/keto-namespace-types"
s
l
Hm Sorry, but does it solves problem while deploying? I mean npm install @ory/keto-namespace-types just make it visible on your local machine But when I try to run keto container I still getting error
s
in the thread there is the comment that keto currently fails to parse the import, so you have to comment it out for deploying