From: ludo@gnu.org (Ludovic Courtès)
To: Pjotr Prins <pjotr.public12@thebird.nl>
Cc: guix-devel@gnu.org
Subject: Re: Struggling with a caching substitute server
Date: Tue, 05 Apr 2016 11:29:05 +0200 [thread overview]
Message-ID: <87wpocwgim.fsf@gnu.org> (raw)
In-Reply-To: <20160405075748.GA2689@thebird.nl> (Pjotr Prins's message of "Tue, 5 Apr 2016 09:57:48 +0200")
[-- Attachment #1: Type: text/plain, Size: 809 bytes --]
Pjotr Prins <pjotr.public12@thebird.nl> skribis:
> On Mon, Apr 04, 2016 at 11:04:12PM +0200, Ludovic Courtès wrote:
>> Did you authorize the singing key of that server?
>
> That fixed it. I had switched clients forgetting about this one. Would
> it be possible to generate a warning for using a (1) URL where guix
> publish server is not reached and (2) where the client is not
> authorized? Silent failure just has the user guessing.
My initial thoughts was that this is not a failure, so not something to
warn about. Indeed, at any time the admin can change the ACL, which in
turn makes substitutes available or not.
Besides, signatures are per substitute, so a warning would have to be
generated for each substitute that is signed by an unauthorized
signature, I think. Like this:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 535 bytes --]
diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm
index 82ce069..fdd72b2 100755
--- a/guix/scripts/substitute.scm
+++ b/guix/scripts/substitute.scm
@@ -412,7 +412,9 @@ or is signed by an unauthorized key."
(and hash signature
(signature-case (signature hash acl)
(valid-signature #t)
- (else #f))))))
+ (else
+ (warning (_ "bad sig!~%"))
+ #f))))))
(define (write-narinfo narinfo port)
"Write NARINFO to PORT."
[-- Attachment #3: Type: text/plain, Size: 71 bytes --]
This would obviously be suboptimal.
Any suggestions?
Ludo’.
next prev parent reply other threads:[~2016-04-05 9:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-04 13:56 Struggling with a caching substitute server Pjotr Prins
2016-04-04 21:04 ` Ludovic Courtès
2016-04-04 21:47 ` Pjotr Prins
2016-04-05 7:57 ` Pjotr Prins
2016-04-05 9:29 ` Ludovic Courtès [this message]
2016-04-05 10:37 ` Pjotr Prins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wpocwgim.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=pjotr.public12@thebird.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.