Hi again! Another question I have, is related to t...
# talk-keto
l
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
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
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
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