From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id F8RgEcTv2GT/LwAASxT56A (envelope-from ) for ; Sun, 13 Aug 2023 16:59:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yPlqD8Tv2GTI7wAAG6o9tA (envelope-from ) for ; Sun, 13 Aug 2023 16:59:16 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 86A1B4660D for ; Sun, 13 Aug 2023 16:59:15 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=Voue5AL2; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691938756; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=33tWocpl6hIPsXPIoXGCWWpeYQAjJ/X00as8Bzu9NCc=; b=bVoQ/xXOWQ6YsH5mtYIk+nbFtJpxJatDwE6Y3D2CoM7d425gOu9swUwaHYJdEjpR+hAW5f wHiHh/8eLzKDjT9N2VE9SIBxGh6axbYkUOxSrGiVfyGWoYyf9zV2hBCFcj5I17X21pwj3Y VyDonnjav92koPcv8j4FO4nwBLYhVP2kCpYwaTz66nV04S/L0uNq5ykeINU7Ba5mAce1o/ 6C91NHG6M17gIYPt5ldftqkvKOPd91Q0FxUk/oMCxZTEF1ML3lR/xxOKDrPGVNOCLRD0De 5mDNWBs3n+S9kCOMTEFKlomOItJLSuxHGpWTtZ+5vFM3uD8hhYBzGAqMND8wpQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=Voue5AL2; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691938756; a=rsa-sha256; cv=none; b=jpkIjzorrJVA5vI88bvSgII8/wIXwAsa6FsAgchxqdJZkJV+yBUQZ6DCp054rRrBylL2On qccMWeevgKtWEdbbTkIwgGnhBJNULa4OPBGhIzZWql/8sGBsFxZJIH2cgxsCWvul34lAHr Br9a1pI3gNNs6ift/AYE5TDARr4kYYvGCZAw2hDSQP6mNql8r3ZAhLbNjyS6SjBCFAWMHI t+FLU6u0H3IFjfCqUac2RS0G6bU1gbneP+073WMLfGcOR9sN2S+P9kfeXaU65se3jhMkrG x4J6a1Pwzs80wpioEC5/fpN3HBNDA7Iy52OpPG+tzDSX9z0dUMPrzdvvO9Ihjw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVCYF-000472-M5; Sun, 13 Aug 2023 10:58:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qVCYD-00046k-BD for help-guix@gnu.org; Sun, 13 Aug 2023 10:58:41 -0400 Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qVCYB-00011a-EL for help-guix@gnu.org; Sun, 13 Aug 2023 10:58:41 -0400 Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-76ad842d12fso241502485a.3 for ; Sun, 13 Aug 2023 07:58:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691938718; x=1692543518; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=33tWocpl6hIPsXPIoXGCWWpeYQAjJ/X00as8Bzu9NCc=; b=Voue5AL28oQKkx5ZOW8LSio8YcP4VUdtfy7EKeP0kFHtfzCzLce6Es7vI01cOUUTIw dCjCC1+7rA+GzBctNy2RZkNooJZQqD+6eEk/aRvPR8/8MB8Gg4skKiDo+DINwRE1kZHF MIXX/MhBmdRpGEN6X8lwyjuhoPxjcl3i9uY1Bl8Bug+7zqbbmeu5/hipBV4J+ubIZm1i 5jHTqld2jop5HSdY8setQfyUbWo5pkBETz7tDaC1O9xJa5ZssSl3huqr3goin2Wc0o4t zBjNwHsN25RDXKAwcQFFbU2ddeUywD8kRCvC2ef9o6uRMW2A2iU93Xs3WwoPjOHO3B96 frqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691938718; x=1692543518; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=33tWocpl6hIPsXPIoXGCWWpeYQAjJ/X00as8Bzu9NCc=; b=QzCqzGFDnY98vaNwomGD5AHtqSn8Kx0Wi6CtFVv7RLlKIYbv3q7M5lqVkyhi0lAyKe HB1mfNwR3cuE0SsbLS7CVx2Y2bUqzmRWXOlJ1rLujxFOJtbPAXqYW8nM/j92+voHSLNQ jB1wIR3LoyqMIlNzQCA+0HlJfEe4isFvoHn9APwD70zEy2ppRdbePflaO4bY7jZKygzA PcEHnAJmMoQC+xhT5PfNTsDUqcOE2m+OuQvWl2DrLeWG4//L1NvzZHYHM5qu0LSBDhcP xYkTXBesvX3H4zrp47uwRtjBq+C3TkIixqJAhQ/fupE5DdG3TVpHFVeNm5sT/IH5qMrd Wk0A== X-Gm-Message-State: AOJu0YzwIsHgxX+QZ7tTzp1Nhxgwp0xSwqwQik3rEp3vfedtcykE8oC9 bVnMpiowBqEggkYxxpLwzCaUBg94RrpVZA== X-Google-Smtp-Source: AGHT+IEokg8JtvhEGV0d40ayWUdseO/hJtUcctbclhAbW4zje2jVisQnmkEeokJtdQufjbUmDZtL5Q== X-Received: by 2002:a05:620a:284d:b0:76c:ea6c:599b with SMTP id h13-20020a05620a284d00b0076cea6c599bmr8471740qkp.33.1691938718313; Sun, 13 Aug 2023 07:58:38 -0700 (PDT) Received: from localhost (ool-ad039216.dyn.optonline.net. [173.3.146.22]) by smtp.gmail.com with ESMTPSA id k11-20020a0cb24b000000b0063d162a8b8bsm2695191qve.19.2023.08.13.07.58.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Aug 2023 07:58:37 -0700 (PDT) Date: Sun, 13 Aug 2023 17:58:13 +0300 From: Efraim Flashner To: Hartmut Goebel Cc: help-guix Subject: Re: Putting a file into system image ~user/ but not on reconfigure Message-ID: Mail-Followup-To: Hartmut Goebel , help-guix References: <7310402d-a58e-e64e-97fb-48bdcef77b9b@crazy-compilers.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nY0fOphiYJDwRZxO" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2607:f8b0:4864:20::733; envelope-from=efraim.flashner@gmail.com; helo=mail-qk1-x733.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 86A1B4660D X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: -1.19 X-Migadu-Spam-Score: -1.19 X-TUID: 6XUGGzXRFgQx --nY0fOphiYJDwRZxO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 10, 2023 at 02:38:24PM +0200, Hartmut Goebel wrote: > Am 10.08.23 um 14:12 schrieb wolf: > >=20 > > I guess you could have a script that would use the existence of the key= itself > > as a marker. In that case you would likely want to recreate it if the = marker > > (key) got deleted, >=20 > No! The key must not be recreated. The key is expected to be replaced by a > new one when the box will become a machine. Thus, using the key as a mark= er > is not possible, as the would recreate the insecure key on next reboot. T= he > key must never ever be put into back into place. I feel compelled to ask if the key must be in ~vagrant/.ssh/authorized_keys or if /etc/ssh/authorized_keys.d/vagrant is acceptable. Also, could you use /etc/services or another file in /etc/static as a marker that the system has been booted at least once before? > > I do not have much experience with Vagrant, but I assumed the general i= dea for > > these kind of systems declarative systems is to just recreate the when = updates > > are required. Is it expected to actually run guix reconfigure inside t= he VM? >=20 > This depends on how one uses the virtual machines :-) >=20 > And even if it is not expected to run guix reconfigure on it: If one does, > this but open a front door to the system - which is not what one wants. I suppose if you did include an /etc/os-config file you could include a custom one that doesn't include the file placed in ~vagrant and only have it in the initial creation config. They could still extract the actual file from `guix system describe` but I don't suppose there's much you could do there other than leave a warning to remove those lines. >=20 > Anyhow, thanks for sharing thoughts, >=20 > --=20 > Regards > Hartmut Goebel >=20 > | Hartmut Goebel | h.goebel@crazy-compilers.com | > | www.crazy-compilers.com | compilers which you thought are impossible | >=20 >=20 --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --nY0fOphiYJDwRZxO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmTY74IACgkQQarn3Mo9 g1HyaQ/+MfTdnzEnkUmJnWM28C8e7X6zIGDm95UjhT24nVvIbb4UBQw+OcmOuMcx NoqHwusDlYyBJ29qNoc/HnBa3OK6jZQswAmmHpLj0Xu86YHdAK0mBQVSruVEJ9XN +sJj2qs2Hj+ZqHo0lOd9+p6Zoc8l7cxlfxT8rRQfQoQhjgfB+nzN8ONiJv5EY07A 27EwxlrgHFAu37FCiGvap8S/y/I0UqcH49e692FWn2rz07kpI/QAjyVRvD+L+gZh y6Zy3oEpFHKeM7Ojm8liWXu0EWtRF6lqynoBjmRA3GZNarkAP+f0MnXunE8qvzHL kkSQ9U2wLI0RLU3pWXAypCH/CO48txdDmnWQffHvD+d3AamCFBFr7A29jFc9LEOE nlrtb6+Ql3tfPm8D5yo/Z1ey5MHtSqWvFDjgptDtPQIHRZBkCVwhpE4AWWJTl7nZ gw1m5gsyPRpStA8U314Oo2og2fBxdxw/BqDrfx4u7mLAzXKTdgdYry9UMjMHSthe wuFaylye48Ccc/1p9rXsrU2ppDB6SS2bL8R7iER9nQLj573DtH9LJrFragpsg52+ 5ET4C0tE+WyXlYWujxEQYfsvd8GyddW1U8yjGvE8MCMLW54GxuBbAiYEVkVqGzPB e6n7GACiH+KuKj6cFoawQCvXoMoQp9hj8p7/ejgD7swGh21yeww= =DBZb -----END PGP SIGNATURE----- --nY0fOphiYJDwRZxO--