]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: lua: handle apex and wildcard challenges in Gandi example
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 24 Nov 2026 15:41:29 +0000 (15:41 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 24 Nov 2026 15:48:46 +0000 (16:48 +0100)
commit6d887f9b4ebd6c2ea0635c94b6f0392c537cec47
tree970e9989c64a8e3c59bbb968d9e09922f9697732
parent6fd03f9fb817bb69c528c3ae3e60129d7b3f8996
BUG/MEDIUM: lua: handle apex and wildcard challenges in Gandi example

The Gandi deployment callback acknowledges wildcard authorizations using
the base domain and overwrites the TXT RRset with one token at a time. A
certificate covering both identifiers can therefore lose a required
token or leave its wildcard authorization waiting.

Accumulate tokens per certificate and base domain, publish the complete
list, and serialize yielding PUTs with a queue-backed lock. Release the
lock on HTTP errors and acknowledge wildcard authorizations using their
literal *.domain identifier. Remove the pre-publication DELETE and skip
cleanup for records that were never deployed.

The example remains dependency-free. Its existing ownership limitation
is unchanged: publication replaces unrelated TXT values and cleanup
removes the whole RRset.

No backport is needed: the Gandi example was introduced in 3.5 by
d2c9bf70e5 ("EXAMPLES: lua/acme: add a dns-01 handler for Gandi LiveDNS
API"). It requires the preceding wildcard readiness API fix.
examples/lua/acme-gandi-livedns.lua