Skip to content

Conversation

@Semior001
Copy link
Contributor

@Semior001 Semior001 commented Sep 8, 2024

closes #110

this implementation is different from #120 in terms that it uses caddy's certmagic package: https://github.com/caddyserver/certmagic

@Semior001 Semior001 marked this pull request as ready for review September 17, 2024 06:38
@Semior001 Semior001 requested a review from umputun as a code owner September 17, 2024 06:38
@Semior001
Copy link
Contributor Author

Semior001 commented Sep 17, 2024

@umputun I believe this PR is ready to be reviewed. This PR also includes the change request resolution of #205, just because I've needed that in tests, for substituting the ACME server with LE staging while performing hand-testing.

@Semior001 Semior001 force-pushed the feature/110/acme-challenge-certmagic branch from 6a070c8 to 5f640e9 Compare September 17, 2024 06:46
@Semior001
Copy link
Contributor Author

@umputun any updates?

@Semior001 Semior001 force-pushed the feature/110/acme-challenge-certmagic branch from c84b28b to 631b51e Compare November 27, 2024 05:42
@Semior001
Copy link
Contributor Author

Any chances for it being reviewed?

@Semior001 Semior001 force-pushed the feature/110/acme-challenge-certmagic branch from 3d529cc to 048f345 Compare March 8, 2025 00:05
@umputun umputun requested a review from Copilot March 16, 2025 17:57
Copy link
Contributor

Copilot AI left a 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]>
@umputun
Copy link
Owner

umputun commented Mar 16, 2025

@Semior001 can you take a look why it failed? I have updated group name due to the typo, nothing more

umputun added 2 commits April 19, 2025 12:32
- 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
@umputun umputun merged commit 231d7b0 into umputun:master Apr 19, 2025
1 check failed
@Semior001 Semior001 deleted the feature/110/acme-challenge-certmagic branch April 19, 2025 20:34
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.

Support DNS challenge for LE / ACME

2 participants