]> git.kaiwu.me - haproxy.git/commit
MINOR: jwt: Deprecate jwt_verify converter
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Fri, 20 Nov 2026 10:08:46 +0000 (11:08 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 20 Nov 2026 13:50:30 +0000 (14:50 +0100)
commit0be3050adfb75a886917655de644bd4c09b5e841
tree63bed7b6924b08630e007cfdd1a6bc749e520136
parent32bb9ecae26e452b91e92f3ed7a7c6310baf9953
MINOR: jwt: Deprecate jwt_verify converter

The 'jwt_verify' converter was built with the idea of being easy to use
for all JWT tokens and its second parameter needied to be interpreted
totally differently depending on the first parameter (HMAC vs pubkey
path). This comes with a potential security risk if a user did not check
the algorithm type before calling the converter. If an HMAC-signed token
was tested in a jwt_verify call that provided a certificate as second
parameter, an attacker could try to guess the certificate path and forge
HMAC tokens that validate against the certificate path.

In order to get rid of this potential risk, a new jwt_verify_secret
converter was introduced, and paired with the already existing
jwt_verify_cert one, we can fully get rid of this risk since no
parameter gets treated differently based off client-provided
information.
doc/configuration.txt
reg-tests/jwt/jws_verify.vtc
src/sample.c