]> git.kaiwu.me - haproxy.git/commit
MINOR: jwt: Add rwlock to jwt_cert_tree
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 18 Nov 2026 14:09:29 +0000 (15:09 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 20 Nov 2026 08:35:41 +0000 (09:35 +0100)
commit620a94b8f496f3f476c62e5d1b97ef826f9bfad8
tree728c35399660a237b884fe6fb7c755bfdbbe5105
parentf1ab8bbf6fd5f0ce825ece36cd58c78cb445a506
MINOR: jwt: Add rwlock to jwt_cert_tree

The jwt_cert_tree that stores pure public keys loaded during init and is
used by the jwt_verify converter was never locked since we only appended
entries during init and never modified them during runtime.
In future commits its usage will be extended so it will need a locking
mechanism. The tree will only change following CLI updates so a rwlock
should do the job since mos of the work will be done under a read lock
only.
include/haproxy/thread-t.h
src/jwt.c
src/thread.c