]> git.kaiwu.me - haproxy.git/commitdiff
DOC: lua: document wildcard ACME authorization readiness
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 24 Nov 2026 15:41:34 +0000 (15:41 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 24 Nov 2026 15:48:47 +0000 (16:48 +0100)
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.

doc/lua-api/index.rst

index 1bd9be23c4e791b7dc4c3dbb2546a28f898ee2eb..bd8f581bb8fdb7217d3e62689669e90d46ea1fd1 100644 (file)
@@ -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.