From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 uIUTMfL5U2Lz/wAAgWs5BA (envelope-from ) for ; Mon, 11 Apr 2022 11:50:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QHPYLfL5U2IjowAAauVa8A (envelope-from ) for ; Mon, 11 Apr 2022 11:50:42 +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 3179E2EA2C for ; Mon, 11 Apr 2022 11:50:42 +0200 (CEST) Received: from localhost ([::1]:38794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndqgy-0003Gl-UP for larch@yhetil.org; Mon, 11 Apr 2022 05:50:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndqgM-0003GP-H7 for guix-patches@gnu.org; Mon, 11 Apr 2022 05:50:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48614) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndqgM-0000VM-8O for guix-patches@gnu.org; Mon, 11 Apr 2022 05:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ndqgL-0000BU-W0 for guix-patches@gnu.org; Mon, 11 Apr 2022 05:50: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 09:50: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: Maxime Devos Cc: 54811@debbugs.gnu.org Received: via spool by 54811-submit@debbugs.gnu.org id=B54811.1649670542602 (code B ref 54811); Mon, 11 Apr 2022 09:50:01 +0000 Received: (at 54811) by debbugs.gnu.org; 11 Apr 2022 09:49:02 +0000 Received: from localhost ([127.0.0.1]:42511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndqfN-00009T-Sj for submit@debbugs.gnu.org; Mon, 11 Apr 2022 05:49:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndqfM-000092-4l for 54811@debbugs.gnu.org; Mon, 11 Apr 2022 05:49:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndqfG-0000Lr-K0; Mon, 11 Apr 2022 05:48:54 -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=c59hinSBwa2DjYwYIeKoE1aDq+AgG0lii9Bdijhq/iw=; b=iZQ1Bbv5QrDu5DatilcA k97UCBfE4qTvB4xZfTXm8IYYIks70D5IZZ5bNJlY/6vcoCCOkzTHIc77XIs3/2w3Uk5V6T9Qq5cSN GxSXy0JvjqM7dKkzTjet14qvKL99o8NZQVMVqV8tjQiuLZXa2uJn9gjVon0qENSulTAFHr3pBygS9 0Upi4CNOqYs0zV6MfNPMX/+8rgTmitDk1CaQe5VME09hW7eB4HOd7RKd6EBct0+XKt39Dv7jPC8SU Njaromgr1fWPxXsYnB/Bh0TXsPePIMSZ+/SwQO6wd68K86e+jN2wtyvbbYlCLEUzZCJtjHXQkCTmP PnmjpaU+LB7E6w==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:49763 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndqfF-0003YP-BN; Mon, 11 Apr 2022 05:48:54 -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> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 22 Germinal an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 11 Apr 2022 11:48:51 +0200 In-Reply-To: <7deae864707fc4aab3eadc28936775c6b920f8f9.camel@telenet.be> (Maxime Devos's message of "Sun, 10 Apr 2022 19:43:48 +0200") Message-ID: <877d7wkl18.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=1649670642; 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=c59hinSBwa2DjYwYIeKoE1aDq+AgG0lii9Bdijhq/iw=; b=N/75AOZD/Wmg8bgXZ/SoMqEzcp6AGAmVbAbW/ZOd4TyHlSnpV72nvQbTDyT+fkwMX37LmI uiZWnAzYwPyn0oIIVgdCHP46rdFXj3nvpxO1CxsJUq4TuSMfgHygg4zeA91q/fkcx/j0JP mFava3aLGrz1mKCxOOYNIA6RRSyiu6vFGOYFvrxJQuXP6sSiWdNQZFVW8jq4MK0n43XpPF 2D7pSsNA3G1IH1KgBRx2CBclSZtknn4kqTj+DXntTR/ohw+yEn6rJlL03w7SuAT0DUay8a Z6xG6lezVflMvoKFTOUNtlTw1wzPPQ47KUajuewNbXgDJ+Xoj3kitumrWy7DXg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649670642; a=rsa-sha256; cv=none; b=Kz3usSWB5jmy7QJHzMB0vVe7CGzK0ieHl2ftJRvhihQUgWvHndSM6qcMzzFaXMVvWoaa+m QDG4d0ehfI9gmGtIEoTbmohcLn9Sekoew8CGYXR4A52HCX9HaBbKxFfCu6TadapQzL9AYO 5MPb63CINGQh1nqxoHtn57sWOH+nENoCE86o/7wugaJsb/K+vVp5x4IxcRxB1aRkYNHmKF JY/m1R1v+2aG/L7D4n07S0oyGaWB8+fwx6gm5xMO/z1lBD8Cv1mwF4jQMVLyXDarIvSu7f 8GleA2vdpuheiufBV/aO25bqVUdJh1ngK+z+/Sb/v7m1krlF4DERU8atcSbApA== 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=iZQ1Bbv5; 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: -5.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=iZQ1Bbv5; 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: 3179E2EA2C X-Spam-Score: -5.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: fbmF40Ih3cmG Maxime Devos skribis: > Ludovic Court=C3=A8s schreef op zo 10-04-2022 om 19:34 [+0200]: [...] >> One thing is sure: when =E2=80=98--advertise=E2=80=99 is used, we should= n=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? As currently implemented in the Shepherd, socket activation means that the process is started lazily, the first time a connection request is made. If the =E2=80=98guix publish=E2=80=99 process isn=E2=80=99t started,= then DNS-SD publication doesn=E2=80=99t happen. > 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 Guile-Avahi talks to avahi-daemon over a Unix-domain socket; avahi-daemon then does the actual mDNS/DNS-SD publication. > * 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 Well, shepherd, as an ordinary process in the container, would also try to listen by itself. But I think that=E2=80=99s fine; worst thing is nobody ever connects to that socket, but that=E2=80=99s ok, no? > * 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). But it does need to access the secret key=E2=80=A6 Ludo=E2=80=99.