Do we have some deployed version of keto on cloud ...
# talk-keto
m
Do we have some deployed version of keto on cloud like some sort of playground as we have for kratos so that we can send request to that for creating tupels etc?
s
@many-garden-6507 can you take a look at the CLI and see if that fits your needs? $ bash <(curl https://raw.githubusercontent.com/ory/meta/master/install.sh) ory $ ory help Are you currently using Docker Compose? Take a look at this: https://www.ory.sh/docs/keto/quickstart Feedback welcome. Please open an issue in GH if you want to explain your playground ideas in more detail. Thank you for being part of Ory.
s
I just added a Keto config with one namespace (
default
) to the playground project. Try it now:
Copy code
$ curl -X PUT '<https://playground.projects.oryapis.com/admin/relation-tuples>' \
--header 'Authorization: Bearer ory_pat_xRKLsFEOUFQFVBjd6o3FQDifaLYhabGd' \
--header 'Content-Type: application/json' \
--data '{"namespace":"default", "object":"o", "relation":"r", "subject_id":"s"}'
{"namespace":"default","object":"o","relation":"r","subject_id":"s"}
$ curl -X POST '<https://playground.projects.oryapis.com/relation-tuples/check>' \
--header 'Authorization: Bearer ory_pat_xRKLsFEOUFQFVBjd6o3FQDifaLYhabGd' \
--header 'Content-Type: application/json' \
--data '{"namespace":"default", "object":"o", "relation":"r", "subject_id":"s"}'
{"allowed":true}
👀 2
m
Great @steep-lamp-91158 this work using curl commands, so my question is if i try with react ui or any ui using browser to send http request to this endpoint would it work?
It does not work with api request sent from browser it throws cros origin error when sent http reqeust using browser
s
There will soon be a browser-facing API that works with Kratos sessions and Keto This way we can ensure that users can only check/read their own permissions
But no ETA rn