From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aHqWHctV1WLhXQAAbAwnHQ (envelope-from ) for ; Mon, 18 Jul 2022 14:44:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id RcleHctV1WImfwEA9RJhRA (envelope-from ) for ; Mon, 18 Jul 2022 14:44:59 +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 064C4339C3 for ; Mon, 18 Jul 2022 14:44:55 +0200 (CEST) Received: from localhost ([::1]:40736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDQ7F-000713-J8 for larch@yhetil.org; Mon, 18 Jul 2022 08:44:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDQ6Z-0006ze-OH; Mon, 18 Jul 2022 08:44:08 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21138) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDQ6X-0006jp-CU; Mon, 18 Jul 2022 08:44:07 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1658148231; cv=none; d=zohomail.com; s=zohoarc; b=CH0BB6Y7zfPxS8LJT9hRQqDH1S8HoAIi50dC6WYolwUDO4YgUeeAztBo4W3pULNMz65CrZ/+IYaRjF9YvyhME9donXb0OqsiuadLA+pilEAnQFtqtv5LVktqm6XXucDBZ/mgEegGVu/q4s7C4e3O1bzCtSZt19JqTgGoow+UdcU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1658148231; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=hUbYqX/zz+McgNwajujUK7S6ByvNA14czsdI0q1Dqps=; b=Q8gofPEtCePvUqMAIU0mDjmwVmldd20FukpYFL2VeV+9NyiU3rJwSaoO52qPoUDzmi5HfFnkuKLHUR7zENJwGDyXzY5LYiv4taUi1b2xip5qr53/mWquDVrPOsSwM1ovsJOUnG1yU5cnNCYxhTi9wkTfYzF82HhOFaARtg0mKp0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1658148231; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=hUbYqX/zz+McgNwajujUK7S6ByvNA14czsdI0q1Dqps=; b=VOLsGCw/g0Z+jFDYQFoFocLXYNzc+pXc0+A60mu1fROpmbyI3t9TfRygvUo75hS2 ZjPbMKIg0xbP1H9E59vP4pMB5H7XYXFRB3wd8nFhVmRIaVIsWiI0cj8Im9d90wVndKz gaTYNTKTet6RHR8omD64S9V1ZM0SjS2rPkBPcvk8= Received: from localhost (i5E862CB9.versanet.de [94.134.44.185]) by mx.zohomail.com with SMTPS id 1658148229845600.3628611007385; Mon, 18 Jul 2022 05:43:49 -0700 (PDT) References: <87zghu5jex.fsf@inria.fr> <86fsj0nnxy.fsf@163.com> <87k08a4xmy.fsf@inria.fr> <86v8rug31z.fsf@163.com> <87lesqzjpo.fsf@gnu.org> User-agent: mu4e 1.6.11; emacs 28.1 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Zhu Zihao , guix-devel@gnu.org, guix-science@gnu.org Subject: Re: =?utf-8?Q?=E2=80=9CBuilding?= a Secure Software Supply Chain with =?utf-8?B?R05VwqBHdWl44oCd?= Date: Mon, 18 Jul 2022 14:38:19 +0200 In-reply-to: <87lesqzjpo.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87o7xmtwu5.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658148295; 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=hUbYqX/zz+McgNwajujUK7S6ByvNA14czsdI0q1Dqps=; b=Yd36m24dKQ6tH5mU3UNAfpzrp4HytBaYE4AjgeSA+Cdhv8IJJ4AF10zHa7Cy1T7xl5ZmIn A8cUnytjg0ejg4ilQE7JnxN9Owy+TNc9vbjLfmge35zWMZzqLYFsNklYAS4PP8upxthY9R HA0aryIHV9Bq/PpRYr+BVr7BZlFp0A2miKghKBX/k0n+OoY+Ljf4urKLg90iPXPR/RO9Q3 3cXFc7IUA+D4lygCPyFcRAdgqqq99bH3nzmHs+aWmfzIH6ziM8CjhwSPt6tgyv1pLHY2Ax /K33o23TImDJbMfA9P0jGMGvTRa0Ub4omufapRaAjSE1WNUTyon5b/JqW5X/Tw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1658148295; a=rsa-sha256; cv=pass; b=buE1JwSRaCQ3R7tRBHICPIkQ23VCj269E8j9Tau6owxuA2nmvWHuJrHxTDWKRCJeNPI9i/ WE+8J0d5NUZqMg2ig9/wzKWjYghVzsNTHmI1XHtogI3qh0f1AXPDiz4vGeNaQ8nP2mmxxe uZ3CdFW1YcY8DBcRCeG+3l9/GX/tcjfSIHEMHuZldcUNWCrlZi4raUiDeRhIdfb7WuZ4ji 28eRLyAOzOwWHQIYFokwRl96S0B8vxLFMsMHYUIvpbK2AylTrghOdEdU1n+XUgtD/xMKym cDYG5SNsZtIIiHH3bIyzAuWi6l85ZgxVA9FIG8EwXXsaVsmbENuPKwpyH9K6sg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b="VOLsGCw/"; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b="VOLsGCw/"; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 064C4339C3 X-Spam-Score: -6.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: AiS3nGhWCKDV Ludovic Court=C3=A8s writes: >> 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 p= rovided by the > very same developers. It may still be worthwhile adding a few restrictions. One scenario that caught me by suprise: deleting files in a snippet. I forgot quoting the snippet and ended up running the deletion code on the host side =E2=80=93 i= n my working directory. Nothing bad happened and we=E2=80=99ve never committed = any mistake like that to the repository, but it is conceivable that something like this gets past the review and ends up deleting files. A safety net would prevent a small mistake like a missing quote from having potentially large side effects. Of course, all this is orthogonal to securing the supply chain, which is what the paper is about. --=20 Ricardo