]> git.kaiwu.me - haproxy.git/commit
MINOR: ssl/log: add keylog format variables and env vars
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 1 Apr 2026 08:56:24 +0000 (10:56 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 1 Apr 2026 14:28:49 +0000 (16:28 +0200)
commitc8bfd06b575ee106b52a31c7075aae200796329f
treecf46eccce14556bfdc8d2298baebebb59ac71f2e
parente264523112b94ceacf34428d1bdd4e8eea4a813d
MINOR: ssl/log: add keylog format variables and env vars

Add keylog_format_fc and keylog_format_bc global variables containing
the SSLKEYLOGFILE log-format strings for the frontend (client-facing)
and backend (server-facing) TLS connections respectively. These produce
output compatible with the SSLKEYLOGFILE format described at:
https://tlswg.org/sslkeylogfile/draft-ietf-tls-keylogfile.html

Both formats are also exported as environment variables at startup:
  HAPROXY_KEYLOG_FC_LOG_FMT
  HAPROXY_KEYLOG_BC_LOG_FMT

These variables contains \n so they might not be compatible with syslog
servers, using them with stderr or a sink might be required.

These can be referenced directly in "log-format" directives to produce
SSLKEYLOGFILE-compatible output, usable by network analyzers such as
Wireshark to decrypt captured TLS traffic.
doc/configuration.txt
examples/keylog-test.cfg [new file with mode: 0644]
include/haproxy/log.h
src/haproxy.c
src/log.c