From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 SDCEEn4XU2LFXQEAgWs5BA (envelope-from ) for ; Sun, 10 Apr 2022 19:44:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kHXlCn4XU2LN7gAAG6o9tA (envelope-from ) for ; Sun, 10 Apr 2022 19:44:30 +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 ABF2FBCEC for ; Sun, 10 Apr 2022 19:44:29 +0200 (CEST) Received: from localhost ([::1]:54476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndbbw-0000yi-HC for larch@yhetil.org; Sun, 10 Apr 2022 13:44:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndbbW-0000yZ-BE for guix-patches@gnu.org; Sun, 10 Apr 2022 13:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47466) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndbbV-0004LC-Rh for guix-patches@gnu.org; Sun, 10 Apr 2022 13:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ndbbV-0001ZJ-Oy for guix-patches@gnu.org; Sun, 10 Apr 2022 13:44:01 -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: Sun, 10 Apr 2022 17:44:01 +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.16496126376009 (code B ref 54811); Sun, 10 Apr 2022 17:44:01 +0000 Received: (at 54811) by debbugs.gnu.org; 10 Apr 2022 17:43:57 +0000 Received: from localhost ([127.0.0.1]:41363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndbbQ-0001Yr-Qz for submit@debbugs.gnu.org; Sun, 10 Apr 2022 13:43:57 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:60320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndbbO-0001Yi-Vx for 54811@debbugs.gnu.org; Sun, 10 Apr 2022 13:43:55 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by albert.telenet-ops.be with bizsmtp id H5js2700J4UW6Th065jsgc; Sun, 10 Apr 2022 19:43:53 +0200 Message-ID: <7deae864707fc4aab3eadc28936775c6b920f8f9.camel@telenet.be> From: Maxime Devos Date: Sun, 10 Apr 2022 19:43:48 +0200 In-Reply-To: <87sfqk6dvi.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> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-IcSWmvy+Rj+3lqPFN7TA" 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=1649612633; bh=vJZ1L9TAgAcw/kq3M0uFS+orKL6MiqW4VytATDTzaMI=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=L/+VtKFTOUVJ4fFAykShePbJbQxvYwWeRMfhYciotO92h+ewjeu5VAwua0m24lERc y2A5Jzv/ridUigam91QydEukqXhSlOuTt3pxOZnlxdAKQGW1wjlh1Wye6g/JtmgVF2 yyTV5gCOxJnWqJKk414pyE1KShuapEZbN1C3hqASd2fpORELuljYkfr9c9XcBMSrd9 +6HMpQtj1iMvUBaps5TV244En9kmzWQBbvR4TnY9SlOACMIdPuqgwWNBvvFJOwqQGf TWLhseDp9x4a/MTRPyDF6r39Gw9CHO/zhFwtI4cIngsz99+fqdy0EovA5ie5BGWOJg rfNaXrQZRn1zw== 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=1649612669; 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=vJZ1L9TAgAcw/kq3M0uFS+orKL6MiqW4VytATDTzaMI=; b=gTsHqOkLlemqyMwKTbMx8LJ6sby/6l1aawkfAREd5f4Qfo6FTa/sX9gEcmueg1WiLjwCVf +BCiDphYad25hfbv4lelLa8Qvo4ID9Oxkk5VSNQO3Oh09pX2oa9uuSPNLHAO1k/WCXmC+n RJeXbJhXcfimN4J+F+tPdgBY3kV1pm4jhedBSOzPFQ0kHz4Oz6wiMG3RJF4V6G/5dkCW0N +E6Pnm1J4I04i4AWHa2zY42HSc1ExlC7HwWehRksmzU8IiIQKrdlALRCsvJzgLrdXZGQlE DS6poTqb1AJt6KuaLvNOOEuswQCIPBHXQGsL2l4RhMMPeuV3sTdbZ3k24woTAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649612669; a=rsa-sha256; cv=none; b=sCaZwwaciysed/RmMH+Ie6yT5xvDKhiaHlcodqtCGRi5QLfZmy3HnJA7qYWvGuaQQqJ0Mm YqWu+3Y+thWUEgjGagVZ37nC4ABeOc8INbn9kJO4qqpBLIfRkil2yxuLQRdVXQ5pmGi18G xKDXM01Pl3boJ6YA8Hoh1YqRiIF5SDDWIF/AulVK7smuZyWC2rIu5+k/QK7882hzIqMUM+ 90qvx6F9aML0W0kWpwLg+oxP7kbnjeZkN/Kh9hVrqCeSwL0S8ORGbCmF29y3uCr92w9gdR 5iuC/wI2H0jzTcxfwczSvr4Sd+eLdTO6hU0MJ/RHpZSjy0Y07d8mWCnIiqX2/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b="L/+VtKFT"; 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.83 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b="L/+VtKFT"; 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: ABF2FBCEC X-Spam-Score: 4.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: b3YQfyvZ929+ --=-IcSWmvy+Rj+3lqPFN7TA Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op zo 10-04-2022 om 19:34 [+0200]: > Maxime Devos skribis: >=20 > > Ludovic Court=C3=A8s schreef op za 09-04-2022 om 22:30 [+0200]: > > > Maxime Devos skribis: > > >=20 > > > > Ludovic Court=C3=A8s schreef op za 09-04-2022 om 11:12 [+0200]: > > > > > =C2=A0 publish: Support systemd-style socket activation. > > > >=20 > > > > Does this imply that, at least when avahi/--advertise isn't used, > > > > "guix publish" can be run in a container without network access, > > > > in a container that only has access to /gnu/store, the private/publ= ic > > > > key and wherever the nars are stored? > > >=20 > > > I don=E2=80=99t think it makes any difference.=C2=A0 Or am I misunder= standing? > >=20 > > Is =E2=80=98it=E2=80=99 =3D =E2=80=98the new socket activation support= =E2=80=99, or =E2=80=98the avahi/-- > > advertise option being enabled or not=E2=80=99? >=20 > =E2=80=9CIt=E2=80=9D referred to the long condition you wrote.=C2=A0 :-) >=20 > One thing is sure: when =E2=80=98--advertise=E2=80=99 is used, we shouldn= =E2=80=99t use socket > activation or nothing will be advertised.=C2=A0 Is that what you mean? No, how would socket activation prevent advertising? How would guile- avahi even know that we are doing socket activation? What I mean was: * if guile-avahi sends messages to the network by itself, then it cannot be run inside a networkless container, otherwise only the container's loopback would receive them. * if guile-avahi talks to some daemon via a unix domain socket, then no problem * IIUC, previously, "guix publish" could not be run inside a network container, because it tried to listen by itself (and listening to a container's own loopback isn't useful). * but in case of socket activation, this problem disappears * bonus: except possibly for the secret key material, "guix publish" does not have to be started as root anymore even if uses a reserved port such as port 80 (assuming socket activation is used). Greetings, Maxime. --=-IcSWmvy+Rj+3lqPFN7TA 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+4iGRcl7gUCYlMXVBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7g3PAP0RgWhjegefwuLAnTqJEYHIVX/c ebTpEjrXszg7RQXEggD+O9rc7FePFpEFhrHMN7FDjcIIIp0crH9n8XLRkH+jxQY= =N7jj -----END PGP SIGNATURE----- --=-IcSWmvy+Rj+3lqPFN7TA--