From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aG+sKx09VWKpZQEAgWs5BA (envelope-from ) for ; Tue, 12 Apr 2022 10:49:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8KpeKR09VWK4TAEA9RJhRA (envelope-from ) for ; Tue, 12 Apr 2022 10:49:33 +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 6FC5B2B653 for ; Tue, 12 Apr 2022 10:49:33 +0200 (CEST) Received: from localhost ([::1]:59682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1neCDM-00049n-JB for larch@yhetil.org; Tue, 12 Apr 2022 04:49:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neCCt-00048V-E2 for guix-patches@gnu.org; Tue, 12 Apr 2022 04:49:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1neCCs-00050C-7B for guix-patches@gnu.org; Tue, 12 Apr 2022 04:49:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1neCCs-000511-2Q for guix-patches@gnu.org; Tue, 12 Apr 2022 04:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54811] [PATCH 0/3] Support socket activation in 'guix publish' and 'guix-daemon' Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 12 Apr 2022 08:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54811 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 54811@debbugs.gnu.org Received: via spool by 54811-submit@debbugs.gnu.org id=B54811.164975333219259 (code B ref 54811); Tue, 12 Apr 2022 08:49:02 +0000 Received: (at 54811) by debbugs.gnu.org; 12 Apr 2022 08:48:52 +0000 Received: from localhost ([127.0.0.1]:47463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neCCi-00050Y-0i for submit@debbugs.gnu.org; Tue, 12 Apr 2022 04:48:52 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:42860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neCCg-00050Q-9N for 54811@debbugs.gnu.org; Tue, 12 Apr 2022 04:48:51 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by michel.telenet-ops.be with bizsmtp id Hkoo270074UW6Th06kooq6; Tue, 12 Apr 2022 10:48:48 +0200 Message-ID: From: Maxime Devos Date: Tue, 12 Apr 2022 10:48:48 +0200 In-Reply-To: <87bkx7gy2f.fsf_-_@gnu.org> References: <20220409091246.6979-1-ludo@gnu.org> <09e052a24c04b9ce45131e77a9c2eeffc57149e4.camel@telenet.be> <87tub26lva.fsf_-_@gnu.org> <39d3583decc263e805b27aea6bac138dbc9787b3.camel@telenet.be> <87sfqk6dvi.fsf@gnu.org> <7deae864707fc4aab3eadc28936775c6b920f8f9.camel@telenet.be> <877d7wkl18.fsf@gnu.org> <5ba8549a9336a998133083939b1425f8bb5ad77f.camel@telenet.be> <87bkx7gy2f.fsf_-_@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-0KfIXutJxhAgBgNlkKtc" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1649753328; bh=NjalnX5+JDclBbXhOh2ts9iiD8Mtxq+QGs5QJbML/5A=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=HcFUWobB/tCVCsv16t7CI8rexr+2a927qHoskFMkAHYfRZzuTd/tWT7SzYItEJzTx gOELdiqLQLNuQWuCwYOkivLk0zYof+exCJHYXMUYyw1B9tZX2f5t99+gU5ryQvj5iK J6+/OfhPfwD+bIePAIp0lzLhT7+usl9IPzzDl0rOIZoXwY0Gp1dyVogDnnESo9RDfy tX9Q9OxwVOe/KoVmdSw6sravr21BiHMYoO/71b56osQueQN/1vCwp+6Oplm9aRUf+x UweOtimGurs+chKhFLe/MFAmlFhXy8thMFQjrbVWigqhbDQq7kqVXdf6aSDax2BSib Y5qF1ikolw0Kg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1649753373; 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=NjalnX5+JDclBbXhOh2ts9iiD8Mtxq+QGs5QJbML/5A=; b=Ir4zDLtx6UkPo7+CKarFF+UORJzZF6FO/DADtQJjj8yugkb8JBzTQEDDrIHS+9ThzfVwGT 1lcAhQmSNnZBCtg2gYYmhqAF4vfcYoqgqOWY4ms0nPMgvfQZ4jJtqwOEeaVReIT+uds6MI bIlN0uRHUHQFwGnUPOa6n3WxjnlFZGoaOwZTtaYv1InKFtH/e48dIdKJg+w03xt4qjBtSA 5d0vnn71wdVzPRSHx22UXQEfylHlevGnJD7ALpTmC7SWaIO0UoS5y6pRZP3V6qxwEVnpcq YtfH8sx8mrchdxaSwhVyS6b3P7lzwFfSxZoaCtsjocaKO5qB+iG/NBk9/P5jpw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649753373; a=rsa-sha256; cv=none; b=Ik2GcHo1dvWoi1osYNFKzDxBW2CIt7rI5B+poQmD/prGHlbbY3SnLM0mMIpQkl6xTq4CKz H+eoGP0iSb9I0hzIX3ao9yRfk/39FVaor0ghKKxTbdfHBKPk/lsY9QDcfR9Kzh+xU39d7z mtSgAB6THMRtSOvlMRTfrlJHCHZh9DWg9X6m+LC5fqCV33eP/6j8tyskEsRccFQHaDhatJ v5oHmM/XGpo8V5kq8yXVUsvy/6g74WGD6cMFELbD2fdt39/99w5hvR3A6irYsuIjzN8/sD q6GsPFA3q/0jff2VXyDEcT1cnITnAEtj8unVdV0sJC5HMi8hobk+zNovCiBKZw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=HcFUWobB; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.54 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=HcFUWobB; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6FC5B2B653 X-Spam-Score: 4.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: W9M0Q5nasF6Q --=-0KfIXutJxhAgBgNlkKtc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op ma 11-04-2022 om 22:33 [+0200]: > > Ludovic Court=C3=A8s schreef op ma 11-04-2022 om 11:48 [+0200]: > > > > =C2=A0=C2=A0 * bonus: except possibly for the secret key material, = "guix > > > > publish" > > > > =C2=A0=C2=A0=C2=A0=C2=A0 does not have to be started=C2=A0 as root = anymore even if uses > > > > a > > > > =C2=A0=C2=A0=C2=A0=C2=A0 reserved port such as port 80 (assuming so= cket activation > > > > is > > > > used). > > >=20 > > > But it does need to access the secret key=E2=80=A6 > >=20 > > The =E2=80=98guix publish=E2=80=99 could be run as a separate, say, gui= x-publish > > user, > > and the secret key could be made readable to guix-publish. >=20 > That doesn=E2=80=99t sound reasonable. Why not? =C2=A0=E2=80=98guix publish=E2=80=99 needs read access to the secr= et key anyway.=20 Though then (if done with chown) =E2=80=98guix publish=E2=80=99 could modif= y the secret key file, so maybe instead of making it =E2=80=98owned=E2=80=99 by the 'gui= x-publish' user, maybe just set an ACL to allow read access from =E2=80=98guix-publish= =E2=80=99 but not write access? Though that seems to be more complex than just letting =E2=80=98guix publis= h=E2=80=99 open the file and change users by itself, so maybe not. Greetings, Maxime. --=-0KfIXutJxhAgBgNlkKtc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYlU88BccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7kBFAQCrQfcxnWAs2pOWW4iEeN22Uh++ 5XrWsx6fdpixOKmyXgEA+oPbO3swRIQ1eJQWI4vjBx07PFdXuoXcxgIhRGCHKQI= =0lhj -----END PGP SIGNATURE----- --=-0KfIXutJxhAgBgNlkKtc--