Skip to main content

Ports and TLS Configuration

You're reading API Gateway 2026.10.0. The newest release is 1.2.0. Go to the newest release

This page lists every port the API Platform Gateway listens on, explains how to turn on Transport Layer Security (TLS) for each one, and covers the cipher suites and post-quantum key exchange settings for the Gateway Controller, router, and Policy Engine.

Listener ports​

Router ports​

PurposeDefault portProtocolConfig key
Incoming HTTP traffic8080Plaintextrouter.listener_port
Incoming HTTPS traffic8443TLSrouter.https_port, router.https_enabled

Gateway Controller ports​

PurposeDefault portProtocolConfig key
REST management API9090Plaintextcontroller.server.api_port
REST management API, TLS9093TLS, off by defaultcontroller.server.tls.port, .enabled
Admin server (/health, /config_dump)9092Plaintextcontroller.admin_server.port
Configuration for the Policy Engine (gRPC)18001Plaintext by default, switches to mTLS in placecontroller.policy_server.port, .tls.enabled
Prometheus metrics9091Plaintext, disabled by defaultcontroller.metrics.port, .enabled
Configuration for the router (gRPC)18000Plaintext by default, switches to mTLS in placecontroller.server.xds_port, controller.server.xds_tls.enabled
Admin and metrics ports

controller.admin_server is enabled by default because it serves /health, which Kubernetes liveness and readiness probes use. The /config_dump route stays off unless you enable it separately. controller.metrics is disabled by default.

The Docker Compose setup publishes the admin server's port 9092 on host port 9094, so it's reachable from the host at 9094. Health checks that run inside the container or a Kubernetes pod use 9092; see Health Checks.

Policy Engine ports​

PurposeDefault portProtocolConfig key
Admin server (/health, /config_dump)9002Plaintextpolicy_engine.admin.port
Admin server, TLS9004TLS, off by defaultpolicy_engine.admin.tls.port, .enabled
Prometheus metrics9003Plaintext, disabled by defaultpolicy_engine.metrics.port, .enabled
Admin port

The Policy Engine's admin server is enabled by default, for the same /health probe reason as the Gateway Controller's. Its metrics endpoint is disabled by default.

Enabling TLS on a listener​

There are two ways TLS is added to a plaintext port.

Adding a second TLS listener​

The Gateway Controller's REST API (controller.server.tls) and the Policy Engine's admin server (policy_engine.admin.tls) work this way: the plaintext port keeps working, and enabling TLS opens an additional port serving the same routes. No certificate is provisioned by default for either, so both stay off until you set enabled = true and point cert_path/key_path at a certificate and key.

Switching a port to mutual TLS in place​

The Gateway Controller's configuration ports for the router (controller.server.xds_tls) and the Policy Engine (controller.policy_server.tls) work this way, with no second port. Because these connections carry route configuration, secrets, and policy chains, there's no server-only TLS mode: enabling TLS requires a certificate, a key, and a client CA bundle (client_ca_file). The connecting component (the router or the Policy Engine) needs a matching client certificate whose identity appears in allowed_client_identities, or the connection is refused.

The router's listener and its Policy Engine connection​

The router's HTTPS listener (router.https_enabled, on by default) and its connection to the Policy Engine (router.policy_engine.tls, off by default) are configured the same way as any other listener: an enabled flag plus certificate paths. For provisioning the router's HTTPS certificate, including the one-time setup script and production certificate options (cert-manager or an existing Kubernetes secret), see Gateway Configuration and Environment Interpolation and Security Hardening.

Cipher suites​

Cipher suite names​

The router and the other gateway components use different cipher suite naming schemes:

ComponentTLS sectionsCipher suite names
Routerrouter.downstream_tls, router.upstream.tlsOpenSSL-style, for example ECDHE-ECDSA-AES128-GCM-SHA256
Gateway Controller and Policy Enginecontroller.server.tls, controller.server.xds_tls, controller.policy_server.tls, policy_engine.admin.tls, policy_engine.xds.tls, both outbound http_client.tls sectionsIANA names, for example TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256

Protocol version bounds​

The outbound client sections (controller.http_client.tls, policy_engine.http_client.tls) bound the TLS version with min_version and max_version. Every other TLS section uses minimum_protocol_version and maximum_protocol_version. Each takes one of TLS1_0, TLS1_1, TLS1_2, or TLS1_3, and the default range is TLS1_2 to TLS1_3 everywhere.

