From: Olivier Houchard Date: Wed, 25 Nov 2026 17:04:36 +0000 (+0100) Subject: BUG/MINOR: ssl/cli: don't clear the jwt flag on "add ssl crt-list" X-Git-Tag: v3.5-dev14~14 X-Git-Url: https://git.kaiwu.me/http/%22../static/ngx_http_proxy_module.html?a=commitdiff_plain;h=0b634287cccd0587ec7cde99495900bf2abf1877;p=haproxy.git BUG/MINOR: ssl/cli: don't clear the jwt flag on "add ssl crt-list" When a store without any instance takes the conf parsed from an "add ssl crt-list" line, its "jwt" flag is overwritten too, while the certificate is still in the JWT tree. After "add ssl jwt" followed by "add ssl crt-list", the certificate is no longer listed by "show ssl jwt", it can be deleted while in use for JWT validation, and the JWT tree is no longer updated when the certificate is. Let's keep the flag when it was set. This was introduced by commit 18ff130e9 ("MINOR: jwt: Add new "jwt" certificate option") in 3.3-dev10, so this should be backported to 3.3. --- diff --git a/src/ssl_crtlist.c b/src/ssl_crtlist.c index 758d2300d..a0399cb3e 100644 --- a/src/ssl_crtlist.c +++ b/src/ssl_crtlist.c @@ -1426,6 +1426,8 @@ static int cli_parse_add_crtlist(char **args, char *payload, struct appctx *appc old_cc = store->conf; store->conf = cc; + /* still in the JWT tree */ + store->conf.jwt |= old_cc.jwt; adopted = 1; /* fresh new, run more init (for example init ocsp-update tasks) */ cfgerr |= ckch_store_load_files(&cc, store, 1, "CLI", 1, &err);