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 B5ED71FF14C for ; Fri, 12 Jun 2026 19:42:32 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 317B7188D4; Fri, 12 Jun 2026 19:42:31 +0200 (CEST) From: Stoiko Ivanov To: pmg-devel@lists.proxmox.com Subject: [PATCH pmg-api/pmg-docs/pmg-gui v3 0/5] tracking-center: make input-base configurable Date: Fri, 12 Jun 2026 19:40:57 +0200 Message-ID: <20260612174145.1190233-1-s.ivanov@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-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1781286064755 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.084 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 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: ETZNP3FDI5LLBXCFR35YPVFDJZ4YNUPT X-Message-ID-Hash: ETZNP3FDI5LLBXCFR35YPVFDJZ4YNUPT X-MailFrom: s.ivanov@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 Mail Gateway development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: v2->v3: * pmg-api patch 2: change the validation from a regex to a validation sub to sanitize the path and prevent curdir and parentdir as well as consecutive slashes Thanks big-time to Max for checking the series so quickly and for the valuable feedback and insight into SectionConfig! I decided to not implement some of the suggestions (as talked off-list): * root-only vs. root_only - as this is not a user-facing/api parameter, left it in snake_case to not have to quote it. * I left the maximal directory depth at 6, as we can very easily extend it if someone requests it, while restricting after having this public would be backwards incompatible * pmg currently does not have a concept of api-permissions and not showing/modifying elements where an user has no permissions - implementing this would expand the scope of this small patch series too much (PVE has this in access-control [0]). * the docs for pmg.conf get generated automatically based on the property descriptions - see [1]. [0] https://git.proxmox.com/?p=pve-access-control.git;a=blob;f=src/PVE/RPCEnvironment.pm;h=7591aa9ed414f4e70b66bc6c40cb054bd2e8231c;hb=5ccd07d9302562b73374d331b63d25b04b86766c#l178 [1] https://git.proxmox.com/?p=pmg-docs.git;a=blob;f=pmg-doc-generator.mk.in;h=e9253c4a84b0d545021259b68c2051b6697a11f5;hb=b3a0fb7f942001a26d2386e5d1ee47be2b9eaf0b#l51 v2: https://lore.proxmox.com/pmg-devel/DJ5IDD9OR8HE.ENMUIGWPW37U@proxmox.com/T/#t pmg-api: Stoiko Ivanov (3): config: add root_only paramter option. config: add log-tracker-base key fix #3657: api: tracking center: explicitly set input base from config src/PMG/API2/Config.pm | 10 +++++++++- src/PMG/API2/MailTracker.pm | 5 +++++ src/PMG/Config.pm | 20 ++++++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) pmg-gui: Stoiko Ivanov (1): fix #3657: system options: add log-tracker-base textrow js/SystemOptions.js | 6 ++++++ 1 file changed, 6 insertions(+) pmg-docs: Stoiko Ivanov (1): pmg-log-tracker: mention that input-base can be configured via GUI pmg-log-tracker.adoc | 3 +++ 1 file changed, 3 insertions(+) Summary over all repositories: 5 files changed, 43 insertions(+), 1 deletions(-) -- Generated by murpp 0.12.0