-
Notifications
You must be signed in to change notification settings - Fork 27
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
Cannot complete ACME challenge #235
Comments
I think I'm experiencing a similar issue trying to use the dynamic dns caddy plugin with route53. It looks like it may be related to this. |
I made a fork that applies the fix from the linked comment above. Given a recent version of
|
There is a bug in the version of the AWS SDK that libdns/route53 currently uses, so instead use a fork that has the SDK version bumped. Related: * aws/aws-sdk-go-v2#2370 (comment) * libdns/route53#235 * caddy-dns/route53#42
I was getting this exact same error without using a wildcard domain, just a plain individual domain. I tried winterqt's fix and it is now working. Looks like there is already PRs for this and they just need to me merged. Edit: Just tested with wildcard and that's working with this fix as well. |
Working around a known issue with caddy v2.8.4 and aws libdns/route53#235 (comment)
Would this issue be solved by merging the open PRs from dependabot? I think yes, based on the commit on @winterqt fork Are there any blockers to upgrade the aws deps? |
I tried this and it appears to be failing silently -- it jumps directly from
to
Where in the past it would fail with
I checked CloudTrail and I saw that it would create the TXT record, then 1 or 2 seconds later it would delete it. |
@forest-code42 I ran into that as well. The solution here is what worked for me: caddy-dns/route53#43 The maintainer mentions the |
Oh interesting. I thought https://github.com/caddy-dns/route53/blob/master/route53.go#L56-L101 I missed your comment and I went on my own adventure to fork it and fix it myself. I got it working. These changes were just to point to the forked module: caddy-dns/route53@master...forest-code42:route53:forest These changes fixed the issue: winterqt/libdns-route53@master...forest-code42:libdns-route53:master
I built it with
|
Thanks @forest-code42 ! This indeed fixes the issue I've been experiencing in 2.8.4, as well as the same issue I was facing with the For those who use a simple Dockerfile to manage Caddy, the below should work (replacing FROM caddy:2.8.4-builder AS builder
ENV GOOS=linux
ENV GOARCH=arm64
RUN xcaddy build --with github.com/forest-code42/route53@5f7726361f1b66e7bebdaa2397b42d5e9d0728a3
FROM caddy:2.8.4
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
Maintainer please update ASAP, Thanks. @aymanbagabas |
@forest-code42 Can you please make a PR? |
This should be fixed in caddy-dns/route53#50. It was only affecting Caddyfiles, JSON config are fine. EDIT: released in caddy-dns/[email protected] @baowei @yami-no-ryuu @forest-code42 You could use As you know, this module is also used for other things than ACME challenges, and making it specific to ACME challenges is not the goal here. |
I'm running Caddy to manage wildcard certificates using route53 as a DNS provider.
This is running inside an AWS ECS task, where the task role has all the permissions on Route53 for all resources.
I keep getting this error when
libdns
tries to write a temporary record:Seems the error comes from here, which calls https://github.com/libdns/route53/blob/master/provider.go#L42.
I see a trailing dot in the domain, but seems like this is not a problem.
Is this a bug or am I'm doing something wrong?
The text was updated successfully, but these errors were encountered: