]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: jwt: don't try to load files with HMAC algorithm
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 3 Jul 2024 10:35:50 +0000 (12:35 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 3 Jul 2024 10:35:50 +0000 (12:35 +0200)
commit883f1bdbcec7882a2e4a257e93f92be604467319
tree5717a46aec8e86c229c6213d221c1e0e8c3f0178
parent50ae717624875cd36aac290ac5953062ee7de692
BUG/MINOR: jwt: don't try to load files with HMAC algorithm

When trying to use a HMAC algorithm (HS256, HS384, HS512) the
sample_conv_jwt_verify_check() function of the converter tries to load a
file even if it is only supposed to contain a secret instead of a path.

When using lua, the check function is called at runtime so it even tries
to load file at each call... This fixes the issue for HMAC algorithm
but this is still a problem with the other algorithms, since we don't
have a way of pre-loading files before the call.

Another solution must be found to prevent disk IO with lua using other
algorithms.

Must be backported as far as 2.6.
src/sample.c