sandbox:
  enabled: false
supergraph:
  listen: "0.0.0.0:8080"
  introspection: false
  path: /graphql
  query_planning:
    cache:
      in_memory:
        limit: 1024
homepage:
  enabled: false
health_check:
  listen: "0.0.0.0:8080"
  enabled: true
headers:
  all:
    request:
      - propagate:
          matching: ".*"
      - remove:
          matching: ^x-datadog-.*$
include_subgraph_errors:
  all: true
telemetry:
  instrumentation:
    spans:
      mode: spec_compliant
  exporters:
    logging:
      stdout:
        enabled: true
        format: json
    tracing:
      common:
        resource:
          env: prod
          service.name: graphql-router
        service_name: graphql-router
      otlp:
        enabled: true
        protocol: http
        endpoint: "http://127.0.0.1:4318"

traffic_shaping:
  router:
    timeout: 65s
  all:
    timeout: 65s

plugins:
  theorchard.require_apollo_client_name:
    enabled: true
  pde.auth_enforcement:
    enabled: true
    rules:
      jwt:
        invalid_jwt: Warning
        expired_jwt: Warning
        issuers:
          - "https://login.distroauth.com/"
          - "https://workstation.auth0.com/"
        audiences:
          - "https://prod-ows.theorchard.io"
          - "https://workstation.theorchard.com/api"
      malformed_auth: Warning
      missing_auth: Warning
      multiple_auth: Warning
      unknown_auth: Warning
      hmac:
        hmac_use: Warning
        recipient_mismatch: Warning
