]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: acme: read the wildcard flag from the authorization response
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 13 Apr 2026 16:49:53 +0000 (18:49 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 13 Apr 2026 16:49:53 +0000 (18:49 +0200)
The wildcard field was declared and used when building the dns-persist-01
TXT record value (policy=wildcard suffix), but was never populated from
the server's authorization response. Add the missing mjson_get_bool() call
to read $.wildcard before saving auth->dns.

src/acme.c

index 33fb8b6bd4600b01e8cfb70c84e23c5a249d6846..b92bf7ffb09e87eda9d045fee91e95f54c0cc022 100644 (file)
@@ -1785,6 +1785,8 @@ int acme_res_auth(struct task *task, struct acme_ctx *ctx, struct acme_auth *aut
        }
        t2->data = ret;
 
+       mjson_get_bool(hc->res.buf.area, hc->res.buf.data, "$.wildcard", &wildcard);
+
        auth->dns = istdup(ist2(t2->area, t2->data));
 
        ret = mjson_get_string(hc->res.buf.area, hc->res.buf.data, "$.status", trash.area, trash.size);