Replies: 45 comments 34 replies
-
This depends on how you'd like to structure your database. Basically, there are three ways:
(Check this article for knowing the types of multitenancy.) I think 3 would be the most straightforward way for now(2 may be possible later). You could have a Option 1 seems bad for scalability. Since a connection is tied to a database, if you have many tenants you'll need to maintain a lot of connections(and in postgres this is bad because 1 connection = 1 process). There was a previous discussion on: #957 (reply in thread) |
Beta Was this translation helpful? Give feedback.
-
We need multi tenancy with one DB per customer. Are there plans to add this? |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, we do plan to make gotrue multi-tenant eventually but we don't have a clear timeline for this yet. The upstream version of gotrue from netlify supports multi-tenancy using method (3) described by steve above: Same db and same schema, tenants separated by |
Beta Was this translation helpful? Give feedback.
-
Great to hear that this has been considered. My vote would be for Option 1 above for the following reasons:
|
Beta Was this translation helpful? Give feedback.
-
Hey team! Any place where we can track the multi-tenancy implementation process? |
Beta Was this translation helpful? Give feedback.
-
Option 1 would allow me to provision my tenants into DBs and the client could provision their sub-tenants in schemas. All while keeping data in smaller packages that are easier to move, backup and restore. |
Beta Was this translation helpful? Give feedback.
-
Any updates that can be shared on this subject? Would love to know :-) |
Beta Was this translation helpful? Give feedback.
-
For Option 1, separate db per tenant - Could you just use the new Management API to create a new project for each tenant and then deploy to it? I was thinking of trying something like that and then I would just have to figure out how to let users switch between organizations if they belong to multiple orgs. One "low rent" way I thought of for doing this: generate a magic link for the org they want to switch to and navigate them to it. I think this solution would require:
To be clear: Tenants would not own their Supabase projects in any way as developers or have any control over them such as rolling out their own Edge functions. They're just users. |
Beta Was this translation helpful? Give feedback.
-
I am also interested in Multi-tenant... |
Beta Was this translation helpful? Give feedback.
-
Hi. I am trying to build a multi tenancy platform and have run into the issues outlined above. After trying Next-Auth, which only has a single email call back location, I was hoping that supabase would at least allow me to programatically change the siteUrl property via the Management API so I can send the email confirmation to a custom tenant domain. Is there any news from the Supabase team on whether a solution will be provided on any of the options above? |
Beta Was this translation helpful? Give feedback.
-
Is there any updates to this request? This request along with transaction support are the only things stopping our company from phasing out firebase completely. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, any updates about Multi-tenant feature? 👀 |
Beta Was this translation helpful? Give feedback.
-
Tough choice, but I made it in favor of firebase because of the multitenancy. |
Beta Was this translation helpful? Give feedback.
-
+1 this would be helpful :) |
Beta Was this translation helpful? Give feedback.
-
Not really sure, but is this new Supavisor thing going in the right direction? https://github.com/supabase/supavisor |
Beta Was this translation helpful? Give feedback.
-
+1. Multi-tenant auth is a must-have. I've been looking for info a couple of days until I reached this thread. I'd be great if you had some kind of a general roadmap, like Remix project does for example. |
Beta Was this translation helpful? Give feedback.
-
plus one |
Beta Was this translation helpful? Give feedback.
-
Hello @kangmingtay Do you have any update or eta about this feature to share with us? It would be awesome to have this as a built-in solution as I have no code experience and it seems a bit complicated and confusing to me to implement what was suggested for schemas. Appreciate your attention |
Beta Was this translation helpful? Give feedback.
-
Hi @FlexiFarmAdmin, Your solution seems to be what I am looking for however I have no code experience and I was wondering if you could send me a quote to prepare a step-by-step guide so I can implement same solution in supabase/schemas to manage my companies data's. Thank you very much |
Beta Was this translation helpful? Give feedback.
-
Check out supa.guide by @activenode which shows you how to build a multi-tenant platform |
Beta Was this translation helpful? Give feedback.
-
Is there any update on this? We have multiple users who use a variety of login methods across tenants, like google for tenant 1, github for tenant 2 etc. So, ideally we should allow users to signup with any means across tenants. |
Beta Was this translation helpful? Give feedback.
-
Would be awesome to have the option to dynamically set the 'from' email when sending authentication emails. We have a multi-tenant setup going with supabase auth, but are restricted to sending our sign in emails from 1 address though we'd like to change the domain based on the organization/domain that is active. |
Beta Was this translation helpful? Give feedback.
-
is there a way to create a database with the possibility of Multi-tenant ?
Beta Was this translation helpful? Give feedback.
All reactions