public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Lukas Wagner" <l.wagner@proxmox.com>
To: "Proxmox Datacenter Manager development discussion"
	<pdm-devel@lists.proxmox.com>,
	"Christian Ebner" <c.ebner@proxmox.com>
Subject: Re: [pdm-devel] [PATCH datacenter-manager 0/6] ui/api: implement and expose adding PBS remotes via the ui wizard
Date: Mon, 22 Sep 2025 14:50:11 +0200	[thread overview]
Message-ID: <DCZCBLEQI1PV.2OD5BIK1OYYVH@proxmox.com> (raw)
In-Reply-To: <20250922110958.369653-1-c.ebner@proxmox.com>

On Mon Sep 22, 2025 at 1:09 PM CEST, Christian Ebner wrote:
> While it is already possible to add PBS remote via the cli, the UI currently
> does not expose this functionality. Most of the required pieces are however
> already there, so implement the missing api endpoints to check the TLS
> connection and scan the remote for the PDM api and add the required methods to
> the PDM client.
>
> Finally, make sure the correct PDM implementation for PBS is used based on the
> remote type as stored in the remote add wizard state and expose the button
> to add the PBS instance.
>
> datacenter-manager:
>
> Christian Ebner (6):
>   server: api: add TLS probe endpoint for PBS
>   pdm-client: add method to probe TLS connection for PBS remotes
>   server: api: implement endpoint to scan remote PBS instances
>   pdm client: add method to scan remote PBS instances
>   ui: remote: check connection for PBS remotes in remote add wizard
>   ui: reorganize remote add button as dropdown menu to allow adding PBS
>
>  lib/pdm-client/src/lib.rs             |  90 +++++++++++++++-------
>  server/src/api/pbs/mod.rs             | 107 ++++++++++++++++++++++++--
>  ui/src/remotes/add_wizard.rs          |   2 +-
>  ui/src/remotes/config.rs              |  42 +++++-----
>  ui/src/remotes/wizard_page_connect.rs |  16 ++--
>  ui/src/remotes/wizard_page_info.rs    |  25 ++++--
>  6 files changed, 211 insertions(+), 71 deletions(-)
>
>
> Summary over all repositories:
>   6 files changed, 211 insertions(+), 71 deletions(-)

Looks good to me. I applied this on the latest master and give it a
spin.

Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Lukas Wagner <l.wagner@proxmox.com>

The only thing that I noticed is that when creating a new API token via
the wizard, further API calls to actually give this new token adequate
permissions are needed, since PBS enforces privilege-separation for API
tokens. For PVE this is not a problem, since there we just don't use
privilege-separation, so the token has the same privs as the user.


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


  parent reply	other threads:[~2025-09-22 12:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-22 11:09 Christian Ebner
2025-09-22 11:09 ` [pdm-devel] [PATCH datacenter-manager 1/6] server: api: add TLS probe endpoint for PBS Christian Ebner
2025-09-22 11:09 ` [pdm-devel] [PATCH datacenter-manager 2/6] pdm-client: add method to probe TLS connection for PBS remotes Christian Ebner
2025-09-22 11:09 ` [pdm-devel] [PATCH datacenter-manager 3/6] server: api: implement endpoint to scan remote PBS instances Christian Ebner
2025-09-22 11:09 ` [pdm-devel] [PATCH datacenter-manager 4/6] pdm client: add method " Christian Ebner
2025-09-22 11:09 ` [pdm-devel] [PATCH datacenter-manager 5/6] ui: remote: check connection for PBS remotes in remote add wizard Christian Ebner
2025-09-22 11:09 ` [pdm-devel] [PATCH datacenter-manager 6/6] ui: reorganize remote add button as dropdown menu to allow adding PBS Christian Ebner
2025-09-22 12:50 ` Lukas Wagner [this message]
2025-09-22 12:56   ` [pdm-devel] [PATCH datacenter-manager 0/6] ui/api: implement and expose adding PBS remotes via the ui wizard Christian Ebner
2025-09-22 17:59 ` [pdm-devel] applied-series: " 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=DCZCBLEQI1PV.2OD5BIK1OYYVH@proxmox.com \
    --to=l.wagner@proxmox.com \
    --cc=c.ebner@proxmox.com \
    --cc=pdm-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