02 / 08 · Service · Mayank Rawat

Multi-tenant SaaS and white-label platform development

One codebase serving many customers or white-label brands, with each tenant's data kept apart by design. Available for freelance projects and full-time roles.

  • Tenant isolation
  • White-label
  • Custom domains
  • RBAC
01

Overview

Multi-tenant products fail quietly: one customer sees another's record, or a report adds up across brands. I build the isolation into the data layer, so it holds even when someone forgets a filter.

PAISAPAID is the clearest example. One company runs many loan brands on it, each with its own domain, website and agent network, on a shared backend that keeps every brand's data apart in the query layer and in PostgreSQL itself.

02

What's included

  • Tenant isolation in the data layer: a scoped database client plus composite foreign keys
  • Tests that fail when a new table or route skips the tenant rules
  • White-label brands with their own domain, website, content and settings
  • Custom domains with HTTPS on the first visit (Caddy on-demand TLS, Cloudflare DNS)
  • Roles and permissions for platform staff, tenant admins and their users
  • Audit logs for cross-tenant access and “log in as”
  • Per-tenant API keys and signed webhooks for customers' own systems
03

How I work

  1. 01

    Isolation nobody has to remember

    Tenant-scoped access goes through one helper that adds the tenant to every query and refuses what it can't check, such as raw SQL.

  2. 02

    The database as a backstop

    Composite foreign keys on (tenant_id, id) stop a row from pointing at another tenant's data, even if application code goes wrong.

  3. 03

    Cross-tenant access is explicit

    Platform staff get a separate, audited path. A request for another tenant's record answers 404 and leaves an audit entry.

04

Shipped proof

05

Questions

Shared database or one database per tenant?
It depends on your customers. A shared schema with a tenant column is the cheapest to run and is what PAISAPAID uses. NovaGate's control plane gives each tenant its own PostgreSQL schema. Separate databases make sense when contracts or regulation demand hard separation.
Can each customer use their own domain?
Yes. PAISAPAID brands bring their own domains: the platform adds them to Cloudflare, checks DNS every five minutes and gets an HTTPS certificate on the first visit, after confirming the domain belongs to a brand.
Can you make an existing single-tenant app multi-tenant?
Usually, yes. The work is adding a tenant key to the right tables, moving queries behind a scoped client and backfilling data, in small steps with tests at each one.

Other services

Need a hand with Multi-tenant SaaS?

Tell me what you're building and where you're stuck. I'll reply within a day.

Let's talk