Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Prepare challtestsrv for DNS-persist challenge support#32

Merged
beautifulentropy merged 2 commits into
mainfrom
prepare-for-dns-persist
Feb 9, 2026
Merged

Prepare challtestsrv for DNS-persist challenge support#32
beautifulentropy merged 2 commits into
mainfrom
prepare-for-dns-persist

Conversation

@beautifulentropy
Copy link
Copy Markdown
Member

@beautifulentropy beautifulentropy commented Feb 9, 2026

Prepare challtestsrv for the addition of a new DNS-based challenge method, draft-ietf-acme-dns-persist. Overall functionality is unchanged aside from the API changes documented below; these changes are purely terminology updates and code reorganization.

Rename DNS-01-specific APIs to generic DNS APIs, move TXT records into unified dnsData, and update docs/comments from DNSOne* to DNS*. Note: there are four breaking API changes introduced by this change:

  • Config.DNSOneAddrs was renamed to Config.DNSAddrs
  • ChallSrv.AddDNSOneChallenge was renamed to AddDNSTXTRecord
  • ChallSrv.DeleteDNSOneChallenge was renamed to DeleteDNSTXTRecord
  • ChallSrv.GetDNSOneChallenge was renamed to GetDNSTXTRecords

Remove “mock” terminology, merge mockdns.go into dns.go, and update docs/comments accordingly. There are three breaking API changes introduced by this change:

  • MockCAAPolicy was renamed to CAAPolicy
  • ChallSrv.AddDNSCAARecord now accepts CAAPolicy
  • ChallSrv.GetDNSCAARecord now returns CAAPolicy

@beautifulentropy
Copy link
Copy Markdown
Member Author

If we want to more gracefully deprecate some or all of these APIs I'm open to adding some wrappers that can be removed at a later date.

@beautifulentropy beautifulentropy requested a review from jsha February 9, 2026 17:30
@beautifulentropy beautifulentropy merged commit 68d5a54 into main Feb 9, 2026
@beautifulentropy beautifulentropy deleted the prepare-for-dns-persist branch February 9, 2026 18:38
beautifulentropy added a commit to letsencrypt/pebble that referenced this pull request Feb 10, 2026
Prepare challtestsrv for the addition of a new DNS-based challenge
method,
[draft-ietf-acme-dns-persist](https://datatracker.ietf.org/doc/html/draft-ietf-acme-dns-persist-00).
Overall functionality is unchanged aside from the API changes documented
below; these changes are purely terminology updates and code
reorganization.

Update challtestsrv to v1.4.1, a tag that includes
letsencrypt/challtestsrv#32. In
pebble-challtestsrv, merge dnsone.go and mockdns.go into dns.go, and
rename DNS-01-specific functions to the more generic DNS*. Rename the
`-dns01` flag to `-dnsserver`, matching the same flag in Pebble. Also,
remove any mention of mock, mocks, and mocked in the dns.go doc comments
and README.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants