Skip to content

Commit 58bcf95

Browse files
authored
Merge pull request #36272 from bmcelvee/OSDOCS-2629
OSDOCS-2629: Document enabling http-ignore-probes and dontlognull as defaults
2 parents e299851 + 16ec5f0 commit 58bcf95

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

modules/nw-ingress-controller-configuration-parameters.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,24 @@ supports up to `64` threads. If this field is empty, the Ingress Controller uses
185185
* `tlsInspectDelay` specifies how long the router can hold data to find a matching route. Setting this value too short can cause the router to fall back to the default certificate for edge-terminated or reencrypted routes, even when using a better matched certificate. If unset, the default inspect delay is `5s`.
186186

187187
* `tunnelTimeout` specifies how long a tunnel connection, including websockets, remains open while the tunnel is idle. If unset, the default timeout is `1h`.
188+
189+
|`logEmptyRequests`
190+
|`logEmptyRequests` specifies connections for which no request is received and logged. These empty requests come from load balancer health probes or web browser speculative connections (preconnect) and logging these requests can be undesirable. However, these requests can be caused by network errors, in which case logging empty requests can be useful for diagnosing the errors. These requests can be caused by port scans, and logging empty requests can aid in detecting intrusion attempts. Allowed values for this field are `Log` and `Ignore`. The default value is `Log`.
191+
192+
The `LoggingPolicy` type accepts either one of two values:
193+
194+
* `Log`: Setting this value to `Log` indicates that an event should be logged.
195+
* `Ignore`: Setting this value to `Ignore` sets the `dontlognull` option in the HAproxy configuration.
196+
197+
|`HTTPEmptyRequestsPolicy`
198+
|`HTTPEmptyRequestsPolicy` describes how HTTP connections are handled if the connection times out before a request is received. Allowed values for this field are `Respond` and `Ignore`. The default value is `Respond`.
199+
200+
The `HTTPEmptyRequestsPolicy` type accepts either one of two values:
201+
202+
* `Respond`: If the field is set to `Respond`, the Ingress Controller sends an HTTP `400` or `408` response, logs the connection if access logging is enabled, and counts the connection in the appropriate metrics.
203+
* `Ignore`: Setting this option to `Ignore` adds the `http-ignore-probes` parameter in the HAproxy configuration. If the field is set to `Ignore`, the Ingress Controller closes the connection without sending a response, then logs the connection, or incrementing metrics.
204+
205+
These connections come from load balancer health probes or web browser speculative connections (preconnect) and can be safely ignored. However, these requests can be caused by network errors, so setting this field to `Ignore` can impede detection and diagnosis of problems. These requests can be caused by port scans, in which case logging empty requests can aid in detecting intrusion attempts.
188206
|===
189207

190208

0 commit comments

Comments
 (0)