Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [News item review] Portage rsync tree verification (v5)
Date: Mon, 29 Jan 2018 18:58:01
Message-Id: 1517252270.1187.24.camel@gentoo.org
In Reply to: [gentoo-dev] [News item review] Portage rsync tree verification by "Michał Górny"
1 Please may it be the last!
2
3 ---
4 Title: Portage rsync tree verification
5 Author: Michał Górny <mgorny@g.o>
6 Posted: 2018-01-xx
7 Revision: 1
8 News-Item-Format: 2.0
9 Display-If-Installed: sys-apps/portage
10
11 Starting with sys-apps/portage-2.3.22, Portage will verify the Gentoo
12 repository after rsync by default.
13
14 The new verification is intended for users who are syncing via rsync.
15 Users syncing via git or other methods are not affected, and complete
16 verification for them will be provided in the future.
17
18 The verification is implemented via app-portage/gemato. Currently,
19 the whole repository is verified after syncing. On systems with slow
20 hard drives, this could take around 2 minutes. If you wish to disable
21 it, you can disable the 'rsync-verify' USE flag on sys-apps/portage
22 or set 'sync-rsync-verify-metamanifest = no' in your repos.conf.
23
24 Please note that the verification currently does not prevent Portage
25 from using the repository after syncing. If 'emerge --sync' fails,
26 do not install any packages and retry syncing. In case of prolonged
27 or frequent verification failures, please make sure to report a bug
28 including the failing mirror addresses (found in emerge.log).
29
30 The verification uses information from the binary keyring provided
31 by the app-crypt/gentoo-keys package. The keys are refreshed
32 from the keyserver before every use in order to check for revocation.
33 The post-sync verification ensures that the key package is verified
34 itself. However, manual verification is required before the first use.
35
36 On Gentoo installations created using installation media that included
37 portage-2.3.22, the keys will already be covered by the installation
38 media signatures. On existing installations, you need to manually
39 compare the primary key fingerprint (reported by gemato on every sync)
40 against the official Gentoo keys [1]. An example gemato output is:
41
42 INFO:root:Valid OpenPGP signature found:
43 INFO:root:- primary key: 1234567890ABCDEF1234567890ABCDEF12345678
44 INFO:root:- subkey: FEDCBA0987654321FEDCBA0987654321FEDCBA09
45
46 Please note that the above snippet does not include the real key id
47 on purpose. The primary key actually printed by gemato must match
48 the 'Gentoo Portage Snapshot Signing Key' on the website. Please make
49 sure to also check the certificate used for the secure connection
50 to the site!
51
52 [1]:https://www.gentoo.org/downloads/signatures/
53
54 --
55 Best regards,
56 Michał Górny