]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: acme: allow to wait and restart the task for DNS-01
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 1 Aug 2025 15:57:29 +0000 (17:57 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 1 Aug 2025 16:07:12 +0000 (18:07 +0200)
commit9ee14ed2d94ca3894d9927f6628ff488125f8f3d
treeabc22f321d61c96deb96ba80013220f9ec12ad61
parent3dde7626baa4881ee9addb21dc86f0b4c72f8be1
MEDIUM: acme: allow to wait and restart the task for DNS-01

DNS-01 needs a external process which would register a TXT record on a
DNS provider, using a REST API or something else.

To achieve this, the process should read the dpapi sink and wait for
events. With the DNS-01 challenge, HAProxy will put the task to sleep
before asking the ACME server to achieve the challenge. The task then
need to be woke up, using the command implemented by this patch.

This patch implements the "acme challenge_ready" command which should be
used by the agent once the challenge was configured in order to wake the
task up.

Example:
    echo "@1 acme challenge_ready foobar.pem.rsa domain kikyo" | socat /tmp/master.sock -
include/haproxy/acme-t.h
src/acme.c