Wire role preservation
Passthrough relays authentication so PostgreSQL evaluates grants and RLS as the connecting role.
Safe Boundary complements row-level security; it does not replace or synthesize it. Wire passthrough preserves the role, while REST forwards Supabase JWT and apikey headers.
TARGETPOSTGRESQL RLSWhy this exists
PostgreSQL and Supabase remain authoritative for which rows a caller may access. Safe Boundary adds structural query controls and configured value masking on routed traffic.
No tenant predicate is injected. If RLS is missing, disabled, or bypassed by a powerful upstream role, Safe Boundary does not manufacture the missing row-authorization policy.
What it does
Passthrough relays authentication so PostgreSQL evaluates grants and RLS as the connecting role.
Headers reach PostgREST unchanged so Supabase role switching and RLS still run.
Masking and inference protection add controls row-level policy alone does not provide.
How it works
Define and test row policies in PostgreSQL or Supabase.
Use an RLS-preserving authentication mode or REST filter.
Protect sensitive columns for allowed rows.
Verify row isolation and response masking independently.
Protected when
Important boundaries
Continue the story
Protect application, ORM, psql, and BI traffic on the PostgreSQL protocol.
Mask PostgREST responses and stop filters from becoming inference oracles.
Understand trust boundaries, credentials, identity, and bypass conditions.
Start in observe mode, validate the policy against representative traffic, and move to enforcement with explicit bypass controls.