<@U010UKXCPP0> How do I ran keto in docker with ...
# talk-keto
f
@steep-lamp-91158 How do I ran keto in docker with permissions config in typescript. I'm getting this error.
Copy code
0 | import { Namespace, Context } from "@ory/keto-namespace-types"
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  |                                            ^
I think it can't find keto-namespace-types, but I'm not sure what I'm supposed to do about it
s
we really need to get a release out...
for now you can just comment out the import
f
Okay, thanks @steep-lamp-91158! I've created a config. Which tuples do I beed to add to say that user-1 owns an object-1 and hence should be allowed to view it.
curl --fail-with-body -XPOST \
--data '{"namespace": "File", "object": "object-1", "relation": "owner", "subject_id": "user_u1"}' \
'<http://localhost:4466/relation-tuples/check/openapi>'
{"allowed":true}
curl --fail-with-body -XPOST \
--data '{"namespace": "File", "object": "object-1", "relation": "view", "subject_id": "user_u1"}' \
'<http://localhost:4466/relation-tuples/check/openapi>'
{"allowed":false}
curl --fail-with-body -XPOST \
--data '{"namespace": "File", "object": "object-1", "relation": "viewer", "subject_id": "user_u1"}' \
'<http://localhost:4466/relation-tuples/check/openapi>'
{"error":{"code":500,"status":"Internal Server Error","message":"relation \"viewer\" not found"}}
curl: (22) The requested URL returned error: 500
make: *** [check-tuple] Error 22
s
owners
!=
owner
f
Yeah, got it, thanks
s
sure, np