Can One Customer See Another’s Data in Your Bubble SaaS?
Multi-tenant security means enforcing customer boundaries across records and operations. Before a Bubble-to-code migration, define object ownership, memberships, and exceptions. A new database does not establish isolation until its policies and application roles are configured and checked.
One product, many private workspaces
A B2B SaaS may serve dozens of companies through the same interface. Each company expects its customer list, files, messages, and reports to remain separate. That expectation is a core product requirement.
Consider an illustrative recruiting platform. A recruiter might belong to two agencies, and a hiring manager might only see candidates for one client. A simple “logged in” condition cannot express that business arrangement by itself.
Model the relationship before the policy
Start by deciding who owns each object. Does an attachment belong to a user, a project, an employer, or a conversation? What happens when a user moves organizations? Can an administrator act across customer boundaries, and under which circumstances?
Write down exceptional workflows as well as everyday ones. Imports, exports, background reminders, and search indexes often operate outside the screen a founder uses during a demonstration.
PostgreSQL can enforce row-level policies, but enabling RLS and designing appropriate database roles are essential. Table owners and other privileged roles can bypass normal restrictions in relevant configurations. Adopting Postgres is not, by itself, proof of isolation. S16
Define a customer-boundary acceptance exercise
For the replacement application, agree on representative organizations and accounts. Demonstrate normal work inside each organization, refusal outside it, and the approved behavior for users with multiple memberships. Check the actual connection roles used by the application, including background processing.
These are proposed requirements to discuss with the implementation team; they are not claims that every Bubble application needs a new database.
If customer isolation requirements are driving your rebuild, bring them to Bubble to Code before scope is finalized. A migration should produce a coherent ownership model that the business can explain and engineers can maintain. Start with those boundaries, then choose the implementation that can reliably enforce them.
Use Bubble to Code’s database and access architecture as context for discussing customer boundaries in your rebuild.
Practical next step: Include a user with two memberships and a record with missing ownership in the acceptance examples; decide both outcomes explicitly.
Frequently asked questions
- Does switching to Postgres guarantee tenant isolation?
- No. Application permissions, database roles, policy configuration, and privileged operations determine the result.
Sources
- 01PostgreSQL: Row Security Policies · PostgreSQL Docs
- 02Bubble: Response to Recent Security Vulnerability Disclosure · Bubble
- 03Lucca & Pedro: pop_n_bubble research · GitHub
- 04Bubble to Code: About · Bubble to Code
Keep reading
Bubble to Code is an independent service. Not affiliated with, endorsed by, or sponsored by Bubble Group, Inc.
