Identity and access

Use the identity each surface can prove.

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

One audit shape, several identity strengths

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

Concrete controls, stated precisely.

Upstream PostgreSQL identity

Passthrough keeps the database role and its grants and RLS semantics intact.

Verified human session

SAML or OIDC can issue an identity-bearing certificate that the proxy verifies with mTLS.

Agent attribution

MCP records a configured agent ID and environment, but this is not cryptographic workload authentication.

Identity comparison

Do not collapse different identity strengths into one label.

DecisionWire roleSSO certificateJWTMCP label
Established byPostgreSQL authSafe Boundary CA after IdP flowPostgREST / Supabase authLocal environment configuration
What it proves hereDatabase roleVerified human proxy sessionForwarded HTTP subjectUseful attribution only

How it works

A visible enforcement sequence.

  1. Choose

    Identify whether the caller uses wire, MCP, or PostgREST.

  2. Preserve or verify

    Retain upstream identity or enable the applicable verified path.

  3. Enforce

    Apply deployment policy to the routed request.

  4. Label honestly

    Record identity provenance with the decision.

Protected when

  • PostgreSQL role preservation in passthrough mode
  • Optional human mTLS sessions
  • Consistent attribution fields in audit events

Important boundaries

  • No universal per-agent or per-application identity plane today
  • Agent registration does not authorize database access
  • Per-identity signed policy and durable workload sessions remain future hardening

Continue the story

Related Safe Boundary pages

Test the boundary on a real access path.

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.