]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: acme: handle multiple auth with the same name
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 21 Nov 2025 11:10:21 +0000 (12:10 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 21 Nov 2025 11:28:41 +0000 (12:28 +0100)
In case of the dns-01 challenge, it is possible to have a domain
"example.com" and "*.example.com" in the same request. This will create
2 different auth objects, which need 2 different challenges.

However the associated domain is "example.com" for both auth objects.

When doing a "challenge_ready", the algorithm will break at the first
domain found. But since you can have multiple time the same domain in
this case, breaking at the first one prevent to have all auth objects in
a ready state.

This patch just remove the break so we can loop on every auth objects.

Must be backported to 3.2.

src/acme.c

index f649ba72fdb9651ad74c3a38cc6bc15415fa8490..787f3612eddd5bbd0f1fb7172c82a446cf487a1d 100644 (file)
@@ -2890,7 +2890,6 @@ static int cli_acme_chall_ready_parse(char **args, char *payload, struct appctx
                                } else {
                                        memprintf(&errmsg, "ACME challenge for crt \"%s\" and dns \"%s\" was already READY !\n", crt, dns);
                                }
-                               break;
                        }
                        auth = auth->next;
                }