Knowledge · Architecture

    What Is Multi-Tenant Isolation?

    Multi-tenant isolation is the guarantee that one organization's records can never surface inside another's. How it is enforced and how to verify it.

    What is multi-tenant isolation?

    Multi-tenant isolation is the guarantee that data belonging to one organization can never be read or written by another, even though both use the same application and database. It is enforced by attaching an organization key to every row and re-checking that key on every query.

    Key takeaways

    • Shared infrastructure is normal; shared visibility is a defect.
    • Isolation needs exactly one tenancy key, applied to every tenant row.
    • The key must be resolved server-side, never accepted from the client.
    • Isolation must hold for reads, writes, background jobs and realtime streams.
    • An isolation claim without a two-tenant negative test is an assumption.

    Why one tenancy key, and only one

    Isolation fails at the seams. When a system carries two overlapping notions of tenancy — an organization identifier in one place and an account or company identifier in another — some queries filter on one and some on the other, and the tables that filter on neither become the leak. A single, non-negotiable key removes the ambiguity: either a row carries it or the row does not belong to a tenant.

    The four surfaces isolation has to cover

    • Direct reads: every query scoped by the tenancy key at the database layer.
    • Writes: the key stamped from a server-resolved source, never from the request body.
    • Background work: scheduled jobs and webhooks that run without a user still need a resolved tenant.
    • Live streams: realtime subscriptions and file storage paths scoped the same way as tables.

    How to verify it rather than trust it

    Create two organizations. Sign in as a member of the first. Attempt to read and to modify a record that belongs to the second, addressing it directly by identifier rather than through the interface. Repeat for each surface: table read, table write, file download, realtime channel. Isolation is demonstrated by the failures, not by the interface looking correct.

    Where URBLD fits

    URBLD uses a single tenancy key, org_id, and its permissions contract states that it is the only isolation key and that an alternative tenant identifier must never be reintroduced. One email maps to one organization membership; a second organization requires a separate account. Row Level Security is enabled on customer-data tables and a new table is unreachable until grants and policies are written for it deliberately.

    Principles reinforced

    This page rests on the following foundational ideas.

    FAQ

    Frequently Asked Questions

    Straight answers about how URBLD runs the business end-to-end.

    More in Architecture

    How information should move through a business.

    Browse Architecture
    Share this page