horizon icon indicating copy to clipboard operation
horizon copied to clipboard

Multitenancy support on one horizon instance

Open jacekjagiello opened this issue 8 years ago • 2 comments

I'am bulding multitenancy app, and I want to choose database(in wich all collections will be stored) based on for example, database name decoded from JWT token payload. According to #43 that's impossible for now. Each horizon instance has only one database, and project_name === db_name + internal database.

What do you think about sepearting project name from database name, some way to create databases programatically(from the server side) and also select current database while instantiating Horizon() object on the client side?

I've recetly took a look at Horizon source code, and maybe I'll be able to submit a pull request, but what do you think about this kind of idea? Have you got any other ideas for better multitenancy support in horizon apps?

jacekjagiello avatar Jul 21 '16 21:07 jacekjagiello

So what kind of isolation are you looking for with a multi-tenancy app? Usually it's not necessary to split everything up by table, but just have some filter on queries by which user/org they are a part of

deontologician avatar Jul 21 '16 22:07 deontologician

We need multi-tenancy without a custom back-end to realize our app. Do you guys know where to take this feature or do you need some additional input?

With regards to isolation, we would expect separate Rethinkdb databases per organisation.

amborle avatar Sep 28 '16 14:09 amborle