Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176866 - .DIGESTS should be signed instead of direct files
Summary: .DIGESTS should be signed instead of direct files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-03 00:28 UTC by Robin Johnson
Modified: 2008-07-13 01:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-05-03 00:28:23 UTC
Per discussion in #gentoo-infra.
In the releases, we should be signing the .DIGEST files rather than the release files directly.

Couple of benefits:
1. quicker to generate the signature (less data to process).
2. quicker to verify the signature (less data to process).
3. can put the signature inside the .DIGEST files as cleartext-signed (less files for the mirrors) if wanted (matches the signed Manifests closer).

Downsides:
1. users need to do sha1/md5 on the release files themselves. change the docs to reflect this. they are probably doing it already to verify that the content is sane.

Not downsides:
1. This does not provide any additional vulnerability. The present gpg sigs are only SHA1 internally:
$ gpg --list-packets <stage3-x86-2007.0.tar.bz2.asc
:signature packet: algo 17, keyid 9E6438C817072058
	version 3, created 1178148793, md5len 5, sigclass 00
	digest algo 2, begin of digest 61 af
	data: [157 bits]
	data: [159 bits]
Ergo the attacker still has the same complexity to defeat the hash algorithm.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2007-10-30 21:16:15 UTC
I've updated my scripts for signing to only sign the DIGESTS.  I'm still doing them detached, simply because it's less of a change for me.
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2008-07-13 01:03:21 UTC
This should be fixed in 2008.0