]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: acme: match DNS challenges against all TXT records
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 23 Nov 2026 18:07:54 +0000 (18:07 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 24 Nov 2026 09:25:04 +0000 (10:25 +0100)
commitc005617716521ebf8ef4b3afbe46bacb93cd68f4
tree244f66870e2cf596d989a29a4936b1ff29b2bf2e
parente2ff0935324be8f4f41d542468e5f05d556fcb06
BUG/MEDIUM: acme: match DNS challenges against all TXT records

A certificate covering a domain and its wildcard requires two dns-01 TXT
values at the same _acme-challenge name. The DNS parser retains both
records, but the ACME resolver callback only copied the first one. With
challenge-ready dns, one authorization could therefore never match its
expected value and renewal would time out.

Copy all TXT records into an owned singly linked list in one response-tree
traversal, using istdup() for each value. Match each challenge against any
entry and free the complete list on replacement, allocation failure, and
resolver teardown. Keep successful empty-list responses valid as before
and leave CLI readiness unchanged.

This should be backported to 3.4, where the DNS propagation pre-check was
introduced by 631fd5f99b.
doc/configuration.txt
include/haproxy/acme_resolvers-t.h
src/acme.c
src/acme_resolvers.c