From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <pve-devel-bounces@lists.proxmox.com> Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id AD0181FF16B for <inbox@lore.proxmox.com>; Thu, 3 Apr 2025 11:42:13 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id C905D3B467; Thu, 3 Apr 2025 11:42:02 +0200 (CEST) Message-ID: <385fa21e-54b8-42b8-bc9a-b6ceebd87e20@proxmox.com> Date: Thu, 3 Apr 2025 11:42:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>, Thomas Lamprecht <t.lamprecht@proxmox.com>, Maximiliano Sandoval <m.sandoval@proxmox.com> References: <20250402143620.440158-1-m.sandoval@proxmox.com> <09b570e5-fce3-4ecc-a898-9400f21d778a@proxmox.com> <s8oa58x3a2r.fsf@proxmox.com> <b67a1dbb-1737-4d7f-9487-85ec5d4432e5@proxmox.com> Content-Language: de-AT, en-US From: Lukas Wagner <l.wagner@proxmox.com> In-Reply-To: <b67a1dbb-1737-4d7f-9487-85ec5d4432e5@proxmox.com> X-SPAM-LEVEL: Spam detection results: 0 AWL 0.014 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 Subject: Re: [pve-devel] [PATCH qemu-server] config: add system and service credentials support X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com> List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe> List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/> List-Post: <mailto:pve-devel@lists.proxmox.com> List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help> List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe> Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com> Cc: Wolfgang Bumiller <w.bumiller@proxmox.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com> On 2025-04-03 11:04, Thomas Lamprecht wrote: > Am 03.04.25 um 10:34 schrieb Maximiliano Sandoval: >> >> As per systemd-exec's man page, in total one can pass up to 1MB in >> system credentials. A VM config file is certainly not the vehicle for >> such an amount of data and I am also not fully comfortable with putting >> potentially sensitive data as plain-text inside config files or the >> cluster filesystem. I am not fully sure how to approach this long term. >> >> >> There is also the more-secure possibility to pass down system >> credentials from the host to the guest (e.g. ImportCredential= or >> LoadCredential=) but that would have the drawback that there is no >> mechanism to sync them acros a cluster. > > A mapping could abstract most of that away and also use a flag to denote > if a credential is confidential and then safe it in the root-only > /etc/pve/priv path, IIRC we do something similar for notifications > targets like webhooks. For context: With webhooks, we have 'secrets', which are dedicated key-value pairs which can be configured via the UI. For instance, you could set up a secret with key 'password' and value '12345'. In the URL/Body/Headers we support templating syntax that allows to access secrets via the 'secret' namespace, e.g {{ secret.password }}. All secrets are stored in /etc/pve/priv/notifications.cfg, which is, as you said, only readable by root. -- - Lukas _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel