From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 891317145D for ; Mon, 28 Jun 2021 18:34:10 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7B7422DDEC for ; Mon, 28 Jun 2021 18:33:40 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 5707E2DDD1 for ; Mon, 28 Jun 2021 18:33:39 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id EB9B6467BF for ; Mon, 28 Jun 2021 18:27:53 +0200 (CEST) From: Stoiko Ivanov To: pbs-devel@lists.proxmox.com Date: Mon, 28 Jun 2021 16:27:39 +0000 Message-Id: <20210628162741.74992-1-s.ivanov@proxmox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.616 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pbs-devel] [PATCH proxmox-backup 0/2] acme: add sleep for dns record propagation X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2021 16:34:10 -0000 The issue was brought up in our community forum: https://forum.proxmox.com/threads/acme-configuration-via-gui.91381/ While I could not directly reproduce it (writing to a pdns-database is faster than waiting on cloud-flare to propagate their records) I compared the task-log to the one from PMG. The use of tokio::time::sleep was taken from the other delays in api2::node::certificate, for the rest I mostly trusted the compiler warnings and rustfmt. Stoiko Ivanov (2): config: acme: make validation_delay crate public acme: plugin: add sleep for dns propagation src/acme/plugin.rs | 8 ++++++++ src/config/acme/plugin.rs | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) -- 2.20.1