-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
Compare this
with ctx.subject
#1204
Comments
From the way we write |
If we implement this, then the On the syntax itself, I'm not sure if From an implementation point of view, this would require:
Of course, add tests to make sure your change was effective, and run the fuzzers if you touch parser code. |
Hello contributors! I am marking this issue as stale as it has not received any engagement from the community or maintainers for a year. That does not imply that the issue has no merit! If you feel strongly about this issue
Throughout its lifetime, Ory has received over 10.000 issues and PRs. To sustain that growth, we need to prioritize and focus on issues that are important to the community. A good indication of importance, and thus priority, is activity on a topic. Unfortunately, burnout has become a topic of concern amongst open-source projects. It can lead to severe personal and health issues as well as opening catastrophic attack vectors. The motivation for this automation is to help prioritize issues in the backlog and not ignore, reject, or belittle anyone. If this issue was marked as stale erroneously you can exempt it by adding the Thank you for your understanding and to anyone who participated in the conversation! And as written above, please do participate in the conversation if this topic is important to you! Thank you 🙏✌️ |
Thanks stale bot! I'm also subscribing to this issue. Agreeing with the part where ideally this avoids hitting the database.
My current workaround for this, is that our client library wrapping Keto calls is responsible for doing this comparison. |
This would massively simplify our namespace definitions and make working with Keto a lot nicer than it already is. :) If you need a hand with testing or reviewing this, I'd be happy to help and give feedback if needed. I note there's some discussion about this on Slack in January (just within the 90-day cut-off!) and February, but I can't see any further follow-ups since then, hence chiming in here. :) |
Preflight checklist
Describe your problem
I'm using Keto to implement permission for my SaaS-like product. Users can interact with it through a cli program (using a personal access token) or directly from the website (with session cookies). PATs can be "admin" tokens or "view" tokens, only "admin" tokens can make changes to the account. I implemented the following partial OPL policy:
What's missing is a way to add the tuple
Account:alice#edit@Account:alice
.Describe your ideal solution
My ideal solution is to add a permission check like
this == ctx.subject
.Workarounds or alternatives
Add a
editor
relation fromAccount
toAccount
and check thatthis.related.editor.includes(ctx.subject)
.Version
v0.10.0-alpha.0
Additional Context
No response
The text was updated successfully, but these errors were encountered: