From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id cNpvMcqe7WbFhAEA62LTzQ:P1 (envelope-from ) for ; Fri, 20 Sep 2024 16:11:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id cNpvMcqe7WbFhAEA62LTzQ (envelope-from ) for ; Fri, 20 Sep 2024 18:11:54 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=KS6BvJ9J; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=mFKij3nR; 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), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726848714; 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=/VOqHNEnw6yMlpedZmoNAP+2UAUzEYZuJSfvXRXHH/0=; b=DtnCFFpASAdKQ0bBT38Mceeounc1lI5gScKc4Sz3fLJyPIGETWRSSly3BpGvS/SLAAnLUQ tqFX896MlyFvWcp8ZBJtQqLUPnmYpCO5rhFSf1pRQSVQ7FZ2jJvyxqX8lkwVnC2lGfodAx 2BrEfIev4Td3Hfvhmss7BjhalLMY189Gs68I2WpQRkLhtKCt32FgZfFK6HeShLijmuFfrT QB5XFRfwzL72xxIPF5q6AJ908dQ0sz1aQS7bblgrHHOJnv8UdtfWSYSEYcXAXufx2wDBNE JSls7X5E8975PA6xupnwjKTSiNpWMXY6/QnAa55pOMlT8rgy7XG8/ri7KWpJxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=KS6BvJ9J; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=mFKij3nR; 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), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726848714; a=rsa-sha256; cv=none; b=CzeL/BD60+W+ernqrp5YsNBAZG05T+beu755LyDfhM8woAHuBYTneNdnmwn46zLI0YFpNO 2OEhRpoZlEU8SH+kLSo6CduvKaoL52eXR9tGV4U2v6b9t/gcuwnBcG87X77yUdhA71l5M+ +EafPJqkZMkg34PfD4ZZuSus21V6MBGoUeZ1d/XL5CIW3bhG039efjmuzEmqzJky/pEezX O9fRkRdO/1TOiKTxMNM+ATNf9decwxJDbkv7ZpOHs0z01TlbiHUulietqpYizUNyzWqLN5 MWmyxj0Z3yVa0z34zHbMonPk9TlbLvfY//zsWHQsyPsPDoZuOIbHfxE4d1PZRg== 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 6DA2BADC1 for ; Fri, 20 Sep 2024 18:11:54 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srgET-0003dI-FS; Fri, 20 Sep 2024 12:11:45 -0400 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 1srgES-0003YO-9s for guix-patches@gnu.org; Fri, 20 Sep 2024 12:11:44 -0400 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 1srgER-00045r-PH for guix-patches@gnu.org; Fri, 20 Sep 2024 12:11:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=/VOqHNEnw6yMlpedZmoNAP+2UAUzEYZuJSfvXRXHH/0=; b=KS6BvJ9JDbSA9da+xZp/DfmUbic3+lhcpg/EXfnndneTDDPt75Hrmhg1HoSHjnWvb0NEYDKXd/F5EnauFKZZHSHhXVRSzfQeVC6sKEgrl5axOI+iaPwvP8w/KVV4cMueA//aqaevxrtdpp6ca9y36K4yDhO9xSRJihRbzl+6Ua37U/r/OSEVodLEF40tPoQgTuWid5E3x5V4m23H5/bPjXIlJ7eYdG2ZqezKfsQvw8QH8J689IlIT42We6tLOmx1GNCQUS9VFD8XLYbraaGfaQUNe7Y41ObNl5z/vyzQ8FGibWDih3OJVmKZ1iJBZ1jJcrEN+zQLMSRErN7KXpUwtw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srgEk-00042L-O1 for guix-patches@gnu.org; Fri, 20 Sep 2024 12:12:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70314] [PATCH] guix: scripts: environment: add tls certs to networked containers Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Sep 2024 16:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70314 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Richard Sent Cc: Josselin Poiret , Mathieu Othacehe , Tobias Geerinckx-Rice , Ricardo Wurmus , Christopher Baines , 70314@debbugs.gnu.org Received: via spool by 70314-submit@debbugs.gnu.org id=B70314.172684870315444 (code B ref 70314); Fri, 20 Sep 2024 16:12:02 +0000 Received: (at 70314) by debbugs.gnu.org; 20 Sep 2024 16:11:43 +0000 Received: from localhost ([127.0.0.1]:36146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srgER-000411-0O for submit@debbugs.gnu.org; Fri, 20 Sep 2024 12:11:43 -0400 Received: from mail-wm1-f47.google.com ([209.85.128.47]:60874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srgED-0003zT-7h for 70314@debbugs.gnu.org; Fri, 20 Sep 2024 12:11:29 -0400 Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4280ca0791bso20303125e9.1 for <70314@debbugs.gnu.org>; Fri, 20 Sep 2024 09:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726848604; x=1727453404; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=/VOqHNEnw6yMlpedZmoNAP+2UAUzEYZuJSfvXRXHH/0=; b=mFKij3nRMteKu4wN+IJAXOLvyKr4gyIeL2QsVKmRe/BQlrmPUehYj8NdVUCJSa4zzP DUzWdPMUogtZkiyKLEx7viUpmCwpzUuhn4saItX0IB/RcVi2210U2w1G6tIUr4N32iUN 4NNq4FF6o7odgvOuUEN9Lo30QSghrLeWdsjExjQz2WSvq2JVDUvmHx4lML3bEPNvI501 IC83g17pVTFyz+nLytPRA4Q6zsH0kXrzIbAG+1PXjQ8DpYCly63ee5c+oro1YOSDv/mD d4+1Q8vkE0I42P5TE+yGNZht6hdICnw7qHpB7GRRcfKdO4VA03nP8JMm1JJCpMxZjT+W i7xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726848604; x=1727453404; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/VOqHNEnw6yMlpedZmoNAP+2UAUzEYZuJSfvXRXHH/0=; b=Ebudz/jMJj/zkuO+sKxOGBWouK55B9jhtU8L1YG6d2N9btJlzTEu0IZtJs1d+BNCfC onhM69AfylaG/9w2ta3um7BQNe6sajxggTzTdJhLvtBB+QHwUdE01tYJsVnG91sQogpy EPGkXH/E7JE9EU/K1M7l66DRz5koge+m3DCcMasNP9fBaJQYAUqOMIzyCkSUJCZoRgVD z/YtIDQUX9DWmedAz1OHDmDuzFuXzoQTSEZaDdL1oznQrKM0J4FvgCE/8CdN+Jxxp18R y0dPt93GCvyW4CTSiN3fh0thYNRvgKTFEHYE2VfXeDvnqvHzTYUTog2IrXMbU5DoS654 1yJA== X-Forwarded-Encrypted: i=1; AJvYcCWwuRa5Mq8zq+bL7zgH03hpoqrE95AKXiOEyFKQ2iDZtcPfn7Ckfw1S18y3e5+nwaIGHxpt+A==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yw6LBlLZXYt0mCnaZGEGwTxzZMabb/JdYa9SWQ7Co66GzXNXLG3 0RV+4j2i/ll7z7+AChlQJMEQx+mzi00QryXeP2e4zbvf3x861i2bl3Urvw== X-Google-Smtp-Source: AGHT+IEDkMy2BMG03y0YwU8d9UKV2xamVW6d7eBamygke2jNzqIp8d1e60RUl+UysDtkQdLoMt9/Mw== X-Received: by 2002:a05:600c:358b:b0:42c:b1e1:a45b with SMTP id 5b1f17b1804b1-42e7c16ed53mr24131445e9.19.1726848604261; Fri, 20 Sep 2024 09:10:04 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e7540e4e1sm53202095e9.10.2024.09.20.09.10.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2024 09:10:03 -0700 (PDT) From: Simon Tournier In-Reply-To: <87o74obna0.fsf@gnu.org> References: <82121e1e6f3144f54d4a8e6d4276bb4581b627d2.1712689529.git.richard@freakingpenguin.com> <87o74obna0.fsf@gnu.org> Date: Fri, 20 Sep 2024 17:19:59 +0200 Message-ID: <87ed5etkrk.fsf@gmail.com> 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.01 X-Spam-Score: -6.01 X-Migadu-Queue-Id: 6DA2BADC1 X-Migadu-Scanner: mx10.migadu.com X-TUID: QttIijP4/QBH Hi Ludo, On dim., 15 sept. 2024 at 23:49, Ludovic Court=C3=A8s wrote: >> + #:autoload (gnu packages certs) (nss-certs) [...] >> +(define %default-tls-certs >> + (list nss-certs)) > > This would force all the package modules to be loaded upfront. Instead > you should arrange to not refer to =E2=80=98nss-certs=E2=80=99 until it= =E2=80=99s needed. This is a question I had but not reported when commenting elsewhere this patch. I was thinking to suggest: (module-ref (resolve-interface '(gnu packages certs)) 'nss-certs) which lazily loads, IIUC. Then I gave a look to Guile manual which mentions: =E2=80=98#:autoload MODULE SYMBOL-LIST=E2=80=99 [...] An autoload is a good way to put off loading a big module until it=E2=80=99s really needed, for instance for faster startup= or if it will only be needed in certain circumstances. Therefore, could you explain the difference if there is one? Cheers, simon