public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Michael Köppl" <m.koeppl@proxmox.com>
To: "David Riley" <d.riley@proxmox.com>, <pve-devel@lists.proxmox.com>
Subject: Re: [PATCH common/manager v2 0/2] fix #8006: acme: lifetime-based certificate renewal threshold
Date: Tue, 20 Oct 2026 15:34:32 +0200	[thread overview]
Message-ID: <DM9PDN5T91FS.1EZ0B9PTI2B3O@proxmox.com> (raw)
In-Reply-To: <20261020082415.35215-1-d.riley@proxmox.com>

Tested this version as well, running through the following scenarios:
- Checked that with only 72h remaining, certs are always considered due
  for renewal and are renewed by pveupdate. Generated a couple of
  certs for this at 24h, 72h, 96h. For 96h the scaling should use 2, so
  48h, but the floor raises this to 72h. So I forwarded time by 23h,
  such that the certificate was not considered due for renewal yet and
  thus refused. At 24h(+1s) after issuance and every point after,
  renewal worked. Works as expected!
- Also checked that the scaling works by using a 216h and a 240h
  certificate, with the switch to 1/3 scaling being applied to 240h
  and longer-lived certs.
- Just to be sure (and because I wanted to try), I also used pebble [0]
  and configured it to use 96h certs and ran renewals again at the 3-day
  floor. Also had it issue longer-lived certificates and tried to make
  it miss/fail renewal, but couldn't.

I also had a look at the code and left some minor comments regarding
the structure of the series. The implementation itself looks good to me
now.

Consider this:
Reviewed-by: Michael Köppl <m.koeppl@proxmox.com>
Tested-by: Michael Köppl <m.koeppl@proxmox.com>

[0] https://github.com/letsencrypt/pebble

On Tue Oct 20, 2026 at 10:24 AM CEST, David Riley wrote:
> Thanks Michael K. for taking a look.
>
> Differences from v1:
> * Refactor: Reduce certificate reads by combining the read of
>   notBefore and notAfter.
> * Add: Warning users of certificates with lifetime <= 0
> * Add: minimum lead time of 3 days
> * Update 'force' parameter description in API schema

[snip]




  parent reply	other threads:[~2026-10-20 13:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-20  8:24 [PATCH common/manager v2 0/2] fix #8006: acme: lifetime-based certificate renewal threshold David Riley
2026-10-20  8:24 ` [PATCH pve-common v2 1/2] certificate: add helpers for lifetime-based ACME renewal David Riley
2026-10-20 13:34   ` Michael Köppl
2026-10-20  8:24 ` [PATCH pve-manager v2 2/2] fix #8006: api: acme: lifetime-based certificate renewal threshold David Riley
2026-10-20 13:32   ` Michael Köppl
2026-10-20 13:34 ` Michael Köppl [this message]
2026-10-21  9:58 ` superseded: [PATCH common/manager v2 0/2] fix #8006: " David Riley

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=DM9PDN5T91FS.1EZ0B9PTI2B3O@proxmox.com \
    --to=m.koeppl@proxmox.com \
    --cc=d.riley@proxmox.com \
    --cc=pve-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