From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 14B6C1FF0B4 for ; Fri, 27 Nov 2026 16:33:00 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id CD1A021725; Fri, 27 Nov 2026 16:32:48 +0100 (CET) From: Maximiliano Sandoval To: pve-devel@lists.proxmox.com Subject: [PATCH manager 2/3] ui: lvm: display a warning when there is no cleanup Date: Fri, 27 Nov 2026 16:32:41 +0100 Message-ID: <20261127153243.488023-3-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: 1795793563727 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.663 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: MCVDDAWCQQJY2PVQ7FNFJGQPOXAQ5J7R X-Message-ID-Hash: MCVDDAWCQQJY2PVQ7FNFJGQPOXAQ5J7R 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/LVMEdit.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/www/manager6/storage/LVMEdit.js b/www/manager6/storage/LVMEdit.js index 79bdb16c..8fcb924c 100644 --- a/www/manager6/storage/LVMEdit.js +++ b/www/manager6/storage/LVMEdit.js @@ -160,6 +160,8 @@ Ext.define('PVE.storage.LVMInputPanel', { onlineHelp: 'storage_lvm', + viewModel: {}, + onGetValues: function (values) { let me = this; @@ -291,12 +293,14 @@ Ext.define('PVE.storage.LVMInputPanel', { name: 'saferemove', uncheckedValue: 0, fieldLabel: gettext('Wipe Removed Volumes'), + reference: 'saferemove', }, { xtype: 'proxmoxcheckbox', name: 'on-remove-discard', uncheckedValue: 0, fieldLabel: gettext('Discard Removed Volumes'), + reference: 'on_remove_discard', autoEl: { tag: 'div', 'data-qtip': gettext( @@ -304,5 +308,15 @@ Ext.define('PVE.storage.LVMInputPanel', { ), }, }, + { + 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}', + }, + }, ], }); -- 2.47.3