Upstream PostgreSQL identity
Passthrough keeps the database role and its grants and RLS semantics intact.
Safe Boundary does not pretend every label is authenticated identity. PostgreSQL roles, SSO client certificates, Supabase JWTs, and MCP attribution each come from a different trust path.
Why this exists
On default wire passthrough, PostgreSQL authenticates the user and Safe Boundary preserves the role. Optional SSO requires a Safe Boundary-issued mTLS certificate. On REST, PostgREST validates the forwarded JWT. On MCP, agent fields are supplied by local configuration.
A useful audit record says what it knows and how it knows it rather than labelling every caller “verified.”
What it does
Passthrough keeps the database role and its grants and RLS semantics intact.
SAML or OIDC can issue an identity-bearing certificate that the proxy verifies with mTLS.
MCP records a configured agent ID and environment, but this is not cryptographic workload authentication.
Identity comparison
| Decision | Wire role | SSO certificate | JWT | MCP label |
|---|---|---|---|---|
| Established by | PostgreSQL auth | Safe Boundary CA after IdP flow | PostgREST / Supabase auth | Local environment configuration |
| What it proves here | Database role | Verified human proxy session | Forwarded HTTP subject | Useful attribution only |
How it works
Identify whether the caller uses wire, MCP, or PostgREST.
Retain upstream identity or enable the applicable verified path.
Apply deployment policy to the routed request.
Record identity provenance with the decision.
Protected when
Important boundaries
Continue the story
The verified human identity path.
The current MCP attribution model.
Understand trust boundaries, credentials, identity, and bypass conditions.
Start in observe mode and validate the policy against representative traffic before you enforce it. That gives the team evidence for each decision, along with explicit bypass controls for the cases that need a deliberate exception.