From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 9CE221FF13B for ; Wed, 11 Feb 2026 17:18:21 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 1411D32BFC; Wed, 11 Feb 2026 17:19:06 +0100 (CET) From: Christian Ebner To: pbs-devel@lists.proxmox.com Subject: [PATCH proxmox 1/1] pbs-api-types: remote: add flag to use node proxy for remote connect Date: Wed, 11 Feb 2026 17:18:42 +0100 Message-ID: <20260211161845.1006528-2-c.ebner@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260211161845.1006528-1-c.ebner@proxmox.com> References: <20260211161845.1006528-1-c.ebner@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1770826655513 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.046 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: SRKFNGP4RVSUASPQ7WJ3WKTR34MMNNJS X-Message-ID-Hash: SRKFNGP4RVSUASPQ7WJ3WKTR34MMNNJS X-MailFrom: c.ebner@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Introduces the `use-node-proxy` flag in the remote config and the corresponding boolean API schema. Setting this flag will allow users to enable using the node's http proxy config for remote connections. Defaults to false for backwards compatibility. Signed-off-by: Christian Ebner --- pbs-api-types/src/remote.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pbs-api-types/src/remote.rs b/pbs-api-types/src/remote.rs index 29d41e87..6a21345a 100644 --- a/pbs-api-types/src/remote.rs +++ b/pbs-api-types/src/remote.rs @@ -1,5 +1,7 @@ use serde::{Deserialize, Serialize}; +use proxmox_schema::BooleanSchema; + use super::*; pub const REMOTE_PASSWORD_SCHEMA: Schema = @@ -22,6 +24,12 @@ pub const REMOTE_ID_SCHEMA: Schema = StringSchema::new("Remote ID.") .max_length(32) .schema(); +pub const USE_NODE_HTTP_PROXY_SCHEMA: Schema = BooleanSchema::new( + "Use the http proxy configuration of the node for remote connections.", +) +.default(false) +.schema(); + #[api( properties: { comment: { @@ -43,6 +51,10 @@ pub const REMOTE_ID_SCHEMA: Schema = StringSchema::new("Remote ID.") optional: true, schema: CERT_FINGERPRINT_SHA256_SCHEMA, }, + "use-node-proxy": { + optional: true, + schema: USE_NODE_HTTP_PROXY_SCHEMA, + }, }, )] #[derive(Serialize, Deserialize, Updater, Clone, PartialEq)] @@ -57,6 +69,8 @@ pub struct RemoteConfig { pub auth_id: Authid, #[serde(skip_serializing_if = "Option::is_none")] pub fingerprint: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub use_node_proxy: Option, } #[api( -- 2.47.3