rigami.
Glossary
/// Definition

Row-Level Security (RLS)

RLS is a Postgres feature that filters rows returned to a query based on the current user or tenant.

In depth

Row-Level Security policies enforce data isolation at the database layer. Multi-tenant SaaS apps often use RLS to guarantee tenants cannot see each other's data even if the app has a bug.

Related terms