unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Attila Lendvai <attila@lendvai.name>
To: Markku Korkeala <markku.korkeala@iki.fi>
Cc: elaexuotee@wilsonb.com, guix-devel@gnu.org
Subject: Re: Losing signing keys for custom Guix channel
Date: Mon, 25 Mar 2024 12:31:16 +0000	[thread overview]
Message-ID: <zoUgDe8Jc1BxvaqViFsjnOXZUOAtHhQULpOSqdsK23xHQGwjbmibFlUhWgx83xBYPG9DkwZVnPQPqT20HlH3F44v5v8LIc2dS99wXBTlkGM=@lendvai.name> (raw)
In-Reply-To: <ZgEsmghq7frMheBl@hai0398>

> 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.


yep. otherwise anyone with access to the origin git repo could override the commit signature based authentication framework.

if you think about it, if there were any options for you to sidestep this situation of a lost key, then any attacker could do the same.

i'm afraid your only option is to re-record and re-sign every commit, force-push them, and publish a new channel intro snippet that all your users must copy into their config.

alternatively, you *may* be able to simply publish a new channel intro snippet (and convince all your users that it's a genuine situation) that will point to the first new commit that is signed with the new key... but i doubt the contract (nor the implementation) of the authentication code would just silently accept the non-authenticated commits that precede your new channel intro commit.

all the best in fixing the situation!

--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“’Tis better it be a year later before he can read, than that he should this way get an aversion to learning.”
	— John Locke (1632–1704), 'Some Thoughts Concerning Education'



  reply	other threads:[~2024-03-25 12:32 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 [this message]
2024-03-28 22:47   ` Ludovic Courtès
2024-03-29  3:42     ` elaexuotee
2024-03-29  3:55       ` Jake
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='zoUgDe8Jc1BxvaqViFsjnOXZUOAtHhQULpOSqdsK23xHQGwjbmibFlUhWgx83xBYPG9DkwZVnPQPqT20HlH3F44v5v8LIc2dS99wXBTlkGM=@lendvai.name' \
    --to=attila@lendvai.name \
    --cc=elaexuotee@wilsonb.com \
    --cc=guix-devel@gnu.org \
    --cc=markku.korkeala@iki.fi \
    /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).