From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qFHHAm9pe2LqnwAAbAwnHQ (envelope-from ) for ; Wed, 11 May 2022 09:44:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UI7oAW9pe2LuWQAAG6o9tA (envelope-from ) for ; Wed, 11 May 2022 09:44:47 +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 74AE845C9A for ; Wed, 11 May 2022 09:44:46 +0200 (CEST) Received: from localhost ([::1]:47580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noh1Y-00077P-In for larch@yhetil.org; Wed, 11 May 2022 03:44:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nogv5-0005qU-0B for bug-guix@gnu.org; Wed, 11 May 2022 03:38:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42047) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nogv4-0007xO-OC for bug-guix@gnu.org; Wed, 11 May 2022 03:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nogv4-0006QI-Hg for bug-guix@gnu.org; Wed, 11 May 2022 03:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55359: How do I extend openssh-service-type ? Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 11 May 2022 07:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55359 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Edouard Klein Cc: 55359@debbugs.gnu.org, help-guix@gnu.org X-Debbugs-Original-Cc: bug-guix , help-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165225466324657 (code B ref -1); Wed, 11 May 2022 07:38:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 May 2022 07:37:43 +0000 Received: from localhost ([127.0.0.1]:35944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nogul-0006Pc-CD for submit@debbugs.gnu.org; Wed, 11 May 2022 03:37:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:55146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noguj-0006PT-6T for submit@debbugs.gnu.org; Wed, 11 May 2022 03:37:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noguV-0005jz-5Y; Wed, 11 May 2022 03:37:31 -0400 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:39578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noguP-0007nd-6m; Wed, 11 May 2022 03:37:23 -0400 Received: by mail-lj1-x236.google.com with SMTP id t25so1468186ljd.6; Wed, 11 May 2022 00:37:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Ik5j4HfgHrpGi78Xn2Y7yrDWoJA5FJHekFwwUMY+thc=; b=CSdnrj+PfPorl51C6Mac/M4JHslGMoanyXeDh6ATnyx5H2owkBAYJHKWWvLur+zj3Y gLlCqzZlIe2keG08aPU9ziOtOU72eYC6rg+SPff8EviH+nyZa6yvRAVm/Mvq9/LYRU97 EokeIb2uS4jdDiwoEKy5DkANE5elcwFvZcqPE2ksTXBbRfB4+GPTTAXOismihgCcYIxf 69RD5C8HznRCbo8Khjzp2w61mvIBosYH9e4+TYY5AIQzCraTZqFZJ2yxIaXNeWHLFYyc CnL3069gfjQ760zJVkkR2GiZqVxLpC1PVxwCaP0upD9VHz5hSMeqWw0K1KeGFWk/Jv0O +8TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Ik5j4HfgHrpGi78Xn2Y7yrDWoJA5FJHekFwwUMY+thc=; b=oTSsz/kKFIyteHYqbbRQGjXUIBZMUX5rTsGa0vxUv4RtGQ+VrnOrtKlbkQa2RVmgSF T6USpr91m/FJRTa1HzJ0lLd725TujBDn1NCsBpZUOsUy1gN/spIY9Qe2rLpeMbvm+gp+ xpf6RZgMr3DQ+l2yFv//Q62u6Jw8cIeb5mf3eEaKpQ9pgADVRLvtELO8IAtt/rIg6ILy WT7tJdDwi6XbFoDF7iSDQKJ8ISavdh+hcvjiJtXfCNvB/vZhAUZGL2T0ApVXnMT8yiGj zsE94wrxwbjR156b4g2jjrVFvxZLzeWX2wp89N+7kjTGjBKDlX0Z5EYangWpTUpET9+H vPNg== X-Gm-Message-State: AOAM530MOvvA6kHrV1Q4iD0BoBrBymH6kEp2FkrA92TKef3N9D5U01dQ +MMZRzYminlwH5x1GsqQRwc18m/0Z4s= X-Google-Smtp-Source: ABdhPJw+Enl0Dn6kMQdgTgcX79Kj+I5Poyv/gUNbpKaJk6/7RyA4WrphClPFD7WRboaoiU8Rk69b6g== X-Received: by 2002:a2e:944a:0:b0:24f:10bd:b7e8 with SMTP id o10-20020a2e944a000000b0024f10bdb7e8mr16143554ljh.238.1652254628350; Wed, 11 May 2022 00:37:08 -0700 (PDT) Received: from guixsd ([88.201.161.72]) by smtp.gmail.com with ESMTPSA id d17-20020ac25ed1000000b0047255d2116bsm158453lfq.154.2022.05.11.00.37.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 00:37:07 -0700 (PDT) From: Oleg Pykhalov References: <87tu9xum2c.fsf@rdklein.fr> Date: Wed, 11 May 2022 10:37:04 +0300 In-Reply-To: <87tu9xum2c.fsf@rdklein.fr> (Edouard Klein's message of "Tue, 10 May 2022 23:07:10 +0200") Message-ID: <87r150o6zj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=go.wigust@gmail.com; helo=mail-lj1-x236.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652255086; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=Ik5j4HfgHrpGi78Xn2Y7yrDWoJA5FJHekFwwUMY+thc=; b=OyQdFhwFIN9BFnjQ7uWThgAqK8owU/bQgADHCz9abpkfWGDHGaErDO2B2ieyj0leXmvcrw 7zOjEDFstjU0Wj16SfNXNTl/E0uf6U0KTFrP1x/mL0rGv3VWGqhu34emPKFdA0PsBaUAPY /F8uNC/b2lP6vUv35XE3XfXRyb8LYrmC8i40rDzfsR/maKhSwg/pR6YOxjij0bUbFApvRv M3A2wIvFRm+2vcNyMIqMcoxdwxr/ZNQ9gKfigHSVt41elAgX3Ns9WdfX9IuLLsVQZt8cno pj2SmO8bVRq1ivjMJcQW9eEabMmZsy51k2JWHJGVpxdvtdpDkx4eFHDMJuzYUQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652255086; a=rsa-sha256; cv=none; b=Mc6ZT19kK0CZoDLWYssFXiKWne8sqZWlViZoQU2PtKVrII1+FwXey1ytDKtd55unLJvpG6 xZPmXsnMtlcbN10TcDzyKWHmWCGXo32tnYslSS4Im4XlByAVyveRITNTTSnTQPRT+B7Mm8 icGLTnmPl/zdWTOitPoiSOsTKsjKhdUcO2zUgfRiHB4PjNDLmu7W5k8GHj2UbFnW/ioL4L P56XILVmrUPNXd7BeTP931D0C/6BJFChzgH8E8i/8wjzM3qHtH/sv1pesW2ezqp119wQtS ifcY9ummtnllyDTsD7xXHXR1K91l7cE+56bLy1sU1s+qoRGhmFoeWlQRYB7G7g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=CSdnrj+P; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=CSdnrj+P; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 74AE845C9A X-Spam-Score: 4.69 X-Migadu-Scanner: scn1.migadu.com X-TUID: tJbvEOP5brcO --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Edouard Klein writes: > I'm trying to make sense of: > https://guix.gnu.org/manual/en/guix.html#index-openssh_002dservice_002dty= pe > > #+begin_quote > This service can be extended with extra authorized keys, as in this examp= le: > > (service-extension openssh-service-type > (const `(("charlie" > ,(local-file "charlie.pub"))))) > #+end_quote [=E2=80=A6] Seems like extend-openssh-authorized-keys procedure does not use keys argument. We could fix it like: =2D-8<---------------cut here---------------start------------->8--- diff --git a/gnu/services/ssh.scm b/gnu/services/ssh.scm index 7fbbe383e5..4bb3969b95 100644 =2D-- a/gnu/services/ssh.scm +++ b/gnu/services/ssh.scm @@ -558,7 +558,7 @@ (define (extend-openssh-authorized-keys config keys) (openssh-configuration (inherit config) (authorized-keys =2D (match (openssh-configuration-authorized-keys config) + (match (append (openssh-configuration-authorized-keys config) keys) (((users _ ...) ...) ;; Build a user/key-list mapping. (let ((user-keys (alist->vhash =2D-8<---------------cut here---------------end--------------->8--- Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCgAyFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAmJ7Z6AUHGdvLndpZ3Vz dEBnbWFpbC5jb20ACgkQFn+OpQAa+pzHPw//VzB3SKSjJRFcqWPZUljqh4n3XTOH aX7USRHFUwfgUxXECz3+FoRCtCok/qqUCTFYOZIElpEpzp1J+qFM1Y6WKZ96JMAU 31TXjFT3vUNisrbGCaiyOKRAlwq38Ew+oL1uo9mf1VfC8LR6YEpB5YXnyHiy8oVQ LvOtUZ2+2ae9Tq6nUKhW1cEGhP+LghCuxD3IlITnCMIF8W7DKCBbZd+7z5V71XL9 TD6/vEk7ygovb3Mtlip0DtYKz+288Js1xG0myASl7G0uULKCBx/mz97/FEiOQBvR Kg4GESPwIGMKNHW6+uh1gU/+ZjC1W/sozXIDu95v3n9iLn/ZNzFoKNzayF/tYDCC ui3090wP4IwlpBgYI/7ROy00Y4MTNPgrP00l5/GPqjNQLOvi6KX7bFtgsDfEqgar RvUIKUmJkcbCLILYQl3JxFGv2uvh4NijTRUYRnIZcpCMsjHYahnfWYwTAiruOZ1y hN42gJ1uQHyk2bcji55L2BM1qcCoeWfY2l6JH2V+B3/QGDzjmrE3JJ7qDwmfUaeE mChPJkXIrLxCGlzEoXQiYMAs6/41hN6rIoYTaZciXRrF5oGvcheZAHSlMahaiRaR 205SlgkyZ4dRX8bhEWMNQ+21B/Ha/k5dVDd6R5uZJVIWQGuzssrQ7jKfvVbbF/I0 9zalSc1b7vIHS7g= =1LmA -----END PGP SIGNATURE----- --=-=-=--