]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: acme: can't override the default resolver
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 13 Nov 2025 16:17:11 +0000 (17:17 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 13 Nov 2025 16:17:11 +0000 (17:17 +0100)
commitb9b158ea4cc93ce0f48c3ac92b80dc270d4dbf68
treeb65ac2f0801b017abc4bc9dbd7bbb3a4aecb14db
parent2bdf5a7937ea76761cfe8c896951428d00e6b757
BUG/MINOR: acme: can't override the default resolver

httpclient_acme_init() was called in cfg_parse_acme() which is at
section parsing. httpclient_acme_init() also calls
httpclient_create_proxy() which could create a "default" resolvers
section if it doesn't exists.

If one tries to override the default resolvers section after an ACME
section, the resolvers section parsing will fail because the section was
already created by httpclient_create_proxy().

This patch fixes the issue by moving the initialization of the ACME
proxy to a pre_check callback, which is called just before
check_config_validity().

Must be backported in 3.2.
src/acme.c