From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61277: FR: ELPA security - Restrict package builds to signed git commits Date: Wed, 15 Feb 2023 11:40:20 -0500 Message-ID: References: <87pmapqoo5.fsf@daniel-mendler.de> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39919"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: mail@daniel-mendler.de, 61277@debbugs.gnu.org, yantar92@posteo.net, rms@gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 15 17:41:30 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pSKqY-000ABc-2R for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Feb 2023 17:41:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSKqE-0006gL-Em; Wed, 15 Feb 2023 11:41:10 -0500 Original-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 1pSKqB-0006fz-0U for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 11:41:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSKq6-00071S-PZ for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 11:41:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pSKq6-0001Os-Ik for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 11:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Feb 2023 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61277 X-GNU-PR-Package: emacs Original-Received: via spool by 61277-submit@debbugs.gnu.org id=B61277.16764792335330 (code B ref 61277); Wed, 15 Feb 2023 16:41:02 +0000 Original-Received: (at 61277) by debbugs.gnu.org; 15 Feb 2023 16:40:33 +0000 Original-Received: from localhost ([127.0.0.1]:33789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSKpd-0001Nu-C8 for submit@debbugs.gnu.org; Wed, 15 Feb 2023 11:40:33 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:16326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSKpY-0001Nd-PF for 61277@debbugs.gnu.org; Wed, 15 Feb 2023 11:40:31 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 404B980793; Wed, 15 Feb 2023 11:40:23 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id CE9718006F; Wed, 15 Feb 2023 11:40:21 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1676479221; bh=ykFgt8m7yws2mP6+HVrjRe18w9zqmkK9cmLaMUMgsmw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=FRF/Zvpe73y46olLKMJibyajitWcxbY4pO6QRxpQt4ueIGm7abh4bq6X3tskJiJyv l12zYbXldTCMjoAGmy7pZOhueDrFCnfBbWwiQnpRKxVwaxNTZmGxVMD6TmSbVVim2e toT4KJInQZUWdVRQ+7V6Z5hkr9v0lOoKVBeGbgL8DXHyoTwxwOm6dFgRKmiUHy33t/ 29OZW9kr9qhy+cfw/RbUx2sEwdrwbKI4lEVR/ZgOFWdbWg3VBg1tgtsDm5m9ZeTIQk fQfUZIt62U9trywD3mnymwilQTUHP5NcVXtnpmCoM/ETUenlzp9kC7IqfEZJNczujc he7ilcrjcnS5w== Original-Received: from ceviche (unknown [45.44.229.252]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id AF9EE122528; Wed, 15 Feb 2023 11:40:21 -0500 (EST) In-Reply-To: (Stefan Kangas's message of "Wed, 15 Feb 2023 05:37:36 -0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255742 Archived-At: > If an attacker can introduce a commit containing malicious code, and > create a new git tag pointing to that commit, the GNU ELPA scripts will > fetch it, and release a new version of the package (now including the > malicious code). By requiring tags to be cryptographically signed, we > can have a greater confidence that any new tag has at the very least > been signed off by the developer him/herself. Technical nitpick: currently, the elpa.gnu.org scripts do not pay attention to any Git tags (signed or not) to do their work. We only use the commits and their contents/history. Stefan