]> git.kaiwu.me - haproxy.git/commit
MEDIUM: ssl: Add a way to rate-limit TLSv1.3 KeyUpdate
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 23 Jul 2026 13:31:18 +0000 (15:31 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 23 Jul 2026 22:31:37 +0000 (00:31 +0200)
commit91004114fe8816f848025fe71def4ea23e72a5f6
tree606d013643d1f4ec8c31b7fc021fb612378b5d25
parentda4e71d6d647d6f60d24fbdaba489c04fd275844
MEDIUM: ssl: Add a way to rate-limit TLSv1.3 KeyUpdate

Processing TLSv1.3 KeyUpdate is expensive in term of CPU, and in normal
usage there is very few reason to get a lot of them. So add a new
keyword, tune.ssl.keyupdate-rate-limit, that gives the maximum number of
KeyUpdate we're okay with receiving per second. The default is 100,
which should be enough. 0 means no rate-limiting at all.

This should mitigate the problem reported in Github issue #3450.

This should be backported as far back as 2.8.
include/haproxy/connection-t.h
include/haproxy/ssl_sock-t.h
src/cfgparse-ssl.c
src/connection.c
src/ssl_sock.c