MINOR: jwt: Insert public certificates into dedicated JWT tree
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Fri, 1 Oct 2021 13:36:56 +0000 (15:36 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 14 Oct 2021 14:38:12 +0000 (16:38 +0200)
commit864089e0a603c733c88256ba14051e974bcff456
treeb646b2f8459fec2a8bbb41844dea682d1525158b
parente0d3c0008690b9fa076172d8c31bf0e1d383cd55
MINOR: jwt: Insert public certificates into dedicated JWT tree

A JWT signed with the RSXXX or ESXXX algorithm (RSA or ECDSA) requires a
public certificate to be verified and to ensure it is valid. Those
certificates must not be read on disk at runtime so we need a caching
mechanism into which those certificates will be loaded during init.
This is done through a dedicated ebtree that is filled during
configuration parsing. The path to the public certificates will need to
be explicitely mentioned in the configuration so that certificates can
be loaded as early as possible.
This tree is different from the ckch one because ckch entries are much
bigger than the public certificates used in JWT validation process.
include/haproxy/jwt-t.h
include/haproxy/jwt.h
src/jwt.c