Endpoint Selector

Selects an upstream endpoint from a trusted mutation source (e.g. external processing)

Category: Setup-dependent integration
Task: Selects an upstream endpoint from a trusted mutation source (e.g. external processing)

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

Run it: Use ghcr.io/praxis-proxy/praxis:0.7.2 and follow the first reverse-proxy tutorial 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.

# Endpoint Selector
#
# Selects an upstream endpoint from a trusted mutation
# source (e.g. external processing). Client-supplied header values
# are ignored to prevent SSRF. When no trusted value is
# present and required is false, the request falls
# through to the normal router/load_balancer pipeline.
#
listeners:
  - name: default
    address: "127.0.0.1:8080"
    filter_chains:
      - main

filter_chains:
  - name: main
    filters:
      - filter: endpoint_selector
        source_header: x-gateway-destination
        strip_header: true
        required: false
        connection:
          connection_timeout_ms: 1000
          total_connection_timeout_ms: 2000

      - 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