Replies: 2 comments 2 replies
-
I like the idea 🙌 |
Beta Was this translation helpful? Give feedback.
-
I'm confused how point 2 relates to keto. Keto has no knowledge of the underlying object's data, so it can't possibly return a list of sorted/filtered object IDs. Enforcing permissions at the query level is an option, and Ory Oathkeeper is pretty well equipped for that assuming it fits your use case. Assuming all In my case, I'm trying to tackle a similar issue and I still haven't settled on a solution. I'm using GraphQL, so Oathkeeper isn't much use out-of-the-box, and not all permissions issues line up so nicely as the assumption-laden example I put forth. Perhaps I'm wrong and there is a solution for this in keto or something cleaner than defining permissions on queries. |
Beta Was this translation helpful? Give feedback.
-
Originally posted by @zhaochy1990 in #681 (comment)
We are trying to use keto as the foundation of our authorization system. I'v already read keto docs and had a brief understanding of keto implementation through reading part of keto codes.
our business scenarios have 1k+ subjects that might be binded to a
role
, and a role will be assigned to aprincipal
,principal
could be any ofUser
,Department
,UserGroup
,Organization
,Application
,Device
, etc...our planned modeling like following
With the above model, we have the following considerations for the
list
API, and we are happy to see if you could give our some suggestions:Book
s that a user haveRead
permission, which means thelist
API also needs to includes object from indirect relation-tuplesBeta Was this translation helpful? Give feedback.
All reactions