From: Christian Ebner <c.ebner@proxmox.com>
To: Robert Obkircher <r.obkircher@proxmox.com>, pbs-devel@lists.proxmox.com
Subject: Re: [PATCH v1 proxmox-backup] config: invalidate CachedUserInfo after ACL changes
Date: Mon, 31 Aug 2026 16:06:23 +0200 [thread overview]
Message-ID: <8b7f0ecd-2a00-45e7-828d-780c4d7e325a@proxmox.com> (raw)
In-Reply-To: <73eba739-16da-4b38-9aa4-6947064d0d5e@proxmox.com>
On 8/31/26 3:30 PM, Robert Obkircher wrote:
>
> On 28.08.26 11:18, Christian Ebner wrote:
>> One tiny nit inline and one high level comment: We currently do not
>> document the 5 second caching behavior for manual config file edits,
>> not for the user and not for the acl introduced here. We do have a
>> warning with respect to the more critical 60 seconds for
>> token.shadow caching [0] but maybe we could add a note to the end of
>> [1,2] for completeness as well?
>
> Do we support manual changes at all? If so, we would also have to
> document that changes must be atomic renames instead of in-place
> updates, and that we recognize them based on mtime.
Good point, makes me question if the currently documented behavior for
token.shadow stands and does not falsely imply that this is possible
without the risk of inconsistencies. Might be worth to mention this for
that warning and in general, but out of scope for this patch.
>
> The timeout is also not even guaranteed to be 5 seconds, because it is
> based on system time instead of a monotonic clock. I assume this is
> because Instant doesn't work on wasm, but it woudn't be that hard to
> conditionally re-export it in proxmox-sys and replace it with a
> performance.now() wrapper on wasm targets.
>
> (Imo the generation and timeout checks also belong in the individual
> cached_config methods instead of CachedUserInfo::new, but I'll leave
> it as-is for now.)
next prev parent reply other threads:[~2026-08-31 14:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-18 13:34 [PATCH v1 proxmox-backup] config: invalidate CachedUserInfo after ACL changes Robert Obkircher
2026-08-28 9:18 ` Christian Ebner
2026-08-31 13:30 ` Robert Obkircher
2026-08-31 14:06 ` Christian Ebner [this message]
2026-09-02 23:19 ` applied: " Thomas Lamprecht
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=8b7f0ecd-2a00-45e7-828d-780c4d7e325a@proxmox.com \
--to=c.ebner@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
--cc=r.obkircher@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.