From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#30143: UX: print warning if substitute server is not authorized Date: Tue, 23 Jan 2018 07:50:02 +0100 Message-ID: <87shaxyspx.fsf@mdc-berlin.de> References: <87a7x6xte0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edsZv-0005iU-9u for bug-guix@gnu.org; Tue, 23 Jan 2018 02:01:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edsZq-0001EA-Dv for bug-guix@gnu.org; Tue, 23 Jan 2018 02:01:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:59267) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edsZq-0001Ds-1j for bug-guix@gnu.org; Tue, 23 Jan 2018 02:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1edsZp-0001pB-Pw for bug-guix@gnu.org; Tue, 23 Jan 2018 02:01:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87a7x6xte0.fsf@gmail.com> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Chris Marusich Cc: 30143@debbugs.gnu.org Chris Marusich writes: > Ricardo Wurmus writes: > >> Suppose I add example.com as a substitute server by passing >> “--substitute-urls=https://example.com” to the daemon or the Guix >> command line. I haven’t authorized the signing key, so Guix won’t >> accept any of the substitutes from example.com. >> >> Currently, Guix does not make it obvious to the user that a requested >> substitute server is ignored because its key is not authorized. We >> should print a clear warning in this case. >> >> (guix scripts authenticate) already includes “validate-signature”, which >> aborts with an error if the key is not authorized, but we don’t seem to >> use it. > > What if example.com serves substitutes that are signed by another > server, such as hydra.gnu.org? No matter where a substitute comes from, > if it was signed with an authorized key and its signature checks out, > then it's OK to use, right? Correct. -- Ricardo