The cipher suite list is cipher_suites in the outbound client sections and ciphers everywhere else: a comma-separated list restricting which suites that listener or client negotiates. This list only affects TLS 1.2 and below; TLS 1.3 cipher suites aren't configurable.

Default cipher list​

router.downstream_tls.ciphers and router.upstream.tls.ciphers default to the same 12-suite list:

ECDHE-ECDSA-AES128-GCM-SHA256,ECDHE-RSA-AES128-GCM-SHA256,ECDHE-ECDSA-AES128-SHA,
ECDHE-RSA-AES128-SHA,AES128-GCM-SHA256,AES128-SHA,ECDHE-ECDSA-AES256-GCM-SHA384,
ECDHE-RSA-AES256-GCM-SHA384,ECDHE-ECDSA-AES256-SHA,ECDHE-RSA-AES256-SHA,
AES256-GCM-SHA384,AES256-SHA

The Gateway Controller and Policy Engine leave ciphers/cipher_suites empty by default, which applies a secure built-in default set.

Unknown router cipher names

An unsupported name in a router ciphers list isn't reported when you save config.toml. The router rejects the configuration when it's applied.

Post-quantum cryptography​

What changes with post-quantum cryptography​

Post-quantum cryptography (PQC) protects today's TLS key exchange against a future attacker with a quantum computer. Every TLS section on this page has an ecdh_curves (listeners) or curve_preferences (outbound clients) field: a comma-separated list of TLS 1.3 key-exchange groups, most preferred first. Alongside the classical curves X25519, P-256, P-384, and P-521, the gateway supports the hybrid group X25519MLKEM768, which combines X25519 with ML-KEM-768, the key-encapsulation mechanism standardized in FIPS 203. A peer that doesn't support the hybrid group falls back to a later, classical entry in the same list, so adding it doesn't break older clients.

Defaults by listener​

Listener or clientecdh_curves / curve_preferences defaultPQC on by default
controller.server.tls (REST API, TLS listener)X25519MLKEM768,X25519,P-256Yes
controller.server.xds_tlsX25519MLKEM768,X25519,P-256Yes
controller.policy_server.tlsX25519MLKEM768,X25519,P-256Yes
policy_engine.admin.tlsX25519MLKEM768,X25519,P-256Yes
policy_engine.xds.tls (client to the Gateway Controller)X25519MLKEM768,X25519,P-256Yes
controller.http_client.tlsEmpty (X25519MLKEM768 first, then classical curves)Yes
policy_engine.http_client.tlsEmpty (X25519MLKEM768 first, then classical curves)Yes
router.downstream_tlsX25519,P-256No
router.upstream.tlsX25519,P-256No

Enabling it on the router​

The router's listeners (router.downstream_tls, router.upstream.tls) default to classical curves only. To enable the hybrid group, set it explicitly:

[router.downstream_tls]
ecdh_curves = "X25519MLKEM768,X25519,P-256"

[router.upstream.tls]
ecdh_curves = "X25519MLKEM768,X25519,P-256"

If the router doesn't support a configured group, it rejects the configuration and keeps running with its previous configuration, and later configuration changes don't apply until you correct the value. Confirm that the router image you deploy supports X25519MLKEM768 before enabling it in production, and roll the change out the same way as any other configuration change.

Post-quantum cryptography for outbound clients​

The outbound HTTP clients (controller.http_client.tls.curve_preferences, policy_engine.http_client.tls.curve_preferences) default to empty, which offers X25519MLKEM768 first and falls back to classical curves for destinations that don't support it. Set the list only to change the order or restrict the groups offered. See Outbound HTTP Client and Proxy Configuration.

Kubernetes with Helm​

Most settings on this page are controlled through Helm values under gateway.config.router.*, gateway.config.controller.*, and gateway.config.policy_engine.*, the same pattern Configuring Timeouts uses. For example:

gateway:
config:
router:
listener_port: 8080
https_enabled: true
https_port: 8443
downstream_tls:
ciphers: "ECDHE-ECDSA-AES128-GCM-SHA256,ECDHE-RSA-AES128-GCM-SHA256"
controller:
server:
api_port: 9090
tls:
enabled: true
port: 9093
ecdh_curves: "X25519MLKEM768,X25519,P-256"

The chart renders these values into the gateway's config.toml. Provisioning the certificate the chart references (through cert-manager or an existing Kubernetes secret) is covered in Security Hardening.

Router key-exchange groups with Helm

The Helm chart doesn't expose ecdh_curves for router.downstream_tls or router.upstream.tls, so a gateway deployed with the chart uses the router's default classical curves (X25519,P-256).

Was this page helpful?