https://www.ory.sh/ logo
#talk-keto
Title
# talk-keto
f

flat-vase-70537

10/07/2021, 4:33 PM
sorry for the repeated question, but as no one reacted and some news maybe obscured my question earlier, but do you guys have anywhere what is the correct structure for the setup for configuring the namespaces and relations in the config file for keto? The example is just a file (.keto_namespace) but I can't find it or examples to it anywhere
m

magnificent-energy-493

10/08/2021, 7:50 AM
No problem Daniel, sometimes questions get lost in the raging torrent that is a Slack chat, so don’t worry about asking again, Are you looking for something like the reference configuration? https://www.ory.sh/keto/docs/next/reference/configuration/ I think that is the closest example.
c

crooked-monkey-27395

10/08/2021, 8:27 AM
and here’s an example for the namespace config in the yml config file
Copy code
namespaces:
  - id: 0
    name: apples
  - id: 1
    name: oranges
s

steep-lamp-91158

10/08/2021, 8:36 AM
you can either inline them like @crooked-monkey-27395 said, or put a
file://
URL that points to a separate file/directory containing namespace files that is not super well documented yet, but for the time being the namespace config is very minimal anyway so just inline it 😉
f

flat-vase-70537

10/08/2021, 10:22 AM
that's great, thanks marko and patrik! its safe to assume the "relation" is defined dynamically upon creation of the relation-tuples right?
👍 1
s

steep-lamp-91158

10/08/2021, 10:23 AM
yes they are not yet required to be configured, but that will change eventually
f

flat-vase-70537

10/08/2021, 10:26 AM
thanks!
2 Views