Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: Zac Medico <zmedico@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] OpenPGP verification for gentoo-mirror repos
Date: Sun, 30 Oct 2016 22:33:23
Message-Id: 20161030233257.624ce665.mgorny@gentoo.org
In Reply to: Re: [gentoo-dev] OpenPGP verification for gentoo-mirror repos by Zac Medico
1 On Sun, 30 Oct 2016 14:58:59 -0700
2 Zac Medico <zmedico@g.o> wrote:
3
4 > On 10/30/2016 01:44 PM, Michał Górny wrote:
5 > > Hi, everyone.
6 > >
7 > > Just a quick note: I've prepared a simple tool [1] to verify clones of
8 > > gentoo-mirror repositories. It's still early WiP but can be easily used
9 > > to verify a clone:
10 > >
11 > > $ ./verify-repo gentoo
12 > > [/var/db/repos/gentoo]
13 > > Untrusted signature on 42ccdf48d718287e981c00f25caea2242262906a
14 > > (you may need to import/trust developer keys)
15 > > Note: unsigned changes in metadata and/or caches found (it's fine)
16 >
17 > I don't think it's acceptable to use an unsigned metadata/cache commit.
18 > Can't we use an infrastructure key for this?
19
20 How are you going to guarantee that a third-party didn't access
21 the remote server and alter the filesystem just before the commit? Not
22 to mention the pains of keeping the key secure.
23
24 It's better not to sign that to provide false security.
25
26 > > It can take any number of repository names and/or paths on argv, or
27 > > will verify all installed repositories if run without arguments.
28 > >
29 > > It has explicit support for unsigned cache update commits from
30 > > gentoo-mirror (verifies the last signed commits and diffs it against
31 > > HEAD); though it will probably get confused if signed commits out of
32 > > metadata/ subrepos come (very rare case).
33 > >
34 > > Verification is done using git's default GPG magic. I'd like to
35 > > improve it to use gkeys but the project still hasn't achieved
36 > > the ability to run out-of-the-box without local hackery.
37 >
38 > Is there an open bug for this? We really need gkeys to be usable.
39
40 https://bugs.gentoo.org/show_bug.cgi?id=526110
41
42 --
43 Best regards,
44 Michał Górny
45 <http://dev.gentoo.org/~mgorny/>

Replies

Subject Author
Re: [gentoo-dev] OpenPGP verification for gentoo-mirror repos Zac Medico <zmedico@g.o>