Component ยท Control side
AMS internal server :9243
BOTH Service Control plane
What it is
The AMS internal server is a second HTTPS server inside AMS, on port 9243. It exists only for API Platform Gateways. Gateways keep a WebSocket open to it for live updates and call its internal REST routes to fetch policies, keys and API definitions.
Why it exists
Gateway traffic is machine-to-machine and needs different authentication from human users. A separate port keeps it away from the public API.
How it works
- Gateway controllers connect to wss://<host>:9243/api/internal/v1/ws/gateways/connect.
- After the connection, AMS sends an acknowledgement and marks the gateway active. AMS pings the gateway every 20 seconds and drops the connection if no reply comes within its timeout (30 seconds by default).
- The same port serves REST routes to download LLM provider, LLM proxy, MCP proxy and agent definitions, and to receive a gateway's policy manifest.
- The chart exposes it as the service amp-api-gateway-manager.
- In-cluster it uses a self-signed certificate and the gateway skips verifying it.
Identity and access
Gateways send an api-key header holding their registration token. AMS stores only a salted sha256 hash and compares it in constant time. JWTs are not used on this port.
Key facts
- Port
- 9243
- Protocol
- WebSocket and REST over TLS
- Auth
- api-key header
- Side
- Control plane
- Namespace
- wso2-amp
Talks to (1)
- reads from EventHub (Postgres-backed) Events fanned out to gateway WSPostgres poll
Used by (4)
- called by APG gateway-controller Config and event channel; the gateway controller opens the WebSocket to AMS and events then reach it over that connectionWSS :9243 /api/internal/v1/ws/gateways/connect
- called by APG gateway-controller Artifact fetch, key sync, manifest pushHTTPS REST /api/internal/v1
- called by APG gateway-controller Control channel; falls back after failed well-known discoveryWSS /api/internal/v1/ws/gateways/connect
- called by APG gateway-controller Fetch artifact ZIPs, api-keys, deployments; POST manifestHTTPS REST /api/internal/v1
Inside and around
Part of: agent-manager-service (AMS)