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 oG3KNthMAmLGaQAAgWs5BA (envelope-from ) for ; Tue, 08 Feb 2022 11:58:32 +0100 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 KMd9M9hMAmINegAAauVa8A (envelope-from ) for ; Tue, 08 Feb 2022 11:58:32 +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 6ACF5A1EC for ; Tue, 8 Feb 2022 11:58:32 +0100 (CET) Received: from localhost ([::1]:50806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHOCd-0002YZ-KB for larch@yhetil.org; Tue, 08 Feb 2022 05:58:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHNaQ-0005ly-B6 for bug-guix@gnu.org; Tue, 08 Feb 2022 05:19:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51547) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHNaP-0004OH-OB for bug-guix@gnu.org; Tue, 08 Feb 2022 05:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHNaP-0008A8-JW for bug-guix@gnu.org; Tue, 08 Feb 2022 05:19:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#49508: Implement --allow-insecure-transport for `guix pull` Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 08 Feb 2022 10:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49508 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Leo Famulari Received: via spool by 49508-submit@debbugs.gnu.org id=B49508.164431549931281 (code B ref 49508); Tue, 08 Feb 2022 10:19:01 +0000 Received: (at 49508) by debbugs.gnu.org; 8 Feb 2022 10:18:19 +0000 Received: from localhost ([127.0.0.1]:45435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHNZi-00088T-TW for submit@debbugs.gnu.org; Tue, 08 Feb 2022 05:18:19 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:36898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHNZg-00088A-UJ for 49508@debbugs.gnu.org; Tue, 08 Feb 2022 05:18:17 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 7CEEB193; Tue, 8 Feb 2022 11:18:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pZlDrSf1e8p1; Tue, 8 Feb 2022 11:18:10 +0100 (CET) Received: from ribbon (unknown [IPv6:2001:660:6102:320:e120:2c8f:8909:cdfe]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 7CBC916C; Tue, 8 Feb 2022 11:18:09 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Tue, 08 Feb 2022 11:18:08 +0100 In-Reply-To: (Leo Famulari's message of "Sat, 10 Jul 2021 13:28:10 -0400") Message-ID: <875yppbr1b.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-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: 7CEEB193 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 49508@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644317912; 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; bh=foJlipm8pJBGPSKwmCyElj35zUcvfC/RSo4KF/FGofQ=; b=jef2XhWPlix8fELT63miUdtvtKm0UCJrlOyXtfHSCeLGZM+iDS7AixkUWtFBvx2gB1rzUk ozgwN2A9a+FL8a828adi+ow4kLrwnjtmHsyOA3mOu6rL9+nGXY4SzYSARuxWyEJX4SDtax fHVuGKVj1Y7F3FxHyAYjAZu1wEstt3EOpa6oXQQvsLrfa8nt9SkYoq7ZCu8GON3bXxSIG+ bJHIOYx1sJsnmTxldwxiiINRw/c/p4CjPqdKkG5DIbgPqZK3AQWQNUeu9hKmLiGocebvzc FqrpC5huelkFCbHq7b3faMcmtQIyrClUH0A57oGgs+ZLQU3sEyFLuYSdW0bCKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644317912; a=rsa-sha256; cv=none; b=iEqtoZua3Ixw1lzk90WO/bgTClK9Tp2Ihbn9JQvZBxmsavIYHtRb+ugneTYiasMMXVxXkQ oWbvrQNlSO1eGqnd0AaE2tBQRDz0G66tPindsd5zB25TSANscgt6lmVfIOwGqjr10EUtLQ akqVk3nkm0QepnR8gQg/D7Cf5hEQyygOPePHKQDxo28ONQuFJ7mLxXiRWV0OsJqqsH/FIa v4ccb5m6h75QN/qp2+9lXfB2aYQOBYDO4TCWM2XDBtt+jz6YJc3erxOtf1UjG+R9dAZTOr k7LDOMwXvDs8xNK96yCrMy0nxTJiaPgNj6vE/5Z8+CpmAxuw7dPRez7sQvcDaA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.63 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6ACF5A1EC X-Spam-Score: -3.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: LWEhDZzpwRIN Hi, Leo Famulari skribis: > As discussed in #46829, `guix pull` needs an option like > --allow-insecure-transport so that users can continue to pull from the > same channel even when their local certificate store has expired or is > otherwise invalid. Agreed. Unfortunately it seems that libgit2 doesn=E2=80=99t let us turn off certifi= cate verification: https://libgit2.org/libgit2/#HEAD/group/libgit2 =E2=80=98verify_server_cert=E2=80=99 in src/streams/openssl.c is called unconditionally. So it seems that the first thing to do would be to submit a patch upstream that would allow users to disable certificate checks via =E2=80=98git_libgit2_opts=E2=80=99. Now, by default, =E2=80=98guix pull=E2=80=99 honors /etc/ssl/certs. Assumi= ng those are up-to-date, it should be fine, right? Thanks, Ludo=E2=80=99.