ON-PREM CHOREO CLOUD BOTH

What it is

The gateway-controller is the local control brain of one gateway. It connects to AMS over a WebSocket, downloads the definitions of LLM providers, proxies and agents, and turns them into configuration for the router and policy engine. It stores state in a small database.

Why it exists

The runtime pod needs live configuration without restarts. The controller keeps it in sync with AMS.

How it works

  • Serves a management REST API on port 9090, Envoy xDS on 18000 and policy xDS on 18001.
  • Dials AMS on port 9243 (by default; 9000 if TLS is switched off in the chart), answers AMS's pings and reconnects with backoff from 1 second to 5 minutes.
  • On each connect it posts a manifest listing its policies, so the console only offers the guardrails that the gateways report.
  • On startup it fetches the current deployments and compares them with its own state. AMS answers that call with an empty list in this version.
  • If AMS answers 401, 403, 404, 409 or 422, it exits, because those are treated as permanent failures.

Identity and access

It authenticates to AMS with the api-key header carrying its registration token. TLS verification is skipped for the in-cluster self-signed certificate.

Key facts

Ports
REST 9090, xDS 18000 and 18001
State
SQLite on a 100Mi volume (on-prem)
Replicas
1
Side
Data plane (gateway)
Namespace
<org>-<env>

Talks to (8)

  • calls AMS internal server :9243
    Config and event channel; the gateway controller opens the WebSocket to AMS and events then reach it over that connection
    WSS :9243 /api/internal/v1/ws/gateways/connect
  • calls AMS internal server :9243
    Artifact fetch, key sync, manifest push
    HTTPS REST /api/internal/v1
  • deploys to API Platform Gateway runtime (APG)
    The gateway controller hosts the xDS servers (18000 for the router, 18001 for the policy engine); the router and policy engine open the connections to them and receive their config over them
    xDS gRPC 18000/18001
  • calls AMS internal server :9243
    Control channel; falls back after failed well-known discovery
    WSS /api/internal/v1/ws/gateways/connect
  • calls AMS internal server :9243
    Fetch artifact ZIPs, api-keys, deployments; POST manifest
    HTTPS REST /api/internal/v1
  • reads from Gateway controller SQLite store
    Persists artifacts, keys, secrets
    SQLite
  • calls APG router (Envoy 1.39.0)
    Pushes listeners, routes, clusters, SDS
    Envoy xDS ADS :18000
  • calls APG policy engine
    Pushes chains, route config, api key hashes, subscriptions
    policy xDS :18001

Used by (2)

Inside and around

Part of: cloud-dp-oc-dp (customer data plane)