public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Shan Shaji" <s.shaji@proxmox.com>
To: "Manuel Federanko" <m.federanko@proxmox.com>,
	<pbs-devel@lists.proxmox.com>, <pdm-devel@lists.proxmox.com>
Subject: Re: [PATCH proxmox-backup 6/7] acme: fix #6372 implement ARI renewal information fetching.
Date: Thu, 30 Jul 2026 17:09:02 +0200	[thread overview]
Message-ID: <DKC01C1BXP2U.2BOUTAUORRJHB@proxmox.com> (raw)
In-Reply-To: <f66b0d57-b2be-41a1-ab73-2137d1e6a555@proxmox.com>

On Wed Jul 29, 2026 at 11:07 AM CEST, Manuel Federanko wrote:

[snip]

>>> diff --git a/src/bin/proxmox_backup_manager/acme.rs b/src/bin/proxmox_backup_manager/acme.rs
>>> index ed9e5868c..ea14cfe2b 100644
>>> --- a/src/bin/proxmox_backup_manager/acme.rs
>>> +++ b/src/bin/proxmox_backup_manager/acme.rs
>>> @@ -413,14 +413,6 @@ pub fn plugin_cli() -> CommandLineInterface {
>>>  )]
>>>  /// Order a new ACME certificate.
>>>  async fn order_acme_cert(param: Value, rpcenv: &mut dyn RpcEnvironment) -> Result<(), Error> {
>>> -    if !param["force"].as_bool().unwrap_or(false) {
>>> -        let (expires_soon, lead_days) = api2::node::certificates::check_renewal_needed()?;
>>> -        if !expires_soon {
>>> -            println!("Certificate does not expire within the next {lead_days} days, not renewing.");
>>> -            return Ok(());
>>> -        }
>>> -    }
>>> -
>> 
>> Hi, Since this was now removed, we no longer get console feedback If the
>> certificate doesn't expire soon. However, the status was visible inside the
>> task log. Would showing it in the console as well be a good UX?
> Agreed, I'd prefer that too, I'm unsure on how to achieve this

I have checked this one and AFAIU, this is because of our logger
intialization, where logs are written to the stderr only if no workertask
context exists or the event level is error. When I created the logger with the
plain_stderr_layer, i.e without the NoWorkerTask filter the log was
visible in the console.

I don't think that would be a good idea because now all the logs
inside the workertask context will be written to stderr. Alternatively, without
changing the filters, replacing the info! call for the “Certificate does not expire...”
message with println! would write it to stdout However, in that case, the
message would no longer be written to the task log.

> acme check is imo better handled in the worker.

Agreed, However without moving the check earlier, I am not
sure what is the best way to handle this. Perhaps others have a better
suggestion here. :)

>> 
>>>      let info = &api2::node::certificates::API_METHOD_RENEW_ACME_CERT;
>>>      let result = match info.handler {
>>>          ApiHandler::Sync(handler) => (handler)(param, info, rpcenv)?,
>>> --
>>> 2.47.3
>> 





  reply	other threads:[~2026-07-30 15:09 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-25 14:13 [PATCH proxmox{,-backup,-datacenter-manager} 0/7] acme: fix #6372 implement basic ARI support Manuel Federanko
2026-06-25 14:13 ` [PATCH proxmox 1/7] acme: client: add methods to fetch renewal information Manuel Federanko
2026-07-24 11:16   ` Shan Shaji
2026-07-29  9:04     ` Manuel Federanko
2026-06-25 14:13 ` [PATCH proxmox 2/7] acme: add retry-after header to " Manuel Federanko
2026-06-25 14:13 ` [PATCH proxmox 3/7] acme: allow specifying the certificate that is replaced by an order Manuel Federanko
2026-06-25 14:13 ` [PATCH proxmox 4/7] acme: cert: add dedicated ari_id field to the certificate info Manuel Federanko
2026-06-25 14:13 ` [PATCH proxmox-backup 5/7] acme: add ari_id to cert info Manuel Federanko
2026-06-25 14:13 ` [PATCH proxmox-backup 6/7] acme: fix #6372 implement ARI renewal information fetching Manuel Federanko
2026-07-27 13:31   ` Shan Shaji
2026-07-29  9:07     ` Manuel Federanko
2026-07-30 15:09       ` Shan Shaji [this message]
2026-07-28 13:32   ` Shan Shaji
2026-07-29  9:08     ` Manuel Federanko
2026-06-25 14:13 ` [PATCH proxmox-datacenter-manager 7/7] acme: fix #6372 use ARI for renewal if available Manuel Federanko
2026-07-27 16:15 ` [PATCH proxmox{,-backup,-datacenter-manager} 0/7] acme: fix #6372 implement basic ARI support Shan Shaji
2026-07-29  9:01   ` Manuel Federanko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DKC01C1BXP2U.2BOUTAUORRJHB@proxmox.com \
    --to=s.shaji@proxmox.com \
    --cc=m.federanko@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    --cc=pdm-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal