From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qGNBAyf56V6WHQAA0tVLHw (envelope-from ) for ; Wed, 17 Jun 2020 11:06:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2PK9Oib56V6WOwAA1q6Kng (envelope-from ) for ; Wed, 17 Jun 2020 11:06:14 +0000 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 6F6D19401CD for ; Wed, 17 Jun 2020 11:06:14 +0000 (UTC) Received: from localhost ([::1]:48778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlVtT-0000hJ-PL for larch@yhetil.org; Wed, 17 Jun 2020 07:06:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlVtK-0000eR-Pi for bug-guix@gnu.org; Wed, 17 Jun 2020 07:06:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlVtK-0005sN-Fq for bug-guix@gnu.org; Wed, 17 Jun 2020 07:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jlVtK-00023T-9z for bug-guix@gnu.org; Wed, 17 Jun 2020 07:06:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41907: [security] Substitutes fetched from server with no authorized key Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 17 Jun 2020 11:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41907 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 41907@debbugs.gnu.org, mail@ambrevar.xyz X-Debbugs-Original-To: bug-guix@gnu.org, Pierre Neidhardt , 41907@debbugs.gnu.org Received: via spool by 41907-submit@debbugs.gnu.org id=B41907.15923919597884 (code B ref 41907); Wed, 17 Jun 2020 11:06:02 +0000 Received: (at 41907) by debbugs.gnu.org; 17 Jun 2020 11:05:59 +0000 Received: from localhost ([127.0.0.1]:50526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlVtH-000236-6K for submit@debbugs.gnu.org; Wed, 17 Jun 2020 07:05:59 -0400 Received: from lepiller.eu ([89.234.186.109]:35090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlVtD-00022q-QY for 41907@debbugs.gnu.org; Wed, 17 Jun 2020 07:05:58 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id e13b9d42; Wed, 17 Jun 2020 11:05:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=z4yl3Qf31rEB2ZERqOuylzIQPNDpDifdNmkKEEkXQ0o=; b=IWtvx1wpqgow aDP6I14r0EjGEHr7qroG12uMPgdqXlRfwiZacG15Do9AcqX87YeO7Dr6gFKwgiU6 1WaFz3WqTptK5j4PsCDMs07MyFsuiGdYe5/GleQJqGWaXbMOIE+uuvHTMtNNKA5q VjPeyP5t1Fk/J5TbUaEKxOuYHxeI2EbxfidrSzjp7h1oklJELyJCD/nehOzfregv JRRKgQnK7NtwXQ1Z5etdmz1B5DtLgR8f3a8eLawjTQ7iQXIYA4xYREttkPLivy7O DUx4Ro4Nu0x1xVcNKN5sWz8UEO3gnrBIUyCKsDHAgW0mKvQBaWP8dTj5F6Mpj9N7 O6TNnNLPzQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 28937200 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 17 Jun 2020 11:05:52 +0000 (UTC) Date: Wed, 17 Jun 2020 07:05:42 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <87k106nnwg.fsf@ambrevar.xyz> References: <87k106nnwg.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Julien Lepiller Message-ID: X-Spam-Score: 2.0 (++) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 1.0 (+) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=lepiller.eu header.s=dkim header.b=IWtvx1wp; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: 6Zqr+WJUgBx/ Le 17 juin 2020 03:37:35 GMT-04:00, Pierre Neidhardt = a =C3=A9crit : >I could be doing something wrong, but=2E=2E=2E > >1=2E Alice starts `guix publich -u ambrevar`=2E >2=2E Bob, who did _not_ authorize Alice's signing key: > - herd stop guix-daemon >- guix-daemon --build-users-grouop=3Dguixbuild >--substitute-urls=3D'http://10=2E0=2E0=2E4:8080 https://ci=2Eguix=2Egnu= =2Eorg' > - guix build curl > >Result: > >--8<---------------cut here---------------start------------->8--- >downloading from http://10=2E0=2E0=2E4:8080/nar/gzip/=2E=2E=2E >--8<---------------cut here---------------end--------------->8--- > >Guix commit 8b00728144d0e4bbc740e1595c85f0ecee3f6fb0=2E > >Am I missing something or there is something really wrong? There are two ways that you can get substitutes from unauthorized servers: Substitutes for fixed-output derivations: guix lredy knows the result, so = it doesn't need a signature, it checks the result (not sure this is a thing= ) Substitutes that are reproducible=2E If you have a narinfo from an authori= zed build farm for a package in your local cache and alice's publish server= proposes the same (name and checksum) substitute, you can download it=2E T= his is definitely a thing=2E Other than that, guix should not use alice's substitutes=2E