public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox Backup Server development discussion
	<pbs-devel@lists.proxmox.com>,
	Samuel Rufinatscha <s.rufinatscha@proxmox.com>
Subject: Re: [pbs-devel] [PATCH proxmox{, -backup} 0/2] fix #6939: acme: support servers returning 204 for nonce requests
Date: Wed, 29 Oct 2025 08:51:10 +0100	[thread overview]
Message-ID: <9eb5926b-8252-4dc7-950c-d69e8185afd3@proxmox.com> (raw)
In-Reply-To: <20251028152201.216603-1-s.rufinatscha@proxmox.com>

Thanks for the patch and actually also checking if PVE is affected, and why
it isn't.

Am 28.10.25 um 20:34 schrieb Samuel Rufinatscha:
> This is also stricter than the PVE Perl ACME client, which tolerates any
> 2xx success codes [3]. The author mentions, the issue did not appear
> with PVE9 [1].
> 
> ## Ideas to solve the problem
> 
> To support ACME providers which return 204 No Content, the underlying
> ACME clients need to tolerate both 200 OK and 204 No Content as valid
> responses for the nonce HEAD request, as long as the Replay-Nonce is
> provided.
> 
> I considered following solutions:
> 
> 1. Change the `expected` field of the `AcmeRequest` type from `u16` to
>    `Vec<u16>`, to support multiple success codes
> 
> 2. Keep `expected: u16` and add a second field e.g. `expected_other:
>    Vec<u16>` for "also allowed" codes.
> 
> 3. Support any 2xx success codes, and remove the `expected` check
> 
> I thought (1) might be reasonable, because:
> 
> * It stays explicit and makes it clear which statuses are considered
>   success.
> * We don’t create two parallel concepts ("expected" vs
>   "expected_other") which introduces additional complexity
> * Can be extend later if we meet yet another harmless but not 200
>   variant.
> * We don’t allow arbitrary 2xx.
> 
> What do you think? Do you maybe have any other solution in mind that
> would fit better?

There probably isn't answer that strictly right in all cases, but in
general it's good to have similar behavior across implementations,
especially given that we do not know of any report where the PVE behavior
of accepting all 2xx response codes caused any problems, from that 3.
would be best, or does the RFC forbid the server to accept other status
codes?

That said, in practice only 201 (Created) might make sense for ACME in
addition to the referenced 200 (OK) and 204 (No Content), and following
the RFC is fine, so 1. is IMO also a good solution here.
Please note the difference to PVE in the commit message, there you write
that behavior is now aligned with PVE, but it's rather "closer aligned"
to, not fully.


_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel

  parent reply	other threads:[~2025-10-29  7:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-28 15:21 Samuel Rufinatscha
2025-10-28 15:22 ` [pbs-devel] [PATCH proxmox 1/1] " Samuel Rufinatscha
2025-10-29  7:23   ` Christian Ebner
2025-10-29  7:53     ` Thomas Lamprecht
2025-10-29  8:07       ` Christian Ebner
2025-10-29 10:36       ` Wolfgang Bumiller
2025-10-29 11:27         ` Thomas Lamprecht
2025-10-29 15:50         ` Samuel Rufinatscha
2025-10-29 10:38   ` Wolfgang Bumiller
2025-10-29 15:56     ` Samuel Rufinatscha
2025-10-28 15:22 ` [pbs-devel] [PATCH proxmox-backup 1/1] fix #6939: acme: accept HTTP 204 from newNonce endpoint Samuel Rufinatscha
2025-10-29  7:51 ` Thomas Lamprecht [this message]
2025-10-29 16:02   ` [pbs-devel] [PATCH proxmox{, -backup} 0/2] fix #6939: acme: support servers returning 204 for nonce requests Samuel Rufinatscha
2025-10-29 16:49 ` [pbs-devel] superseded: " Samuel Rufinatscha

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=9eb5926b-8252-4dc7-950c-d69e8185afd3@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    --cc=s.rufinatscha@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