Identity Header Guard

Captures identity headers matching a prefix into filter metadata and strips them before forwarding upstream

Category: Setup-dependent integration
Task: Captures identity headers matching a prefix into filter metadata and strips them before forwarding upstream

Prerequisites: The external service, credentials, or certificates referenced by this configuration.

Run it: Use ghcr.io/praxis-proxy/ai:0.4.1 and follow the container quickstart to mount and start the configuration.

This configuration comes from the selected release. The example has not been run here; external services are not bundled.

Download the source file.

# Identity Header Guard
#
# Captures identity headers matching a prefix into filter
# metadata and strips them before forwarding upstream.
# Prevents identity leakage to LLM providers.
#
listeners:
  - name: gateway
    address: "127.0.0.1:8080"
    filter_chains:
      - guarded

filter_chains:
  - name: guarded
    filters:
      - filter: identity_header_guard
        prefix: "x-tenant-"
        metadata_namespace: "identity"
      - filter: router
        routes:
          - path_prefix: "/"
            cluster: backend
      - filter: load_balancer
        clusters:
          - name: backend
            endpoints:
              - "127.0.0.1:3000"

insecure_options:
  allow_private_endpoints: true # example proxies to local backends