From: Andrew Tropin <andrew@trop.in>
To: guix-devel@gnu.org
Cc: "Tobias Geerinckx-Rice" <me@tobias.gr>,
"Efraim Flashner" <efraim@flashner.co.il>,
"Ludovic Courtès" <ludo@gnu.org>
Subject: [POSTMORTEM] Subkey is not authorized by .guix-authorizations
Date: Thu, 11 Aug 2022 17:26:10 +0300 [thread overview]
Message-ID: <87tu6idfgd.fsf@trop.in> (raw)
[-- Attachment #1: Type: text/plain, Size: 1749 bytes --]
* Summary
On 2022-08-06 the commit 3946540[fn:1] was pushed and lead to failing
guix pull:
--8<---------------cut here---------------start------------->8---
guix pull: error: commit 39465409f0481f27d252ce25d2b02d3f5cbc6723 not
signed by an authorized key: 2841 9AC6 5038 7440 C7E9 2FFA 2208 D209
58C1 DEB0
--8<---------------cut here---------------end--------------->8---
It was discovered and reported to IRC almost immediately by a few
people. The commit itself was signed and benign[fn:2], but it was signed with
subkey. While primary key was added to .guix-authorizations, guix pull
still rejected commit signed with subkey.
From the point commit pushed there is no easy way to recover guix
pull. nckx contacted savannah admins and a few hours later master
branch was reset to the state before 3946540 was pushed.
* Impact
- guix pull of latest commit from master branch couldn't be done for a
few hours, the possible problem of such DoS is known[fn:3].
* What could be done better?
- guix pull could be done from local checkout, before pushing.
- First commit by a fresh commiter could be pushed on a weekday, after
checking if maintainers and admins are present.
* What to do after?
- Accept subkey on guix pull if master key is in .guix-authorizations.
- Add tip to Commit Access section about pull from local checkout.
- Add pre-push hook, which checks authorization on Savannah.
* Footnotes
[fn:1] https://git.savannah.gnu.org/cgit/guix.git/commit/?id=39465409f0481f27d252ce25d2b02d3f5cbc6723
[fn:2] https://lists.gnu.org/archive/html/help-guix/2022-08/msg00073.html
[fn:3] https://lists.gnu.org/archive/html/guix-devel/2021-03/msg00156.html
--
Best regards,
Andrew Tropin
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next reply other threads:[~2022-08-11 14:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-11 14:26 Andrew Tropin [this message]
2022-08-11 15:09 ` [POSTMORTEM] Subkey is not authorized by .guix-authorizations Felix Lechner via Development of GNU Guix and the GNU System distribution.
2022-08-11 15:11 ` Maxime Devos
2022-08-11 15:25 ` John Kehayias
2022-09-02 13:23 ` Ludovic Courtès
2022-09-05 7:07 ` Andrew Tropin
2022-09-05 9:53 ` Ludovic Courtès
2022-09-05 11:50 ` Tobias Geerinckx-Rice
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=87tu6idfgd.fsf@trop.in \
--to=andrew@trop.in \
--cc=efraim@flashner.co.il \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
--cc=me@tobias.gr \
/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).