Class AbstractTransportLayerTest
java.lang.Object
org.apache.kafka.common.network.AbstractTransportLayerTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidWhen PROXY was expected and processed but has no client info (fallback), enableIpFiltering() should return false (fail open) — this is the existing behavior.voidWhen PROXY processing was skipped (peer not in range), enableIpFiltering() should return true so the peer IP (which IS the real client IP) gets filtered.voidWhen no accepted IP range is configured, PROXY header processing should proceed unconditionally.voidWhen the peer IP IS in the accepted range, PROXY header processing should proceed normally (processHeaders is called, skipProcessing is not).voidWhen the peer IP is NOT in the accepted range, PROXY header processing should be skipped and the engine should be marked as skipped.
-
Constructor Details
-
AbstractTransportLayerTest
public AbstractTransportLayerTest()
-
-
Method Details
-
testMaybeReadAndProcessProxyHeaders_peerNotInRange_skipsProcessing
-
testMaybeReadAndProcessProxyHeaders_peerInRange_processesHeaders
-
testMaybeReadAndProcessProxyHeaders_noRangeConfigured_processesNormally
-
testEnableIpFiltering_proxySkipped_returnsTrue
-
testEnableIpFiltering_proxyFallbackNoClientInfo_returnsFalse
-