Skip to content

Repository files navigation

dxgate logo

CI license Rust: 1.88+

dxgate is the delegated gateway for Dubbo Gateway API traffic and the external data-plane proxy of the Apache Dubbo Kubernetes project. It consumes control-plane configuration from dubbod as a router xDS client.

The same mesh path carries ordinary Kubernetes HTTP services plus OpenAI-compatible and Anthropic LLM routing, MCP federation, A2A forwarding, reusable policies, and richer metrics.

Features

  • Dubbo Gateway API data plane — HTTP routing by host, path, and header with weighted clusters, driven by dubbod over xDS (listeners, clusters, endpoints).
  • gRPC / Dubbo Triple / HTTP/2 — end-to-end HTTP/2 pass-through with streaming bodies and trailer propagation; gRPC and Triple requests (detected by content-type) are proxied over HTTP/2 automatically, and http2: true on a cluster forces h2c/ALPN h2 for plain HTTP upstreams.
  • Upstream TLS — plaintext, simple TLS, and Dubbo mutual TLS (certificates from the file-watcher bootstrap named by GRPC_XDS_BOOTSTRAP), with peer identity pinned to the cluster's subject_alt_names (SPIFFE URI SANs).
  • LLM routing — OpenAI-compatible /v1/* routing with model-aware backend selection and streaming (SSE) pass-through.
  • MCP routing and federationmcp-session-id session-to-backend binding and federated tools/list across multiple MCP backends.
  • A2A forwarding — agent-card and A2A endpoint routing.
  • Reusable policies — API-key / JWT auth, rate limiting, retries, timeouts, request/response header transforms, body-size limits, allow/deny.
  • Resilience — per-cluster circuit breakers, consecutive-5xx outlier ejection, and retry with failover across weighted backends; SIGTERM drains in-flight requests before exit.
  • Observability — Prometheus metrics, W3C trace propagation with OTLP export, structured access logs, and a built-in web UI.
  • One mesh API and control plane — ordinary HTTPRoute backends use core Kubernetes Service; LLM, MCP, and A2A backends use networking.dubbo.apache.org/v1alpha3 DxgateService. dubbod validates and compiles both into RDS, and dxgate consumes the result over xDS. dxgate watches no private routing CRDs; Kubernetes access is limited to referenced Secret values.

License

Apache License 2.0, see LICENSE.

About

The delegated gateway for Dubbo service mesh

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages