-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Option --dns.disable-cp not working #804
Comments
All our e2e tests for the DNS challenges use Then seems weird. |
Just to avoid duplicate work: Any progress or new infos here? If not, I could look deeper into this issue. It's an important feature for me. I'm using 'pebble-challtestsrv' for testing. And 'pebble-challtestsrv' hasn't any propagation functionality. |
It seems that the issue depends on the operating system and/or environment. Linux (OK):
macOS (NOK):
Any ideas where to start further investigations? |
Maybe it's a bug inside https://github.com/urfave/cli |
I looked deeper into this issue and dumped the content of "preCheck":
The "requireCompletePropagation" value is set correctly to "true or false", but "checkFunc" is always nil.
That's the reason why "checkDNSPropagation()" is always called.
The function "WrapPreCheck()" sets "checkFunc":
My understanding is, that "checkFunc()" allows it to define a (user implemented) mechanism to check the DNS propagation. In my case I don't want such a check. How to achieve this? |
The goal of The
|
Your last message don't seems related to your previous message on weird behavior on Mac. I think the Mac behavior is related to the bug #868. |
Just for clarification: The last analysis based on my own client. That means that https://github.com/urfave/cli isn't involved. The 'DisableCompletePropagationRequirement()' option is set directly: err = client.Challenge.SetDNS01Provider(provider, dns01.DisableCompletePropagationRequirement())
if err != nil {
log.Printf("error <%v> at client.Challenge.SetDNS01Provider(), provider = %v", err, dns01Provider)
return err
} Maybe we are dealing with two independent issues ... |
If the question is: how to disable the precheck? The answer is: err = client.Challenge.SetDNS01Provider(provider, dns01.WrapPreCheck(func(_, _, _ string, _ dns01.PreCheckFunc) (b bool, e error) {
return true, nil
})) |
Thanks for explaining this. |
Version 2.6.0 has a fix concerning this issue, but it's still not working for me on macOS. Maybe a local problem. Could someone reproduce the issue?
|
It seems that the option '--dns.disable-cp' isn't working. I have that ...
... and get this result:
My expectation is, that with the option '--dns.disable-cp' (set to true) the DNS record propagation check is omitted.
Tested with lego 2.2.0.
The text was updated successfully, but these errors were encountered: