From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [PATCH proxmox-backup v4 01/15] bin: api/proxy: early init proxmox-product-config
Date: Mon, 20 Jul 2026 16:15:51 +0200 [thread overview]
Message-ID: <20260720141605.728096-2-c.ebner@proxmox.com> (raw)
In-Reply-To: <20260720141605.728096-1-c.ebner@proxmox.com>
In preparation for switching over config related helpers to the
proxmox-product-config. These helpers rely on the priv- and api-user
to already have been initialized.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
src/bin/proxmox-backup-api.rs | 5 +++--
src/bin/proxmox-backup-proxy.rs | 3 ++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/bin/proxmox-backup-api.rs b/src/bin/proxmox-backup-api.rs
index e49532810..710a70042 100644
--- a/src/bin/proxmox-backup-api.rs
+++ b/src/bin/proxmox-backup-api.rs
@@ -48,6 +48,9 @@ async fn run() -> Result<(), Error> {
.tasklog_pbs()
.init()?;
+ let backup_user = pbs_config::backup_user()?;
+ proxmox_product_config::init(backup_user.clone(), pbs_config::priv_user()?);
+
config::create_configdir()?;
config::update_self_signed_cert(false)?;
@@ -75,10 +78,8 @@ async fn run() -> Result<(), Error> {
proxmox_backup::auth_helpers::setup_auth_context(true);
proxmox_backup::server::notifications::init()?;
- let backup_user = pbs_config::backup_user()?;
let mut command_sock = proxmox_daemon::command_socket::CommandSocket::new(backup_user.gid);
- proxmox_product_config::init(backup_user.clone(), pbs_config::priv_user()?);
proxmox_acme_api::init(configdir!("/acme"), true)?;
let dir_opts = CreateOptions::new()
diff --git a/src/bin/proxmox-backup-proxy.rs b/src/bin/proxmox-backup-proxy.rs
index eb5443992..35b1f774f 100644
--- a/src/bin/proxmox-backup-proxy.rs
+++ b/src/bin/proxmox-backup-proxy.rs
@@ -185,10 +185,11 @@ async fn run() -> Result<(), Error> {
.tasklog_pbs()
.init()?;
+ proxmox_product_config::init(pbs_config::backup_user()?, pbs_config::priv_user()?);
+
proxmox_backup::auth_helpers::setup_auth_context(false);
proxmox_backup::server::notifications::init()?;
metric_collection::init()?;
- proxmox_product_config::init(pbs_config::backup_user()?, pbs_config::priv_user()?);
proxmox_acme_api::init(configdir!("/acme"), false)?;
let mut indexpath = PathBuf::from(pbs_buildcfg::JS_DIR);
--
2.47.3
next prev parent reply other threads:[~2026-07-20 14:17 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 14:15 [PATCH proxmox-backup v4 00/15] fix 7642: avoid expensive uid/gid lookups for lock- and config-files Christian Ebner
2026-07-20 14:15 ` Christian Ebner [this message]
2026-07-21 12:51 ` [PATCH proxmox-backup v4 01/15] bin: api/proxy: early init proxmox-product-config Robert Obkircher
2026-07-21 13:09 ` Christian Ebner
2026-07-20 14:15 ` [PATCH proxmox-backup v4 02/15] bin: daily update: refactor to use proxmox-product-config Christian Ebner
2026-07-20 14:15 ` [PATCH proxmox-backup v4 03/15] pbs-config: use proxmox-product-config::replace_secret_config() Christian Ebner
2026-07-20 14:15 ` [PATCH proxmox-backup v4 04/15] pbs-config: use proxmox-product-config::replace_privileged_config() Christian Ebner
2026-07-20 14:15 ` [PATCH proxmox-backup v4 05/15] fix #7642: avoid expensive user lookups on file locking Christian Ebner
2026-07-20 14:15 ` [PATCH proxmox-backup v4 06/15] pbs-config: use proxmox-product-config helpers Christian Ebner
2026-07-20 14:15 ` [PATCH proxmox-backup v4 07/15] pbs-config: drop backup_group helper, use users gid instead Christian Ebner
2026-07-21 12:51 ` Robert Obkircher
2026-07-21 13:15 ` Christian Ebner
2026-07-20 14:15 ` [PATCH proxmox-backup v4 08/15] pbs-datastore: use proxmox-product-config cached backup user Christian Ebner
2026-07-20 14:15 ` [PATCH proxmox-backup v4 09/15] pbs-datastore: use general helpers for file lock create options Christian Ebner
2026-07-20 14:16 ` [PATCH proxmox-backup v4 10/15] server: auth helpers: use proxmox-product-config create options helpers Christian Ebner
2026-07-20 14:16 ` [PATCH proxmox-backup v4 11/15] api: subscription: use proxmox-product-config create options Christian Ebner
2026-07-20 14:16 ` [PATCH proxmox-backup v4 12/15] tape: use proxmox-product-config helper for user lookup Christian Ebner
2026-07-20 14:16 ` [PATCH proxmox-backup v4 13/15] tape: use proxmox-product-config lock file create options Christian Ebner
2026-07-20 14:16 ` [PATCH proxmox-backup v4 14/15] tape: use proxmox-product-config to generate " Christian Ebner
2026-07-20 14:16 ` [PATCH proxmox-backup v4 15/15] tree-wide: use proxmox-product-config::get_api_user for user lookup Christian Ebner
2026-07-21 12:51 ` [PATCH proxmox-backup v4 00/15] fix 7642: avoid expensive uid/gid lookups for lock- and config-files Robert Obkircher
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=20260720141605.728096-2-c.ebner@proxmox.com \
--to=c.ebner@proxmox.com \
--cc=pbs-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