Hi All :wave: I’m trying to understand the exampl...
# talk-keto
p
Hi All 👋 I’m trying to understand the examples provided here https://www.ory.sh/docs/keto/guides/userset-rewrites In particular, if it is required to use Ory Permission Language (OPL) to achieve transitive relations. By transitive relations I mean that if we have (written in english, putting aside relation tuples for a moment) 1. Alice is a manager of Bob 2. Bob is a manger of John 3. John is a manger of Luke 4. Luke can read File1.txt We would like to define permissions so that Alice can read the File1.txt because she’s transitive manager of Luke. What are the options to achieve that with Keto?
One option we see is to add tuples 1. file:File1.txt # read @ Luke 2. user:Luke # manages @ John 3. user:John # manages @ Bob 4. user:Bob # manages @ Alice 5. file:File2 # read @ (user:Luke # manages) 6. user:Luke # manages @ (user:John # manages) 7. user:John # manages @ (user:Bob # manages) Then an check for file:File1.txt # read @ Alice would return allowed (?) However, this means that we have to add tuples like 6. and 7. for every user. Is there a way to achieve that without OPL?