all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Christian Ebner <c.ebner@proxmox.com>
To: Lukas Wagner <l.wagner@proxmox.com>,
	Proxmox Datacenter Manager development discussion
	<pdm-devel@lists.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:56:36 +0200	[thread overview]
Message-ID: <f5de9bf8-60fe-419b-bff5-45bbf35f8ab3@proxmox.com> (raw)
In-Reply-To: <DCZCBLEQI1PV.2OD5BIK1OYYVH@proxmox.com>

On 9/22/25 2:49 PM, Lukas Wagner wrote:
> 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.

Thanks for review and testing!

Noticed the missing privs for the token only after sending the patches. 
Will adapt this as followup patches however, as the privileges will 
depend also on what information should be shown for the PBS hosts. 
`Datastore.Audit` on path `/datastore` should be enough for the initial 
listing of the backup snapshots.


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


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

Thread overview: 9+ 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 ` [pdm-devel] [PATCH datacenter-manager 0/6] ui/api: implement and expose adding PBS remotes via the ui wizard Lukas Wagner
2025-09-22 12:56   ` Christian Ebner [this message]

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=f5de9bf8-60fe-419b-bff5-45bbf35f8ab3@proxmox.com \
    --to=c.ebner@proxmox.com \
    --cc=l.wagner@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 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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal