From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WMIKErhS1WKWkgAAbAwnHQ (envelope-from ) for ; Mon, 18 Jul 2022 14:31:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uHTHELhS1WKmIgEAG6o9tA (envelope-from ) for ; Mon, 18 Jul 2022 14:31:52 +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 EE78F28C51 for ; Mon, 18 Jul 2022 14:31:51 +0200 (CEST) Received: from localhost ([::1]:60280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDPuR-0008QK-G6 for larch@yhetil.org; Mon, 18 Jul 2022 08:31:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDPtq-0008OV-Ba; Mon, 18 Jul 2022 08:31:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDPto-0004bY-31; Mon, 18 Jul 2022 08:30:57 -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=vnGySzo2X8aqiEOwtPAyZ6z+4rAMIXiQJPMQgwHgdSw=; b=DMrlUedCtg1KlTejoCrI QjrA7tBpfCKG1uss78CkIG8D6mFLpPh/4PVVhi+FagKE0U9rOrOyTezJkQSWduFnmGmwqsnN/p/DW s0l0I9KGMI31gSdZW0Kf7h6qm0I/wWKyWOu4Tctl1cfLCXTDf/ORV/FXTi1pF36QaiVyDrZVrrXSL aS4Qrabv5WjFcNyIXYfw2yyg0pFPPEKEfFnTsHcE4d29rN209AI5P9hDruypC6eQC5Xws2b6JPR3V vSaPmo21OO6W82G/kPFaj2DGzEE9EWFRx6+jfdVmp/B85pwWy787U0swCRvqzawGEA/aB/DqV6UU1 SVlFMc27MyfDOw==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=41004 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDPtd-00035V-Ch; Mon, 18 Jul 2022 08:30:51 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Zhu Zihao Cc: guix-science@gnu.org, guix-devel@gnu.org Subject: Re: =?utf-8?Q?=E2=80=9CBuilding?= a Secure Software Supply Chain with =?utf-8?B?R05VwqBHdWl44oCd?= References: <87zghu5jex.fsf@inria.fr> <86fsj0nnxy.fsf@163.com> <87k08a4xmy.fsf@inria.fr> <86v8rug31z.fsf@163.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: =?utf-8?Q?D=C3=A9cadi?= 30 Messidor an 230 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de la =?utf-8?Q?Chal=C3=A9mie?= 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, 18 Jul 2022 14:30:43 +0200 In-Reply-To: <86v8rug31z.fsf@163.com> (Zhu Zihao's message of "Mon, 18 Jul 2022 17:40:53 +0800") Message-ID: <87lesqzjpo.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-science@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-science-bounces+larch=yhetil.org@gnu.org Sender: "Guix-Science" 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=1658147512; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=vnGySzo2X8aqiEOwtPAyZ6z+4rAMIXiQJPMQgwHgdSw=; b=lD8Evpiu8/+pQU51Hkz1MlhaGB0WupJtRWPVVBqPAGcPfWscpTO2ZmFiaNLIFPMCUKKE5V tg+iiYm0SejYewIlx9AIFK4JuS6Qgt8BPqpW7tsL27k14asAfvrNmcTN304sIqaaIC5k8x O1Y2Dc/RQqQS328ATrI9n6st5VBKFrHFZAUOTvnUPAHY2UEJIujrUGNVdX3wA7HaxGg2pe tT9e/Jt0ci6A0qQworqTiisE971ELSKEtYWYGHfHjCpR75upzJ4ZNv7NPBOD/ABMsi9Gsq OTwmbSnGfw+lnfINTp6nJ62vcNUTgQa5Ins2HjmDelJ/6uK83+jIJjK5RynT1w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658147512; a=rsa-sha256; cv=none; b=rtIL8dd4sIKUWbKJEnWkspG/uS98bAOxY6Xn/V1WeZtkHB3I+MZzAIsKzKq4ECIbxKrwdx u+U0gEYSyLolGaKpieuKiN3hfr92Fyrw2ERhdbBdoIcPEr0LYA0V+0bVNCMFc9QAKcYp1r 1N34isY7wXiExdydOwZzU5jF+YOuSqtK6uhEZj0022Dv5rOuzpBB6RnmV0KVwU0H/j+4FC F64z6V6SJ0hDBgRnhn5Wo2pWnddi1ztxuIUOY9cAS2codUWVusrUX7MNcds1VmtLe1rcNg OHDQt10iqMlnCXxiNJ6i9JnnPwbXa9Qw0xvDlUH7d+jqBU/k7ovZaGqBbFk3Sw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=DMrlUedC; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.23 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=DMrlUedC; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EE78F28C51 X-Spam-Score: -9.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: +elSmXNQ6Dr5 Hi, Zhu Zihao skribis: > https://www.bleepingcomputer.com/news/security/dev-corrupts-npm-libs-colo= rs-and-faker-breaking-thousands-of-apps/ > > Here's a detailed report about Marak and faker.js. Interesting. But yeah, a Guix committer could change Guix anytime to print =E2=80=9CLIBERTY=E2=80=9D (that=E2=80=99s very much the spirit of the= project ;-)) or they could, simply, unwillingly introduce bugs. No technical mechanism can prevent that. >>> In Nix flakes, there's pure evaluation to make sure no side-effectful >>> code is allowed. But Guix channel is less restricted than a Nix flake. >>> It's a important problem to make sure the evaluation is safe for the us= er. >> >> Yes, I understand. I don=E2=80=99t think that makes a practical differe= nce >> though: when you pull from a Guix channel or fetch a Nix flake, that=E2= =80=99s >> because you want to install software according to what that >> channel/flake provides. So whether evil code is in the channel/flake >> (as Scheme/Nix code) or in the package(s) themselves makes little >> difference. >> >> Does that make sense? > > My two cents: When depolying a manifest, we use `guix package -p > -m `, This command consists two > parts. Guix will first evaluate the packages specified in the manifest, > and build the profile. And then populate the profile to given > destination. The first part can be done in a sandboxed environment, or a > non-privileged account like "nobody". Sure, though at a technical level is trickier than this, and again, it doesn=E2=80=99t change the fact that you=E2=80=99ll end up running code pro= vided by the very same developers. Thanks, Ludo=E2=80=99.