Security and privacy · · 3 min read
Keeping your customers’ data apart: a security checklist for multi-customer software
If your software serves more than one business or household, the worst bug isn’t a crash. It’s one customer seeing another’s data. Here’s how to make that structurally hard.
Many products are “multi-tenant”: one system serving many separate customers. A booking platform serves many salons; a SaaS tool serves many companies; a family app serves many households. Each customer expects their data to be invisible to everyone else. Getting that right is less about clever code and more about where you put the rules.
Put the rules where they can’t be skipped
The most common mistake is enforcing access only in the app: the screen shows a customer their own records, so everything seems fine. But apps can be modified, and anyone can call an API directly. The rule that keeps customers apart must live on the server, ideally in the database itself.
PostgreSQL supports row-level security, where the database refuses to return or change any row the current user isn’t allowed to see, regardless of what the app asks for. Platforms built on PostgreSQL, such as Supabase, make this the recommended approach.
The checklist
- Every table holding customer data has a column that says which customer owns it, and it can’t be empty.
- Access rules are enforced by the server or database on every read and write, not only by the interface.
- The server decides who the user is and which customer they belong to. Never trust a customer ID sent by the app.
- Columns that must not be changed by users, such as the owner, the author and timestamps, are set by the server and can’t be written by clients.
- Administrative keys that bypass the rules are used only on the server, never shipped in an app or website.
- File storage follows the same rules as the database. Uploads are private by default, and links expire.
- When someone leaves a team or an account is closed, their access ends immediately, everywhere.
- Error messages and logs never contain another customer’s data, and failures don’t reveal whether a record exists.
- Backups can be restored for one customer without exposing others, and deletion requests reach backups in time.
- Search, exports, reports and notifications are checked too. They’re where leaks most often hide.
Test by trying to break it
Write automated tests that create two customers and have one try to read, change, delete and export the other’s data through every route you have. Those tests should fail loudly if anyone ever loosens a rule. They’re among the most valuable tests a multi-customer product can have, and they cost little to write at the start.
Questions to ask whoever builds it
You don’t need to read the code to know whether this has been handled. Ask these questions and listen for specific answers rather than reassurance:
- Where exactly is the rule enforced that stops one customer seeing another’s data?
- What happens if someone calls the API directly with a different customer’s ID?
- Which keys can bypass those rules, and where are they stored?
- Is there an automated test that tries to read another customer’s data, and does it run on every change?
- How would we find out if a leak happened, and how quickly could we restore or delete one customer’s data?
If you already have a product
Start with a short review: where are the rules enforced today, and what would happen if someone called your API directly with another customer’s ID? The answers usually point to a small number of high-value fixes.
Planning something like this?
Tell us what you’re building, or talk it through first on a free 20-minute call.

