]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: acme: better error/retry management of the challenge checks
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 24 Apr 2025 17:58:56 +0000 (19:58 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 24 Apr 2025 18:14:47 +0000 (20:14 +0200)
commit27b732a6619bb64bf92da2f1a442702dad912ec2
tree117b2337867e5d3446fc6d3731d9be59850a7eae
parent0909832e74828890e35e48494e872d8ae323bdae
MEDIUM: acme: better error/retry management of the challenge checks

When the ACME task is checking for the status of the challenge, it would
only succeed or retry upon failure.

However that's not the best way to do it, ACME objects contain an
"status" field which could have a final status or a in progress status,
so we need to be able to retry.

This patch adds an acme_ret enum which contains OK, RETRY and FAIL.

In the case of the CHKCHALLENGE, the ACME could return a "pending" or a
"processing" status, which basically need to be rechecked later with the
RETRY. However a "invalid" or "valid" status is final and will return
either a FAIL or a OK.

So instead of retrying in any case, the "invalid" status will ends the
task with an error.
src/acme.c