From: William Lallemand Date: Tue, 24 Nov 2026 15:41:34 +0000 (+0000) Subject: DOC: lua: document wildcard ACME authorization readiness X-Git-Url: https://git.kaiwu.me/http/%7B@url%7D?a=commitdiff_plain;h=efcc371880dbdf0e6bc1c1375086fa88747095b2;p=haproxy.git DOC: lua: document wildcard ACME authorization readiness Describe the literal *.domain identifier accepted by ACME.challenge_ready(), the wildcard deployment-event flag, and the unchanged base-domain field used for DNS publication. Explain that each pending apex or wildcard authorization must be acknowledged separately and that their TXT tokens share the same DNS owner. No backport is needed: ACME.challenge_ready() and the deployment events were introduced in 3.5. This documents the preceding wildcard readiness API fix. --- diff --git a/doc/lua-api/index.rst b/doc/lua-api/index.rst index 1bd9be23c..bd8f581bb 100644 --- a/doc/lua-api/index.rst +++ b/doc/lua-api/index.rst @@ -4874,8 +4874,14 @@ ACME class and validation has been triggered. Raises a Lua error if the certificate or domain is not found. + The domain is an exact authorization identifier. Use ``example.com`` for + the non-wildcard authorization and ``*.example.com`` for the wildcard + authorization. The ``*.`` prefix is literal, not a matching pattern; a bare + ``*`` does not select all challenges. When both authorizations are pending, + each must be acknowledged separately after publishing its TXT value. + :param string crt: The filename of the certificate. - :param string dns: The domain name for which the challenge is ready. + :param string dns: The exact domain identifier, including ``*.`` for a wildcard. :returns: The number of remaining challenges (integer), or 0 when all challenges are done and validation has been triggered. @@ -4896,7 +4902,19 @@ See :js:func:`core.event_sub()` for more info. .. js:attribute:: AcmeEvent.domain - Contains the domain being challenged. + Contains the base domain being challenged, without a wildcard prefix. Both + ``example.com`` and ``*.example.com`` authorizations have ``example.com`` + here, and publish TXT values at ``_acme-challenge.example.com``. + + Only available for **ACME_DEPLOY** events. + +.. js:attribute:: AcmeEvent.wildcard + + Boolean indicating whether the authorization covers ``*.domain``. Construct + the identifier for :js:func:`ACME.challenge_ready` by prepending ``*.`` to + ``domain`` only when this field is true. Do not add this prefix to the DNS + TXT record owner. Preserve other TXT values when publishing a token: apex + and wildcard authorizations can require different values at the same owner. Only available for **ACME_DEPLOY** events.