public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pdm-devel] [PATCH datacenter-manager/yew-comp v2 0/5] add better token support for pdm
@ 2025-10-14 14:37 Shannon Sterz
  2025-10-14 14:37 ` [pdm-devel] [PATCH yew-comp v2 1/2] utils/tfa add recover/token panel: add copy_text_to_clipboard function Shannon Sterz
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Shannon Sterz @ 2025-10-14 14:37 UTC (permalink / raw)
  To: pdm-devel

this series aims to add a ui to the pre-existing token support in pdm.
it also aims to get it more in-line with what other proxmox products
provide in terms of functionality.

the first two commits improve the token panel in proxmox-yew-comp by
using the Clipboard API when copying values. the layout and
functionality of the dialog displaying the token secret is also
improved.

the final three patches integrate the token panel in pdm's ui. they also
refactor the api endpoints related token handling to use the new
endpoints from proxmxo-access-control and make sure the user delete
endpoint cleans up acls and tokens too.

Changelog
---------

changes since v1:
- the patches for proxmox-access-control got applied (thanks @ Thomas
  Lamprecht)
- use `.gap(2)` instead of `.margin_start(2)` (thanks @ Dominik Csapak)
- use `ColorScheme::WarningContainer` and `pwt-default-color` instead of
  manually setting background and color classes (thanks @ Dominik
  Csapak)
- rebased on current master branches

changes since rfc:
- the commits implementing the basic token panel have already been
  applied by Thomas Lamprecht, thanks!
- moved adding `use` and `mod` statements for the token module to the
  right commit in the series (thanks @ Dominik Csapak)
- generate token secrets in the `token_shadow` module instead of in the
  token endpoints themselves (thanks @ Fabian Grünbichler)
- use a schema for the `regenerate` parameter of the update token
  endpoint (thanks @ Fabian Grünbichler)
- allow deleting comments via a `delete` property (thanks @ Fabian
  Grünbichler)
- make the token delete endpoint clean up token acls (thanks @ Fabian
  Grünbichler)
- improve copy to clipboard functionality to use the new Clipboard API
- improve the layout of the token secret dialog (thanks @ Thomas
  Lamprecht)

proxmox-yew-comp:

Shannon Sterz (2):
  utils/tfa add recover/token panel: add copy_text_to_clipboard function
  token panel: improve token secret dialog layout and hide password

 Cargo.toml                  |   2 +
 src/tfa/tfa_add_recovery.rs |  17 ++----
 src/token_panel.rs          | 117 ++++++++++++++++++------------------
 src/utils.rs                |  22 +++++++
 4 files changed, 89 insertions(+), 69 deletions(-)


proxmox-datacenter-manager:

Shannon Sterz (3):
  ui: add a token panel and a token acl edit menu in the permissions
    panel
  server: access: use token endpoints from proxmox-access-control
  server: clean up acl tree entries and api tokens when deleting users

 server/src/api/access/users.rs | 388 ++++++---------------------------
 ui/src/configuration/mod.rs    |  33 ++-
 2 files changed, 95 insertions(+), 326 deletions(-)


Summary over all repositories:
  6 files changed, 184 insertions(+), 395 deletions(-)

--
Generated by git-murpp 0.8.1


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-10-17 12:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-14 14:37 [pdm-devel] [PATCH datacenter-manager/yew-comp v2 0/5] add better token support for pdm Shannon Sterz
2025-10-14 14:37 ` [pdm-devel] [PATCH yew-comp v2 1/2] utils/tfa add recover/token panel: add copy_text_to_clipboard function Shannon Sterz
2025-10-17  9:35   ` Lukas Wagner
2025-10-17 10:43     ` Shannon Sterz
2025-10-14 14:37 ` [pdm-devel] [PATCH yew-comp v2 2/2] token panel: improve token secret dialog layout and hide password Shannon Sterz
2025-10-17  9:36   ` Lukas Wagner
2025-10-17 10:04     ` Shannon Sterz
2025-10-17 11:03       ` Lukas Wagner
2025-10-14 14:37 ` [pdm-devel] [PATCH datacenter-manager v2 1/3] ui: add a token panel and a token acl edit menu in the permissions panel Shannon Sterz
2025-10-17  9:36   ` Lukas Wagner
2025-10-14 14:37 ` [pdm-devel] [PATCH datacenter-manager v2 2/3] server: access: use token endpoints from proxmox-access-control Shannon Sterz
2025-10-17  9:36   ` Lukas Wagner
2025-10-14 14:37 ` [pdm-devel] [PATCH datacenter-manager v2 3/3] server: clean up acl tree entries and api tokens when deleting users Shannon Sterz
2025-10-17  9:36   ` Lukas Wagner
2025-10-17 12:48 ` [pdm-devel] Superseded: Re: [PATCH datacenter-manager/yew-comp v2 0/5] add better token support for pdm Shannon Sterz

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