Howdy folks, total newbie here.. but how do i crea...
# talk-keto
a
Howdy folks, total newbie here.. but how do i create namespaces in Keto? I cant find any API for this
s
in the config file, you reference your namespaces.ts
a
Thats the only way? There isnt a programmatic way of doing so?
s
you can programmatically update files, they are hot-reloaded
a
got it.. but there is no way to do this any other than modifying the config map? Is that by design?
s
yes
a
ouch.. thats going to be tedious... is there an ADR or explanation why this is the case?
s
What are you trying to do anyway?
a
allow systems to create their own permission structure using their own admin credentials. It seemed like namespaces where how things should be segmented
although, with them being hard-coded, it doesnt seem like thats the correct segmentation point
so what would be the best way to allow a new product to create its own permission schemes and manage their own trees? would it be in some shared "applications" namespace or something?
s
Yes so namespaces are not isolated! They can cross reference and are not meant to be programmatically generated, but rather carefully written and seldomly changed
None of our projects are multi tenant capable, but you can use multiple Ory Network projects, one per tenant. A full "child" project and multi tenancy feature with config inheritance is already planned.
I'd recommend to use one database (schema) and Keto instance(s) per application if you only have a finite amount of applications.
Also a shared permission model might make sense, especially when users are shared
TL;DR depends
We can also offer professional consulting if you are interested
a
we are doing a side-by-side comparison between Keto and SpiceDB, so we are still a ways away from requesting consulting. Do yall happen to have a comparison we can refer to?
s
sorry no...
a
have yall heard of folks doing this kind of comparison before? what are yalls thoughts on it?