rls-multi-tenant

Installation
SKILL.md

Tenant isolation that holds, and the test that proves it

The deliverable is the test, not the policy. The value is an assertion that goes red when isolation breaks, because every way it breaks here is silent: no error, no warning, no log line, and a catalog view that still reports the policy enabled.

The behavior below is the Azure SQL Database engine's; section 6 notes where it depends on the build. Open the runnable checks when you need the statement behind a message number below, or before changing one.

1. A filter predicate is not the boundary

Microsoft Learn states it plainly: the application can INSERT rows, even if they will be filtered during any other operation. For a low-privilege user holding tenant id 1, under a filter predicate only:

Installs
54
GitHub Stars
66
First Seen
Sep 28, 2026