Row-Level Security (RLS)

Definition: A database access pattern where rows are visible only to users authorized to see them — used by Supabase and Postgres.

What it is

Row-level security is a Postgres feature where access policies are enforced at the row level, not the table level. It enables true multi-tenant SaaS where every workspace's data lives in shared tables but is invisible to other workspaces. Supabase made RLS the default pattern for modern multi-tenant apps.

Why it matters

RLS is the cleanest pattern for multi-tenant isolation. It pushes auth into the database, so the app cannot accidentally leak data through a missed join.

Layer UI in context

Layer UI runs on Supabase with workspace isolation enforced by RLS — every workspace's CRM, tasks, and chat live in shared tables but are completely isolated.

Related terms

Try Layer UI

Layer UI is the all-in-one Remote Work OS — CRM, tasks, chat, docs, and AI for $12/seat/month. Free for 1 user.

Get started free