From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 22B181FF09B for ; Mon, 31 Aug 2026 09:09:05 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 0E223213BF; Mon, 31 Aug 2026 09:09:04 +0200 (CEST) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager/proxmox v2 0/2] check privilege paths during compilation Date: Mon, 31 Aug 2026 09:08:46 +0200 Message-ID: <20260831070855.568455-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.544 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) POISEN_SPAM_PILL 0.1 Meta: its spam POISEN_SPAM_PILL_1 0.1 random spam to be learned in bayes POISEN_SPAM_PILL_3 0.1 random spam to be learned in bayes RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust 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: W6JD4PQUJGKE7O62GSD2XXGFXG4L7ZZR X-Message-ID-Hash: W6JD4PQUJGKE7O62GSD2XXGFXG4L7ZZR X-MailFrom: d.csapak@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 Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This adds a check in proxmox-router to check the used parameter interpolations in the privilege paths of api calls for existence. Aside from the two use sites that fabian[0] already sent a patch for it found another wrong usage of this (patch 2/2). changes from rfc/v1: * rebase on master * require Resource.Audit on /resource/{remote} for each remote, filter out where this isn't the case instead of requiring it on /resource 0: https://lore.proxmox.com/pdm-devel/e7fd6763-4c68-4669-a32a-c34c9ad08cbe@proxmox.com/T/#t proxmox: Dominik Csapak (1): router: compile time check privilege path parameters for existence proxmox-router/src/router.rs | 209 ++++++++++++++++++++++++++++++++++- 1 file changed, 208 insertions(+), 1 deletion(-) proxmox-datacenter-manager: Dominik Csapak (1): server: api: pve firewall: fix permission check server/src/api/pve/firewall.rs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) Summary over all repositories: 2 files changed, 223 insertions(+), 4 deletions(-) -- Generated by murpp 0.11.0