GATEWAY_PORT_*, GATEWAY_ADVERTISED_HOST, GATEWAY_ROUTING_MECHANISM and GATEWAY_SECURITY_PROTOCOL environment variables. This legacy network configuration was deprecated in Gateway 3.20.0 and removed in Gateway 3.23.0.
This page documents how it behaves on Gateway versions earlier than 3.23.0. To switch to listener configuration, see Migrate to listener configuration.
Detect which mode you’re running
Gateway detects the configuration mode automatically at startup based on the environment variables you set:
On Gateway 3.20.0 to 3.22.x, legacy network configuration logs a deprecation warning at startup. Its presence in the logs confirms the mode is active:
DEFAULT, so the Computed configuration block lists a DEFAULT listener in both legacy and listener configuration. The deprecation warning is what distinguishes the two.
How the legacy mode behaves
In legacy network configuration, Gateway infers missing security settings from the backing Kafka cluster.Security mode and protocol inference
How Gateway determines default values forGATEWAY_SECURITY_PROTOCOL and GATEWAY_SECURITY_MODE depends on which of the two are explicitly set.
Both GATEWAY_SECURITY_PROTOCOL and GATEWAY_SECURITY_MODE unset: Gateway infers both from the Kafka cluster’s security protocol.
If no security protocol is configured on the backing Kafka cluster, Gateway defaults to
PLAINTEXT with GATEWAY_MANAGED mode.
Only GATEWAY_SECURITY_MODE set: Gateway infers the protocol from the combination.
Only
GATEWAY_SECURITY_PROTOCOL set: Gateway infers the mode from the protocol.
The
DELEGATED_SASL_PLAINTEXT and DELEGATED_SASL_SSL values are deprecated in favor of GATEWAY_SECURITY_MODE.ACL default
GATEWAY_ACL_ENABLED is inferred from the security mode:
GATEWAY_MANAGED→trueKAFKA_MANAGED→false
false. You can override the inferred value by setting GATEWAY_ACL_ENABLED explicitly.
Legacy environment variable reference
For reference, these are the environment variables that listener configuration replaces.GATEWAY_MIN_BROKERID is unchanged and still applies to port routing under listener configuration. See Gateway environment variables.
Related resources
- Migrate to listener configuration: variable mapping and a worked example
- Configure Gateway listeners
- Configure Gateway listener security
- Define Gateway environment variables