From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MEdPArdOD2BMSQAA0tVLHw (envelope-from ) for ; Mon, 25 Jan 2021 23:05:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6PGgObZOD2CvPAAAbx9fmQ (envelope-from ) for ; Mon, 25 Jan 2021 23:05:26 +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 7DBE89402C2 for ; Mon, 25 Jan 2021 23:05:26 +0000 (UTC) Received: from localhost ([::1]:57362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4AvF-0002E9-FC for larch@yhetil.org; Mon, 25 Jan 2021 18:05:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4Aus-0002DZ-HK for bug-guix@gnu.org; Mon, 25 Jan 2021 18:05:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56971) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4Aus-0006IQ-AB for bug-guix@gnu.org; Mon, 25 Jan 2021 18:05:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l4Aus-0003v1-4B for bug-guix@gnu.org; Mon, 25 Jan 2021 18:05:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#45911: authorized-fields is not/badly documented Resent-From: raingloom Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 25 Jan 2021 23:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45911 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Received: via spool by 45911-submit@debbugs.gnu.org id=B45911.161161588015032 (code B ref 45911); Mon, 25 Jan 2021 23:05:02 +0000 Received: (at 45911) by debbugs.gnu.org; 25 Jan 2021 23:04:40 +0000 Received: from localhost ([127.0.0.1]:40284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4AuW-0003uO-IG for submit@debbugs.gnu.org; Mon, 25 Jan 2021 18:04:40 -0500 Received: from mx1.riseup.net ([198.252.153.129]:47576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4AuU-0003uE-1W for 45911@debbugs.gnu.org; Mon, 25 Jan 2021 18:04:38 -0500 Received: from fews1.riseup.net (unknown [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4DPlmy2wqwzFmY0; Mon, 25 Jan 2021 15:04:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1611615874; bh=EO3gAqwxW5MzC/7nmAd8uFUuhgcgl0r4g4izH8oCw5w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=cL1BGu17bstk1bHzD8xRJf1KHmjm6j+RZLx4qUX1qVjMA2UMZna2/VhZYUI33qOrJ O5oiqvjmsUr0StgbTdLoM9ByHjP8EyGVppmZU6UAS92k+u1t6lhOnWi8uHjMnPWmQf vzKmKckZzDTiQ4F4KJASOpo7mDOjCxLxwY6kUAZE= X-Riseup-User-ID: 61CC8E358DCC76DB8B9A3653108620C15CDE4B04894A75428B7604DFD531421F Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4DPlmv2n7mz5wF6; Mon, 25 Jan 2021 15:04:31 -0800 (PST) Date: Mon, 25 Jan 2021 18:15:43 +0100 From: raingloom Message-ID: <20210125181543.7f16e903@riseup.net> In-Reply-To: <87y2gkj9xk.fsf@elephly.net> References: <20210116041615.27cfa112@riseup.net> <87o8hpbee0.fsf@elephly.net> <20210117013449.1192d841@riseup.net> <87lfcof0xm.fsf@gnu.org> <20210123063903.66ad778c@riseup.net> <87y2gkj9xk.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 45911@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.25 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=cL1BGu17; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (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-Migadu-Queue-Id: 7DBE89402C2 X-Spam-Score: -1.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: HMMB2639KiRQ On Sat, 23 Jan 2021 10:10:15 +0100 Ricardo Wurmus wrote: > raingloom writes: > > > Okay, so I figured out that I should use a G-Expression if I want to > > compute the file, instead of just include it. Still not sure how to > > store it as Scheme data, but I have an untested idea involving the > > "pipe" syntax for symbols. > > Use computed-file instead of local-file. > I know about computed-file, the issue is that the syntax of the key is not strictly Scheme. The long hexadecimal block isn't parsed as a number: ``` (with-input-from-file "/etc/guix/signing-key.pub" read) ... /etc/guix/signing-key.pub:4:8: Unknown # object: #\C ``` Trying to store it as a module results in the same error. So I can't just have an associative list of hostnames and signing keys and filter it based on the hostname, I have to store each key as an opaque file, completely bypassing the module system.