Skip to content
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

feat: add Lookup API to lookup the relations a subject has to one or more objects #35

Open
jon-whit opened this issue Jul 21, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@jon-whit
Copy link
Contributor

Given one or more relations and a subject, the goal of the Lookup API is to determine the object(s) for which the user has the given relation(s). The query should resolve by starting at the subject node in the Graph of Relations and doing a reverse traversal until all of the object nodes of the graph have been reached from the initial subject node.

@jon-whit jon-whit added the enhancement New feature or request label Jul 21, 2021
@kevinz
Copy link

kevinz commented Aug 4, 2021

Sounds like similar to https://docs.authzed.com/v0/api/#aclservicelookup, right?

@jon-whit
Copy link
Contributor Author

jon-whit commented Aug 5, 2021

Sounds like similar to https://docs.authzed.com/v0/api/#aclservicelookup, right?

Yep, same idea. The goal is to be able to lookup a subjects specific relations to one or more objects in one or more namespaces. This differs from the Expand API which returns all subjects and subject sets having a certain relation to an object.

The lookup API will be better suited for front-end UI component filtering and authorization filtering, just to two name two examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants