From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eJ7PHmwzZWXiygAAG6o9tA:P1 (envelope-from ) for ; Tue, 28 Nov 2023 01:25:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eJ7PHmwzZWXiygAAG6o9tA (envelope-from ) for ; Tue, 28 Nov 2023 01:25:16 +0100 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 932C733B1E for ; Tue, 28 Nov 2023 01:25:15 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=Gg8KD8Kt; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701131116; 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=9SWU4h3bgcoOGjWeb0YtASpTjZ7YI63861+aBPx9r68=; b=r/4/20uulJ6/Gto6QExcVZZah+KA4cuMjAjxoabEYXIxpaAxke5IpNI1CO3qrP7V9U69a4 RLw3a5upzlBu+GVh9R73HVQO9Pty4/OnPiEycl8OSqcuLYV4/ccm0MR/1cMTb3bpr7QUrO PhmPc7xEHj27tbMzT994bOOecr+ei+W01qNVBRm71sUrhI+tHVFWgP4pPaHeYxnHEw4jXH /P82JO5m2s2bKnETJAlqrRNmm+RuNUHnbYzr534S7OucVhmLo26aknmhkTTFN1b7xZIPdc PLnYX4b9VN2OXBG1cpvEH9hIxzbdAeU0Ot7CeWXrapnxGknpNevOfNCWZ/WYNg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=Gg8KD8Kt; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701131116; a=rsa-sha256; cv=none; b=HZgGd06+6kV+3tWDAn0fuN473EXmqUWuy/WcEGVan1b4kGGub8hDoJBgma/Vt/e3PpPykG cSsWXl/aUY54TuBwRgCRfFeDpcdotJ0aWk3bh0aYEa7+r8WT2cLn5Up6y1Hd5vqg8VuY+i IDVy4u28lUctPjBlf6CUzwdDrOTs/9UGcZgpRfatleGpesHIG3qskkxONEnb8/OZ8+XsaB 8pgtkz/3qOhxrug9n/U3KLxsYlCzgb5uhBUB1wunsBsvhVs8Fh+uLTAmz+sZXx26Pqxj3g HHEzFMuAWR57egIc8LKtVEvPPVx684lngA/AgKGDAwZbmhfjCZ1Uk3z6DjGvnA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7luM-0004Qr-NP; Mon, 27 Nov 2023 19:24:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7luK-0004Qi-Ba for guix-patches@gnu.org; Mon, 27 Nov 2023 19:24:57 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r7luK-0001fR-2j for guix-patches@gnu.org; Mon, 27 Nov 2023 19:24:56 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7luQ-0005IB-A5 for guix-patches@gnu.org; Mon, 27 Nov 2023 19:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67497] [PATCH] Multiple deploy hooks in certbot service Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Nov 2023 00:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67497 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Felix Lechner , 67497@debbugs.gnu.org Cc: bruno victal Received: via spool by 67497-submit@debbugs.gnu.org id=B67497.170113108020306 (code B ref 67497); Tue, 28 Nov 2023 00:25:02 +0000 Received: (at 67497) by debbugs.gnu.org; 28 Nov 2023 00:24:40 +0000 Received: from localhost ([127.0.0.1]:45078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7lu4-0005HS-2Y for submit@debbugs.gnu.org; Mon, 27 Nov 2023 19:24:40 -0500 Received: from mugam.systemreboot.net ([139.59.75.54]:49562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7lu0-0005HE-Ed for 67497@debbugs.gnu.org; Mon, 27 Nov 2023 19:24:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9SWU4h3bgcoOGjWeb0YtASpTjZ7YI63861+aBPx9r68=; b=Gg8KD8KtAXhpDT7+IDhgbA3hDP 7EEQ/6UEXgasBKPxRM5qdqew/+c2NLJ47IrR+rSlh3fDNhJNAjc9n4vN8sMJUZAjuPqTHSkGB0oQE v1tSM/QVKghTwyqa24IBtAADDNiOloYYnD5qY4iyTMAhc4VCPFl2I5VAu1VCsToriyGsKK1MB+lRV kGyTOPvCII0mtLf0fFV680jlKhk0j7tYbvUfjl60UT+MPDx2C8h9/B7dykhmOlh3AWVUuTMk/yxhl giQSPT2/QUr1JTYXG5rl2l5fNL1nfbaBpwo07NnEZudABcwvRqxNbhlpjfL3ATtD1LT2Ktc5d8Gzn jKCMKakg==; Received: from [192.168.2.1] (port=43926 helo=localhost) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1r7ltn-0007cj-0d; Tue, 28 Nov 2023 00:24:23 +0000 From: Arun Isaac In-Reply-To: <87zfyzkkt4.fsf@lease-up.com> References: <87zfyzkkt4.fsf@lease-up.com> Date: Tue, 28 Nov 2023 00:24:19 +0000 Message-ID: <874jh6bu8c.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 932C733B1E X-Spam-Score: -3.53 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -3.53 X-TUID: VE1f7VuwOdW8 Hi Felix, > Certificates are often used to secure multiple services. It is helpful > to have separate hooks for each service. It's already possible to write the deploy-hook as a G-expression constructed script (using program-file) that invokes multiple hooks in succession. Something like: (program-file "deploy-hook" (with-imported-modules '((guix build utils)) #~(begin (use-modules (guix build utils)) (invoke "/some/hook") (invoke "/some/other/hook")))) Here /some/hook and /some/other/hook can themselves be recursively constructed using program-file. So, do we really need a service that explicitly accepts multiple deploy hooks? Regards, Arun