cert-manager/pkg/issuer/acme/dns/util
Maxim Ivanov c44a7552ea Check challenge before presenting it
With async challenge Check, it is often happens,
that solver.Check() fails on first run after solver.Present()

Cert-manager then tries again, but starts with solver.Present(),
which not being idempotent right now fails on certain DNS providers.

This change swaps order of solver.Check() and solver.Present().
Check is not returning error if propagation not happened, it then
allows Present() to run.

In the current form, Present() will be spamming with errors,
but this doesn't stop Check from happening on every attempt,
so eventually Challenge can be verified and accepted. In the future,
Present() should be made idempotent.
2018-04-11 11:27:23 +01:00
..
testdata Add solverFor and wait.go unit tests for acme dns solver 2017-11-03 23:34:37 +00:00
dns.go Check for DNS propagation before accept authorization from ACME 2017-08-05 17:39:56 +01:00
wait_test.go Add solverFor and wait.go unit tests for acme dns solver 2017-11-03 23:34:37 +00:00
wait.go Check challenge before presenting it 2018-04-11 11:27:23 +01:00