great-crayon-86888
11/04/2023, 11:24 PMchilly-king-10285
11/04/2023, 11:24 PMchilly-king-10285
11/04/2023, 11:24 PMbash docker pull oryd/keto:<version-you-want>
Then, you can run the Ory Keto Docker image: bash docker run --rm -it oryd/keto:<version-you-want> help
To start the example using docker-compose
, you can use the following command: bash docker-compose -f docker-compose-postgres.yml up
Please replace <version-you-want>
with the version of Ory Keto you want to use. However, the extracts do not provide specific information on how to use a keto.yaml
file which contains the namespaces in a Docker command. For more detailed instructions, you may want to refer to the [Ory Keto documentation](https://www.ory.sh/docs/keto/). Sources: - [Ory Keto Installation](https://www.ory.sh/docs/keto/install) - [Ory Keto Quickstart](https://www.ory.sh/docs/keto/quickstart)great-crayon-86888
11/04/2023, 11:30 PMchilly-king-10285
11/04/2023, 11:30 PMchilly-king-10285
11/04/2023, 11:30 PMgreat-crayon-86888
11/04/2023, 11:42 PMchilly-king-10285
11/04/2023, 11:42 PMchilly-king-10285
11/04/2023, 11:42 PMgreat-crayon-86888
11/04/2023, 11:55 PMchilly-king-10285
11/04/2023, 11:55 PMchilly-king-10285
11/04/2023, 11:56 PMUser
, Document
, Folder
, AccessKey
. Here is an example of how you might define namespaces in a TypeScript file: typescript import { Namespace, Context } from "@ory/keto-namespace-types" class User implements Namespace {} class Document implements Namespace {} class Folder implements Namespace {}
In this case, if you want to name your file as namespace.keto.ts
, you can do so. The important part is the content of the file, where you define your namespaces. Source: [Ory Keto - Concepts - Namespaces](https://www.ory.sh/docs/keto/concepts/namespaces)great-crayon-86888
11/04/2023, 11:56 PMchilly-king-10285
11/04/2023, 11:56 PMchilly-king-10285
11/04/2023, 11:57 PMketo.yaml
configuration file, namespaces are defined under the namespaces
key. Each namespace is represented as an object with an id
and a name
. The name
is the name of the namespace. Here is an example of how you might define namespaces in a keto.yaml
file: yaml namespaces: - id: 0 name: groups - id: 1 name: reports
In this example, two namespaces are defined: groups
and reports
. Source: [Ory Keto - Guides - Role Based Access Control (RBAC)](https://www.ory.sh/docs/keto/guides/rbac)great-crayon-86888
11/05/2023, 12:24 AMchilly-king-10285
11/05/2023, 12:24 AMchilly-king-10285
11/05/2023, 12:24 AM