Comments (9)
Unfortunately our engineers are still busy with other work from customers and we do not have capacity to work on this at the moment.
from keto.
I just stumbled over this issue and I had a similar problem, however, I don't know if this was supposed to work or the documentation is outdated but if you specify the namespace in the tuples it should work just fine:
[
{
"namespace": "Folder",
"object": "folder_1",
"relation": "viewers",
"subject_set": {
"namespace": "User",
"object": "user_1"
}
},
{
"namespace": "Document",
"object": "document_1",
"relation": "parents",
"subject_set": {
"namespace": "Folder",
"object": "folder_1"
}
}
]
When then calling
keto check 'User:user_1' view Document document_1
instead of
keto check user_1 view Document document_1
it will return Allowed
from keto.
Any updates? This seems like core functionality of OPL...
from keto.
This bug actually makes OPL completely useless. Please prioritize this bug as soon as possible.
from keto.
Wait.... I've been struggling with something similar. My feeling is that the current version of keto is totally broken for anything other than one step removed.
from keto.
Hey, sorry to hear that there's an issue. The primary engineers are currently in completely different contexts but we'll try to get this sorted soon. We're currently swamped with some other work, but obviously it's not acceptable to have such faults.
from keto.
@aeneasr any updates here? It's been over a month now.
from keto.
Unfortunately our engineers are still busy with other work from customers and we do not have capacity to work on this at the moment.
from keto.
I just stumbled over this issue and I had a similar problem, however, I don't know if this was supposed to work or the documentation is outdated but if you specify the namespace in the tuples it should work just fine:
[ { "namespace": "Folder", "object": "folder_1", "relation": "viewers", "subject_set": { "namespace": "User", "object": "user_1" } }, { "namespace": "Document", "object": "document_1", "relation": "parents", "subject_set": { "namespace": "Folder", "object": "folder_1" } } ]When then calling
keto check 'User:user_1' view Document document_1
instead of
keto check user_1 view Document document_1
it will return
Allowed
This is the answer ^
Think of it as a sort of strict type. Problem with the approach you have tried is illustrated simply by adding another namespace to the viewers
relation:
class User implements Namespace {}
class Guests implements Namespace {}
class Document implements Namespace {
related: {
viewers: (User | Guests)[];
parents: Folder[];
};
...
This behaviour must be a part of the design, if namespace is not defined system should create it in same namespace the object is located at.
from keto.
Related Issues (20)
- Problem with arbitrary relations
- Keto CLI cannot communicate with the containers HOT 3
- upstream reference closed: github.com/GoogleContainerTools/distroless/issues/1342
- Individual permissions can't be checked with REST API HOT 4
- Helm Release Job NotReady Status HOT 1
- User incorrectly granted access due to an invalid relationship HOT 1
- Empty relation on a subset doesn't work as wildcard after upgrading to v0.11.1
- Does the object support the expression like '/cats/*' to indicate all items starts with '/cats/' HOT 1
- List distinct objects in the namespace
- Config schema references `tracing` instead of `otelx`
- msg=Unable to connect to database, retrying. audience=application error=map[message:unsupported dialect 'jdbc'] service_name=Ory Keto service_version=v0.11.1-alpha.0 HOT 2
- failed to parse as URL HOT 1
- Keto CLI cannot communicate with the containers
- Self-hosting keto returns "404 Page Not Found" when running a permission check HOT 2
- Quickstart is outdated HOT 1
- Poor query performance as traversal width increases HOT 3
- OPL: Incorrect Evaluation of Permissions in Ory Keto HOT 10
- @ory/keto - Latest image - Blocker HOT 1
- upstream reference closed: github.com/opencontainers/runc/issues/4233
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keto.