Providers

callout_credentials

Establishing filter that captures typed per-user callout secrets from ingress headers.

Praxis AI Development (bcdcfdbcf963) 2 min read

Switching projects opens that project’s default documentation release.

Versions marked “overview” do not contain this page. Selecting one opens that version’s documentation overview.

On this page

Establishing filter that captures typed per-user callout secrets from ingress headers.

Configuration Notes

SECURITY: every configured source_header is trusted-boundary-owned input. The authentication boundary that terminates ingress MUST unconditionally delete and then set each credential source header on every request, so a client can never spoof another user’s credential by supplying the source header itself. This filter strips the source headers before they reach any upstream, but it cannot distinguish a boundary-set value from a client-supplied one; a deployment that exposes a source_header a client can reach without that delete-then-set step lets any caller inject an arbitrary per-user secret. Only route requests through this filter behind a boundary that owns every configured source header.

Place this filter once in the outer request chain, before body pre-read callouts and any iterative_request_router. It establishes one [CalloutCredentials] map that the router carries across iterations; callout consumers inside or outside the router select their own slot. Do not repeat the establishing filter inside router steps.

Configuration

FieldTypeRequiredDescription
credentialsobject[]noPer-user credential slots to capture from ingress headers.
credentials[].slotstringyesConfig-static slot identifier.
credentials[].source_headerstringyesIngress header name to read the per-user secret from.
assertionsobject[]noOpaque authorization-assertion slots to capture from trusted ingress headers.
assertions[].slotstringyesConfig-static slot identifier.
assertions[].source_headerstringyesIngress header name to read the per-user secret from.

Example

- filter: callout_credentials
  credentials:
    - slot: brave_search
      source_header: x-user-brave-key
  assertions:
    - slot: mcp_gateway
      source_header: x-mcp-authorized