Local data path
Run wire and REST enforcement near PostgreSQL, while the MCP package runs beside the AI client and connects directly.
Place the selected enforcement surface in the real data path, keep credentials close to the workload, and use network and secret controls to make the protected route authoritative.
TARGETPOSTGRESQLWhy this exists
A proxy can make precise decisions on every request it receives and still provide no security if the same caller retains a direct PostgreSQL DSN, a Supabase service_role key, or another unrestricted database tool.
Deployment therefore combines Safe Boundary routing with ordinary infrastructure controls: separate administrative access, restrict network egress, remove broad credentials from constrained workloads, and test that direct paths are actually unreachable.
What it does
Run wire and REST enforcement near PostgreSQL, while the MCP package runs beside the AI client and connects directly.
Use PostgreSQL passthrough roles or forwarded Supabase JWTs so upstream grants and RLS remain authoritative.
Make direct endpoints and credentials unavailable to the applications, agents, or people governed by the boundary.
How it works
Distinguish constrained application and AI paths from controlled administrative access.
Deploy wire, MCP, or REST enforcement where the selected caller actually sends requests.
Rotate direct credentials and restrict DNS, network, secret, and tool configuration.
Attempt direct PostgreSQL and Supabase access from the constrained workload environment.
Protected when
Important boundaries
Continue the story
Understand trust boundaries, credentials, identity, and bypass conditions.
Measure policy decisions on representative traffic before activating enforcement.
See how the three enforcement surfaces share policy and audit semantics.
Start in observe mode, validate the policy against representative traffic, and move to enforcement with explicit bypass controls.