Add DNS propagation delay before ACME challenge validation

Wait 5 seconds after publishing DNS-01 TXT records before notifying
the ACME server, giving the DNS server time to propagate the update.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Roman Kivalin
2026-04-12 23:31:59 +02:00
co-authored by Claude Opus 4.6
parent 8ed22ca1d5
commit af8cdd3e41
3 changed files with 7 additions and 1 deletions
+2
View File
@@ -6,6 +6,8 @@
### Fixes
- Add DNS propagation delay before ACME challenge validation
### Changes
## 0.2.0 (2026-04-12)
+1 -1
View File
@@ -1,6 +1,6 @@
certforge (0.3.0-1) unstable; urgency=low
*
* Add DNS propagation delay before ACME challenge validation
-- Roman Kivalin <roman@shl.dev> Sat, 12 Apr 2026 22:30:00 +0000
+4
View File
@@ -227,6 +227,10 @@ async fn renew_certificate(
// Run the ACME order flow, ensuring TXT cleanup happens even on failure
let order_result = async {
// Wait for DNS propagation
tracing::debug!("waiting 5s for DNS propagation");
tokio::time::sleep(std::time::Duration::from_secs(5)).await;
// Tell ACME server challenges are ready
tracing::debug!(name = %cert_config.name, "setting challenges ready");
AcmeClient::set_challenges_ready(&mut order).await?;