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 0CFD81FF0B4 for ; Fri, 27 Nov 2026 16:32:51 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 672DC216FD; Fri, 27 Nov 2026 16:32:48 +0100 (CET) From: Maximiliano Sandoval To: pve-devel@lists.proxmox.com Subject: [PATCH manager 3/3] ui: storage: SAN: display a warning when there is no cleanup Date: Fri, 27 Nov 2026 16:32:42 +0100 Message-ID: <20261127153243.488023-4-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261127153243.488023-1-m.sandoval@proxmox.com> References: <20261127153243.488023-1-m.sandoval@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1795793563783 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.669 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) 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: OTW4Z7XM2OJEN6XODKKOW4HGMX2HA3SE X-Message-ID-Hash: OTW4Z7XM2OJEN6XODKKOW4HGMX2HA3SE X-MailFrom: m.sandoval@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 VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: A LVM storage without saferemove nor on-volume-remove can potentially leak the contents of a previously removed disk image on newly created disk images. A warning when both are disabled is added to discourage this from happening. Signed-off-by: Maximiliano Sandoval --- www/manager6/storage/wizard/Wizard.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/www/manager6/storage/wizard/Wizard.js b/www/manager6/storage/wizard/Wizard.js index 27bf44ef..f38181c1 100644 --- a/www/manager6/storage/wizard/Wizard.js +++ b/www/manager6/storage/wizard/Wizard.js @@ -388,6 +388,7 @@ Ext.define('PVE.storage.wizard.SAN', { let settings = { xtype: 'inputpanel', title: gettext('Storage'), + viewModel: {}, onlineHelp, items: [ ...(target @@ -410,12 +411,14 @@ Ext.define('PVE.storage.wizard.SAN', { name: 'saferemove', uncheckedValue: 0, boxLabel: gettext('Wipe Removed Volumes'), + reference: 'saferemove', }, { xtype: 'proxmoxcheckbox', name: 'on-remove-discard', uncheckedValue: 0, boxLabel: gettext('Discard Removed Volumes'), + reference: 'on_remove_discard', autoEl: { tag: 'div', 'data-qtip': gettext( @@ -423,6 +426,16 @@ Ext.define('PVE.storage.wizard.SAN', { ), }, }, + { + xtype: 'displayfield', + userCls: 'pmx-hint', + value: gettext( + 'Newly allocated images can potentially contain data from previously removed images if both "Wipe Remove Volumes" and "Discard Removed Volumes" are disabled.', + ), + bind: { + hidden: '{saferemove.checked || on_remove_discard.checked}', + }, + }, ], advancedItems: [ vgname, -- 2.47.3