public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Shannon Sterz <s.sterz@proxmox.com>, pdm-devel@lists.proxmox.com
Subject: Re: [PATCH datacenter-manager] ui: auto-installer: mark regenerating auto installer tokens as dangerous
Date: Thu, 28 May 2026 11:54:17 +0200	[thread overview]
Message-ID: <f2d89fcf-c9dc-4421-a2b2-80da26a88a47@proxmox.com> (raw)
In-Reply-To: <20260528092618.111906-1-s.sterz@proxmox.com>

Thx for the patch and the quick apply. FWIW this is missing commit
message body and none added on applying, a short sentence here would
be appreciated.

Am 28.05.26 um 11:25 schrieb Shannon Sterz:
> Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
> ---
>  ui/src/remotes/auto_installer/token_panel.rs | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/ui/src/remotes/auto_installer/token_panel.rs b/ui/src/remotes/auto_installer/token_panel.rs
> index 3732ffe..0ee5afc 100644
> --- a/ui/src/remotes/auto_installer/token_panel.rs
> +++ b/ui/src/remotes/auto_installer/token_panel.rs
> @@ -218,6 +218,7 @@ impl LoadableComponent for AuthTokenPanelComponent {
>                          All existing ISOs with this token will lose access!"
>                      ))
>                      .disabled(self.selection.is_empty())
> +                    .dangerous(true)
>                      .on_activate(link.callback(|_| Message::RegenerateSecret)),
>              )
>              .with_flex_spacer()

IMO a bit borderline, as this is not like a classic API token where this
causes active service disruption.
OTOH. setting that flag hasn't that big of an impact and doesn't really
hurt either, so fine. I'd just avoid using it for everything that can be
framed as destructive, as most things with a confirmation prompts might be,
as then it looses the punch a bit (or could again just be the default).
But when implementing these yesterday I also could not come up with a
definitive rule that always holds, so certainly not a clear cut - just
wanted to avoid that we use this to liberally now - as said, here it was
OK to do (except the short missing rationale).




  parent reply	other threads:[~2026-05-28  9:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-28  9:26 [PATCH datacenter-manager] ui: auto-installer: mark regenerating auto installer tokens as dangerous Shannon Sterz
2026-05-28  9:44 ` applied: " Lukas Wagner
2026-05-28  9:54 ` Thomas Lamprecht [this message]
2026-05-28 10:02   ` Lukas Wagner
2026-05-28 10:26     ` Thomas Lamprecht
2026-05-28 10:04   ` Shannon Sterz

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=f2d89fcf-c9dc-4421-a2b2-80da26a88a47@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=pdm-devel@lists.proxmox.com \
    --cc=s.sterz@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