From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QHoLDcKQVGIxfQAAgWs5BA (envelope-from ) for ; Mon, 11 Apr 2022 22:34:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IHg6CsKQVGIksQAA9RJhRA (envelope-from ) for ; Mon, 11 Apr 2022 22:34:10 +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 64C693C656 for ; Mon, 11 Apr 2022 22:34:09 +0200 (CEST) Received: from localhost ([::1]:44296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ne0jg-0008GY-98 for larch@yhetil.org; Mon, 11 Apr 2022 16:34:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne0ja-0008GP-Ks for guix-patches@gnu.org; Mon, 11 Apr 2022 16:34:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51943) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ne0ja-00055u-Ca for guix-patches@gnu.org; Mon, 11 Apr 2022 16:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ne0ja-0001y3-8d for guix-patches@gnu.org; Mon, 11 Apr 2022 16:34: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 11 Apr 2022 20:34: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: Maxime Devos Cc: 54811@debbugs.gnu.org Received: via spool by 54811-submit@debbugs.gnu.org id=B54811.16497092027515 (code B ref 54811); Mon, 11 Apr 2022 20:34:02 +0000 Received: (at 54811) by debbugs.gnu.org; 11 Apr 2022 20:33:22 +0000 Received: from localhost ([127.0.0.1]:45840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ne0iw-0001x9-HI for submit@debbugs.gnu.org; Mon, 11 Apr 2022 16:33:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ne0iv-0001wx-KI for 54811@debbugs.gnu.org; Mon, 11 Apr 2022 16:33:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49514) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne0ip-00050X-9c; Mon, 11 Apr 2022 16:33:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=qGeww3yS2Gv2Nly7Y+eosItTM/PhSZ0WTVRIbxQ1BxM=; b=DRDoQpL/xTs+njEXbcMh /i1yArugoZun6QNgb4bUhaSFJvLWwAQGLs3xDa2K29N9HN6e5sFCTC7Vjg2eitiiqiGxZRiyzAauw kc0CMnyydb4iX1IyH0ViQw4jrVPVEYwWbHyvvTAcvqjVpVd3x/M7en4Mc323u1NnFR/WV5BHr5abr 8hlx3PlcNcCbWuIO2AngJukjOELnJdci66xz/6oj/0sbeoqk0SvphkQQHYwUtdZcIBiMfGk4e6VYP EyY8Rl+oKQEQQimi9Xu4D0rbs98Q1aMYNv9jlmDE4BZDLE1n7gG9AHR2PTf6zwlN+QeG1VvkHNf3Q HMoVOzXVTeOYyA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:54720 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne0io-0000rw-Tb; Mon, 11 Apr 2022 16:33:15 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= 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> Date: Mon, 11 Apr 2022 22:33:12 +0200 In-Reply-To: <5ba8549a9336a998133083939b1425f8bb5ad77f.camel@telenet.be> (Maxime Devos's message of "Mon, 11 Apr 2022 12:06:36 +0200") Message-ID: <87bkx7gy2f.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1649709249; 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: content-transfer-encoding:content-transfer-encoding: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=qGeww3yS2Gv2Nly7Y+eosItTM/PhSZ0WTVRIbxQ1BxM=; b=CjSElDThQqNYYNZ3H51hZAGCXWANi2V8mrxKvnyIh8pNviYXUYCwIitnnJWYIIyNyaZ9jE NH0pia2iSkm1ErP8g9pz4h4ttCcuftjj7zrPIg3uGR/ditwKdKKoPAbYSzIkGtnnib16Ys k7hhoj/N1fr1hEMRCYg6pateyRSPZcO2TVy0G894gVgIbBpGJNkMDQUhP7lB25YQ2XPBYb vhmc6yFfr6E3KzerHHA2Cxi7z7wxch2dprNE6OqolRqtxlKf/Bf2/wQEgFhDk+zBKrw2iS DQWaYba9G2O/q33TPa8dqWWxgrIix8oFuCVtDFGJkEaQOA1DjhqpIDbwJWzClw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649709249; a=rsa-sha256; cv=none; b=TweAzWNL7/MsZfQ+3LLM9Gt11dB6UJY2Ovb8Ee/sBOfzF8PA5CkkLzSi7eFsVp/cG8RrmR UDkVbBydQjitYfwcGYlxHCHxsiPk7msPd0PpGjqM32n7/kNqyBylqJpJSCZfM0pQi1ZvMs UuK692MvXKe8ozPp75fErJWEDXBwcQm/KRmqy0Kwqvh7bCgD5SIGTyIRTyQAujSZqUlsHT o8iolGz2H35BkVADpv2GQ2CZxjWvScIm+AD1FYaXN6c+G1+VI5YWM/hKLRIcFfhJPL9+df SR6cCv9IHYYQDpZynPFEWUO/LwXCvrR4VjPd3OnjAZxjyt7g3Xtm/3wyp/WWLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="DRDoQpL/"; dmarc=pass (policy=none) header.from=gnu.org; 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: -2.97 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="DRDoQpL/"; dmarc=pass (policy=none) header.from=gnu.org; 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: 64C693C656 X-Spam-Score: -2.97 X-Migadu-Scanner: scn0.migadu.com X-TUID: 115SmJg1PsSC Maxime Devos skribis: > 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, "gu= ix >> > publish" >> > =C2=A0=C2=A0=C2=A0=C2=A0 does not have to be started=C2=A0 as root any= more even if uses a >> > =C2=A0=C2=A0=C2=A0=C2=A0 reserved port such as port 80 (assuming socke= t activation is >> > used). >>=20 >> But it does need to access the secret key=E2=80=A6 > > The =E2=80=98guix publish=E2=80=99 could be run as a separate, say, guix-= publish user, > and the secret key could be made readable to guix-publish. That doesn=E2=80=99t sound reasonable. > Alternatively, the shepherd could open the secret key file on behalf of > =E2=80=98guix publish=E2=80=99 and send it together with the listening so= cket to =E2=80=98guix > publish=E2=80=99. Sure, that=E2=80=99s feasible, but that=E2=80=99d require a custom protocol= that I=E2=80=99d rather avoid. As things are now, =E2=80=98guix publish=E2=80=99 drops privileges as soon = as it has opened the signing key anyway. Ludo=E2=80=99.