Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 533614 - RFE: Auto-detect key to use from keyring based on long keyid of signature issuer
Summary: RFE: Auto-detect key to use from keyring based on long keyid of signature issuer
Status: CONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: gentoo-keys (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo-keys project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-26 17:53 UTC by Kristian Fiskerstrand (RETIRED)
Modified: 2015-01-07 05:55 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 Kristian Fiskerstrand (RETIRED) gentoo-dev 2014-12-26 17:53:02 UTC
What verifying a file we want the signature key to be auto-detected and limited to the keyrings we specify, for example:

$ gpg --status-fd 0 gentoo-devs.seeds.sig 

gpg: assuming signed data in 'gentoo-devs.seeds'
gpg: Signature made Thu 25 Dec 2014 09:52:35 PM CET using RSA key ID 151C3FC7
[GNUPG:] ERRSIG A41DBBD9151C3FC7 1 10 00 1419540755 9
[GNUPG:] NO_PUBKEY A41DBBD9151C3FC7
gpg: Can't check signature: No public key

^^ Here we have an indication that the long keyID used to issue the signature is A41DBBD9151C3FC7. 

It would be nice if we can re-use this to verify that it belongs to the gentoo category as

$ gkeys verify -C gentoo -f A41DBBD9151C3FC7 \
> -F /var/lib/gentoo/gkeys/seeds/gentoo-devs.seeds \
> -s /var/lib/gentoo/gkeys/seeds/gentoo-devs.seeds.sig

 Gkey task results:
     Failed to find nick: None in gentoo category

instead of 
$ gkeys verify -C gentoo -n gkeys -F /var/lib/gentoo/gkeys/seeds/gentoo-devs.seeds -s /var/lib/gentoo/gkeys/seeds/gentoo-devs.seeds.sig
 Gkey task results:
     Verification succeeded.: /var/lib/gentoo/gkeys/seeds/gentoo-devs.seeds
     Key info...............: Gentoo-Linux Gentoo-keys Project Signing Key <gkeys>, 0x825533CBF6CD6C97

As we might not know which of the release keys are used. This would also be extendable to gentoo-devs keyring if not found in release keyring.
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2015-01-07 05:55:05 UTC
An auto-search is done automatically (after initial trial fials) to locate the correct keyring to use to verify with.

I will search all available keyring categories until the matching keyid is found.

Only thing missing as far as I'm concerned is a switch to turn off auto-search.