Skip to content

Commit b590633

Browse files
committed
cert robustness fix
1 parent 09d520f commit b590633

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

plane/src/dns/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl AcmeDnsServer {
162162
.map(|result| {
163163
Record::from_rdata(
164164
request.query().name().into(),
165-
300,
165+
1,
166166
RData::TXT(TXT::new(vec![result])),
167167
)
168168
})

plane/src/proxy/cert_manager.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,14 @@ async fn get_certificate(
427427
}
428428
}
429429

430+
// Wait 15 seconds before checking the challenge status.
431+
tokio::time::sleep(Duration::from_secs(15)).await;
432+
430433
if challenge.status != ChallengeStatus::Valid {
431434
tracing::info!("Validating challenge.");
432435
let challenge = challenge.validate().await.context("Validating challenge")?;
433436
let challenge = challenge
434-
.wait_done(Duration::from_secs(5), 3)
437+
.wait_done(Duration::from_secs(5), 6)
435438
.await
436439
.context("Waiting for challenge")?;
437440
if challenge.status != ChallengeStatus::Valid {

0 commit comments

Comments
 (0)