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

lively-beard-47107

02/28/2022, 6:54 PM
Hi again! Another question I have, is related to the namespaces. What would be an example of categorization in namespaces? I have a use case in my application, when I have multi tenancy. Does it make sense to use a different namespace for each tenant? Can the namespaces be created dynamically? Is there an approach for dealing with multi-tenants?
s

steep-lamp-91158

03/01/2022, 9:10 AM
Depends a bit on the use-case, but in general the same applies for Keto as for Kratos: https://www.ory.sh/docs/kratos/guides/multi-tenancy-multitenant
One solution would be to use the Ory #cloud where you can easily create new projects on demand. Keto will be available EoM for everyone there 😉
Alternatively, if you just have a multi-tenant application that uses Keto, and you have full control of what goes into it, you could e.g. use a UUIDv5 with a per-tenant namespace UUID, or any other means of distinguishing tenants on a data level. Keto namespaces are not isolated.
l

lively-beard-47107

03/01/2022, 12:09 PM
That was what I was thinking. Having a per-tenant namespace UUID. However, I don’t think that namespaces can be created dynamically right? As I’ve seen, they need to be specified in the config file
s

steep-lamp-91158

03/01/2022, 2:52 PM
Yes they do need to be configured, but the config is hot-reloaded.
You however don't have to put them into separate namespaces anyways, as they are not isolated from each other