Remove bad check. (#1001)

The returned account URI can be intentionally different,
see Section 7.2.2 'Account URI Privacy':
https://www.ietf.org/archive/id/draft-ietf-acme-dns-persist-01.html#section-7.2.2
This commit is contained in:
Felix Fontein
2026-04-07 21:32:34 +02:00
committed by GitHub
parent bb40d15b45
commit bfce6df1bb

View File

@@ -123,14 +123,6 @@ class Challenge:
or not all(isinstance(idn, str) for idn in issuer_domain_names)
):
return None
if client.account_uri is not None and account_uri != client.account_uri:
# While the RFC doesn't demand this, I think it's a bad sign if the account URIs disagree.
# Better err on the side of caution...
client.module.warn(
f"The dns-persist-01 challenge for DNS:{identifier} has account URI {account_uri!r},"
f" while the client is has account URI {client.account_uri}. Ignoring malformed challenge."
)
return None
if not (1 <= len(issuer_domain_names) <= 10):
client.module.warn(
f"The dns-persist-01 challenge for DNS:{identifier} has {len(issuer_domain_names)}"