Skip to main content

Client Traffic Policy Reference

Reference of the client traffic policy: how clients connect to a gateway. It is deployed as an Envoy Gateway ClientTrafficPolicy.

Policy Target​

FieldValuesMeaning
targetRef.kindGatewayA gateway
targetRef.nameNameThe gateway
targetRef.sectionNameName, optionalOne access point

Connection Fields​

These parameters protect the gateway itself from too many or too slow clients. They act before any route is chosen.

ParameterDefaultMeaning
maxConnectionsNo limitClients connected at the same time
connectionCloseDelay—Grace period before closing connections above the limit, such as 10s
requestReceivedTimeoutGateway defaultMaximum time to receive the request headers, such as 30s
idleTimeoutGateway defaultClose client connections idle for this long, such as 90s
Slow clients

requestReceivedTimeout is the defence against clients that open connections and send headers very slowly. Set it on public gateways.

TLS Fields​

These parameters decide which TLS handshakes the gateway accepts from clients. Tightening them improves security and may exclude old clients.

ParameterDefaultMeaning
tlsMinVersion1.2Lowest version a client may use
tlsMaxVersion1.3Highest version a client may use
tlsCiphersGateway defaultCipher suites for TLS 1.0 to 1.2. No effect on TLS 1.3
tlsEcdhCurvesGateway defaultECDH curves offered
tlsSignatureAlgorithmsGateway defaultSignature algorithms supported
tlsAlpnProtocolsGateway defaulth2, http/1.1, http/1.0
Raising the minimum version cuts off old clients

Setting tlsMinVersion to 1.3 refuses every client limited to TLS 1.2. Check the access logs for the versions in use before raising it.

Behavior and limits​

  • These settings apply to HTTPS and TLS-terminating access points. A TLS passthrough access point leaves the handshake to the backend.
  • A policy on one access point (sectionName) takes the place of the gateway-wide policy for that access point.

Procedure: Client traffic policy.