Enable CNAME chasing for ACME DNS-01 challenges
Maintainers usually reply within 1 day
@hslatman is already working on this.
Since Jun 17, 2025.
Assessment
This issue has not been assessed yet.
Description
Hello!
- Vote on this issue by adding a 👍 reaction
- If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)
Issue details
Currently the CA will only consider DNS TXT records using net.LookupTXT when validating DNS-01 challenges. This means that challenge validation doesn't work in cases where CNAME records are used.
Why is this needed?
In certain (network) configurations ACME DNS-01 is used with CNAME records. For example, when acme-dns is used to delegate ACME DNS record management to a DNS server specifically built for that purpose, the CNAME record points the acme-dns server, which serves the TXT record the ACME server needs to validate.
The ACME RFC doesn't mention CNAME records itself. LE's Boulder doesn't do CNAME chasing itself, but there are are few comments stating it delegates that function to the DNS resolvers it uses, so in practice it does resolve those to the actual TXT records. Enabling that in step-ca is thus in line with what LE does.
Also see https://github.com/smallstep/certificates/pull/1120 for an earlier PR implementing the fix. At the time we decided to close it, but I don't remember why.
- Dominant language
- Go
- Stars
- 8.9k
- Forks
- 599
- Avg merge
- 21h 20m
- Merged PRs (30d)
- 15
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from smallstep/certificates
-
bug needs triage
Difficulty 1/5 Under an hour Newbie friendliness 84/100
smallstep/certificates#2863 ·
Maintainers usually reply within 1 day
-
needs triage
Difficulty 1/5 Under an hour Newbie friendliness 65/100
smallstep/certificates#2788 ·
Maintainers usually reply within 1 day
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
smallstep/certificates#2730 · 1 comment · 2 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
smallstep/certificates#2860 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug]: Tokens fail validation after the identity provider rotates its signing key until the JWKS cache expiresPossibly taken @APWHY claimed this 100 days ago. Openbug needs triage
Difficulty 3/5 1-2 days Newbie friendliness 35/100
smallstep/certificates#2831 · 3 comments ·
Maintainers usually reply within 1 day
All issues in smallstep/certificates
Similar issues
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
go good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Azure/prometheus-collector#1828 · 1 comment ·
Maintainers usually reply within 2 days