-
-
Notifications
You must be signed in to change notification settings - Fork 96
add acme DNS-01 challenge support via certmagic #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add acme DNS-01 challenge support via certmagic #202
Conversation
6a070c8 to
5f640e9
Compare
|
@umputun any updates? |
c84b28b to
631b51e
Compare
|
Any chances for it being reviewed? |
3d529cc to
048f345
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request adds support for ACME DNS-01 challenges through certmagic, addressing issue #110. Key changes include incorporating new ACME and DNS provider options in the configuration, refactoring the certificate issuance logic to use certmagic, and updating tests and mocks accordingly.
Reviewed Changes
Copilot reviewed 1037 out of 1037 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| app/proxy/dns_provider_mock.go | Introduces a generated mock for DNS provider testing. |
| app/main.go | Adds ACME-related flags and DNS provider options, integrating new providers and configuration. |
| app/proxy/ssl_test.go | Updates tests to validate ACME HTTP and DNS challenge flows with the new certmagic integration. |
| app/proxy/ssl.go | Refactors ACME management to use certmagic, updating interfaces and configuration accordingly. |
| app/proxy/proxy.go | Adds a dnsResolvers field to support testing DNS resolution. |
Co-authored-by: Copilot <[email protected]>
|
@Semior001 can you take a look why it failed? I have updated group name due to the typo, nothing more |
- Add proper synchronization for DNS mock server - Fix race condition with thread-safe token access - Add timeouts to certificate acquisition to prevent test hanging - Improve error handling in DNS server - Normalize comments with unfuck-ai-comments
closes #110
this implementation is different from #120 in terms that it uses caddy's certmagic package: https://github.com/caddyserver/certmagic