From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 02 01:58:42 2020 Received: (at 43155) by debbugs.gnu.org; 2 Sep 2020 05:58:42 +0000 Received: from localhost ([127.0.0.1]:57963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDLn0-00006F-VV for submit@debbugs.gnu.org; Wed, 02 Sep 2020 01:58:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDLmy-000062-QD for 43155@debbugs.gnu.org; Wed, 02 Sep 2020 01:58:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39939) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDLms-0001y8-6W; Wed, 02 Sep 2020 01:58:26 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=44514 helo=dundal.janneke.lilypond.org) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kDLmq-0006Wr-5O; Wed, 02 Sep 2020 01:58:25 -0400 From: Jan Nieuwenhuizen To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#43155] [PATCH] hydra//build-machines: Update childhurd-net-options for secret-service. Organization: AvatarAcademy.nl References: <87h7sha71o.fsf@gnu.org> <87r1rl6vpr.fsf@gnu.org> X-Url: http://AvatarAcademy.nl Date: Wed, 02 Sep 2020 07:58:13 +0200 In-Reply-To: <87r1rl6vpr.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Tue, 01 Sep 2020 23:19:44 +0200") Message-ID: <87h7sg67pm.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43155 Cc: 43155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: Hi! > Jan Nieuwenhuizen skribis: > >> With bug https://bugs.gnu.org/43106 just closed we now have a nice way >> to inject secrets into the Childhurds. >> >> Using the attached patch, which needs a fresh pull and reconfigure on >> berlin (at least the nodes 101,102 that run Childhurds), we can create a >> tree of childhurd secrets like so >> >> /etc/childhurd/etc/guix/signing-key.pub >> /etc/childhurd/etc/guix/signing-key.sec >> /etc/childhurd/etc/ssh/ssh_host_ed25519_key >> /etc/childhurd/etc/ssh/ssh_host_ecdsa_key >> /etc/childhurd/etc/ssh/ssh_host_ed25519_key.pub >> /etc/childhurd/etc/ssh/ssh_host_ecdsa_key.pub >> >> ...and then we should be able to start offloading builds for the Hurd. > > Yup! Probably we=E2=80=99ll create /etc/childhurd/HOST for each VM, so w= e also > need to adjust accordingly, right? Yes, we can add something like (secret-root (format #f "/etc/childhurd/~a" id)) to the (service hurd-vm-service-type (hurd-vm-configuration ... (i'm a bit curious, though, why we would want to differentiate between childhurds, they can be all identical?) > (I realize that the current code will silently keep going if we forget > to put the secret files in place; IOW, the service config doesn=E2=80=99t= show > the files we intended to push as secrets. Oh well, we=E2=80=99ll see that > later.) Yes, I guess that's a feature -- "you" can start it once, then do something like mkdir -p /etc/childhurd/etc scp -r childhurd:/etc/guix /etc/childhurd/etc scp -r childhurd:/etc/ssh /etc/childhurd/etc >> (I guess we then also need to add a cuirass jobs for the Hurd?) > > Yes, or maybe just change =E2=80=98systems=E2=80=99 in the Cuirass specs = for > =E2=80=98guix-master=E2=80=99, but then it=E2=80=99ll try to build everyt= hing for GNU/Hurd, > which doesn=E2=80=99t sound like a great idea for now. I agree, not much sense in that yet. > Perhaps we can simply add a separate jobset pulling from =E2=80=98master= =E2=80=99 but > building only for i586-gnu and only the =E2=80=9Ccore=E2=80=9D package se= t? Hmm, why can't I find the definition of "core"?. Anyway, It would be a great first step to build (everything needef for) "hello", after that we want to have/try "guile-3.0" and possibly "guix". >>>From 6d1c388ed82c260af27b556c0677e780ee410b05 Mon Sep 17 00:00:00 2001 >> From: "Jan (janneke) Nieuwenhuizen" >> Date: Tue, 1 Sep 2020 16:31:42 +0200 >> Subject: [PATCH] hydra//build-machines: Update childhurd-net-options for >> secret-service. >> Content-Transfer-Encoding: 8bit >> Content-Type: text/plain; charset=3DUTF-8 >> >> * hydra/modules/sysadmin/build-machines.scm (berlin-new-build-machine-os) >> [childhurd-net-options]: Include secret-service local QEMU forwarding. >> Use variables from (gnu services virtualization). > > LGTM, thanks! Great, pushed to guix-maintenance as 04c0fc1ea110b82d6180bbc1b2f895e55e746c= d8 Janneke ...after first pushing this -- Ooopss typo fix --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-hydra-build-machines-Oops-typo-in-childhurd-net-opti.patch Content-Transfer-Encoding: quoted-printable From 35dd1de08f1b812a22184e925b089ffc471c52de Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Wed, 2 Sep 2020 07:52:13 +0200 Subject: [PATCH 1/2] hydra/build-machines: Oops, typo in childhurd-net-options. Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=3DUTF-8 * hydra/modules/sysadmin/build-machines.scm (berlin-new-build-machine-os) [childhurd-net-options]: Remove stray dot from parameter list. --- hydra/modules/sysadmin/build-machines.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydra/modules/sysadmin/build-machines.scm b/hydra/modules/sysa= dmin/build-machines.scm index b4afcbe..0a3e113 100644 --- a/hydra/modules/sysadmin/build-machines.scm +++ b/hydra/modules/sysadmin/build-machines.scm @@ -118,7 +118,7 @@ EMULATED-ARCHITECTURES, unless it's empty." (mcron-configuration (jobs (list gc-job)))) (operating-system-user-services %hurd-vm-operating-system)))= )) =20 - (define (childhurd-net-options . config) + (define (childhurd-net-options config) "Expose SSH and VNC ports on 0.0.0.0; for first Childhurd VM those are 10022 and 15900." (let ((id 0)) --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-=--