From: Jake <jforst.mailman@gmail.com>
To: elaexuotee@wilsonb.com
Cc: guix-devel@gnu.org
Subject: Re: Losing signing keys for custom Guix channel
Date: Fri, 29 Mar 2024 14:25:38 +1030 [thread overview]
Message-ID: <CAJqVjv92MVFOR1_cfe6xCwjD-+oEk2tipdUeM9+SRNTRThhC3Q@mail.gmail.com> (raw)
In-Reply-To: <2ECJ523SGTEV4.2UB8BK9J3U8GN@wilsonb.com>
[-- Attachment #1: Type: text/plain, Size: 1586 bytes --]
If commit i adds a new signing key to the channel’s authorisations file and
commit i+1 is signed with that signing key, then commit i+1 can be used in
channel intro.
You can’t add a signing key to the authorisations in a commit and sign that
same commit with the new key. Is that issue here?
Jake
On Fri, 29 Mar 2024 at 2:13 pm, <elaexuotee@wilsonb.com> wrote:
> > > from reading about guix authentication I think the new signing key
> > > must be first added to the .guix-authoriations file and that commit
> > > must signed with the current signing keys before the new signing
> > > key can be used.
> >
> > Yes, it’s likely the problem; the rest of the description you gave
> > elaexuotee looks fine to me.
> >
> > (No need to rewrite the history; changing the introduction is enough.)
> >
> > Ludo’.
>
> Well, the catch 22 is that I've lost the original key and so can only sign
> .guix-authorizations with the new one.
>
> > (No need to rewrite the history; changing the introduction is enough.)
>
> Without the old key, I'm gathering that a history rewrite is the only way
> right
> now. Seems like a fresh channel introduction should be enough, but our
> current
> authorization check appears to look at earlier commits even in that case,
> IIUC.
>
> Maybe forcing history rewrites on key loss is the desired behavior? I'm not
> sure. From a client perspective, the only difference is whether or not you
> have
> to specify --allow-downgrades on the next pull. In either case a channel
> intro
> update is necessary.
>
>
[-- Attachment #2: Type: text/html, Size: 2049 bytes --]
next prev parent reply other threads:[~2024-03-30 9:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-25 5:41 Losing signing keys for custom Guix channel elaexuotee
2024-03-25 7:49 ` Markku Korkeala
2024-03-25 12:31 ` Attila Lendvai
2024-03-28 22:47 ` Ludovic Courtès
2024-03-29 3:42 ` elaexuotee
2024-03-29 3:55 ` Jake [this message]
2024-03-29 5:06 ` elaexuotee
2024-03-29 9:45 ` Ludovic Courtès
2024-03-29 10:20 ` elaexuotee
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJqVjv92MVFOR1_cfe6xCwjD-+oEk2tipdUeM9+SRNTRThhC3Q@mail.gmail.com \
--to=jforst.mailman@gmail.com \
--cc=elaexuotee@wilsonb.com \
--cc=guix-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).