provision: allow third-party apps to access caddytls.TLS.dns filed - #7930
provision: allow third-party apps to access caddytls.TLS.dns filed#7930PurplestViper wants to merge 1 commit into
Conversation
|
Exporting an |
|
There is no data in |
|
Based on the existing code, // DNSProvider defines the set of operations required for
// ACME challenges or other sorts of domain verification.
// A DNS provider must be able to append and delete records
// in order to solve ACME challenges. Find one you can use
// at https://github.com/libdns. If your provider isn't
// implemented yet, feel free to contribute!
type DNSProvider interface {
libdns.RecordAppender
libdns.RecordDeleter
}Encrypted ClientHello (ECH) requires the provider to implement at least the Lines 768 to 772 in 64b64c6 Given the widespread adoption of the DNS-01 challenge and the implementation status of the libdns library, the minimum requirement here should be the implementation of the RecordAppender and RecordDeleter interfaces, setting the dns field type to any is unreasonable.
|
No AI was used.
The global
dnsoption can be used publicly, butcaddytls.TLS.dnsshould be exported for use by third-party app; otherwise, reflection must be used.For example, mholt/caddy-dynamicdns#106
https://github.com/mholt/caddy-dynamicdns/pull/106/changes#diff-3d56da1a5c865a0689b48c66b4b24ff2441ea4c442c2bc9dd074814034f78fc8R136-R152