]> git.kaiwu.me - haproxy.git/commitdiff
DOC: configuration: warn against using SSLKEYLOGFILE
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 27 Nov 2026 14:36:48 +0000 (14:36 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 27 Nov 2026 14:42:45 +0000 (15:42 +0100)
OpenSSL builds with native SSLKEYLOGFILE support can write TLS secrets
directly to a file. This bypasses HAProxy logging, causes filesystem
access in the traffic path and degrades performance. In master-worker
mode, the keylog file descriptor also leaks across reloads.

Document that this environment variable is unsupported and direct users
to tune.ssl.keylog and the existing sample fetches instead.

This documentation update must be backported to all stable branches.

doc/configuration.txt

index 265630f6113243464c4248c75b51f41e90746be7..cc84f9ae521bb88a5962a772dbccc407be6f9d3e 100644 (file)
@@ -6022,6 +6022,11 @@ tune.ssl.keylog { on | off }
   care as it will consume more memory per SSL session and could decrease
   performances. This is disabled by default.
 
+  The SSLKEYLOGFILE environment variable is not supported by HAProxy. It
+  causes filesystem access and degrades performance. In master-worker mode,
+  it also leaks file descriptors on each reload. Use "tune.ssl.keylog on"
+  and the sample fetches below instead.
+
   These sample fetches should be used to generate the SSLKEYLOGFILE that is
   required to decipher traffic with wireshark.