From: "Greg A. Woods" <woods@planix.com>
To: The Git Mailing List <git@vger.kernel.org>
Subject: Re: PATCH: Less fragile lookup of gpg key
Date: Mon, 03 May 2010 18:19:17 -0400 [thread overview]
Message-ID: <m1O93yz-000kndC@most.weird.com> (raw)
In-Reply-To: <BA24F2BF-018D-403B-A23B-0F2E57A7C00A@mit.edu>
[-- Attachment #1: Type: text/plain, Size: 2807 bytes --]
At Mon, 3 May 2010 07:16:55 -0400, Theodore Tso <tytso@MIT.EDU> wrote:
Subject: Re: PATCH: Less fragile lookup of gpg key
>
> On May 2, 2010, at 8:59 PM, Greg A. Woods wrote:
> >
> > You can of course have more than one e-mail address per key, but you
> > should NEVER have more than one key per e-mail.
>
> This is pretty common actually. At the very least it will happen if
> people are trying to transition between an older and a newer key ---
> for example, if they are trying to move from a less secure crypto
> algorithm to a more secure crypto algorithm.
As I understand things the best way to manage these kinds of things is
to use sub-keys. You can change the expire time on a sub-key, and then
eventually you can revoke it, all the while preserving your one primary
public key for signing. Indeed it's a good idea to regularly change
your sub-key and expire the older ones.
Any time I've ever encountered anyone with more than one published key
associated with any given e-mail address, confusion has inevitably
ensued.
Normally the only time I've ever seen anyone end up with multiple
published keys associated with the same e-mail address it has happened
when they have accidentally lost their private key somehow and therefore
they were unable to revoke it properly.
If you must regenerate your primary public key, and you have control of
your old public key then the right thing to do is to set the old one to
expire ASAP, and/or to revoke it, upon generating a new one, then
publish the updates together. This way there doesn't have to be any
window of confusion.
So, as Grant Olson has also explained, publishing multiple keys with the
same e-mail address in one of their UIDs (even if the entire UID is not
identical), is only for advanced users who are willing to deal with the
exceptional usage that results. Not all Git users are advanced users
who will be willing and/or able to deal with these issues.
Meanwhile the original problem here appears to me to be that Git
effectively encourages use of multiple valid keys that may have the same
e-mail address attached to multiple key-IDs.
If I understand correctly from the GnuPG documentation, the desired way
to search for a key has a very well defined algorithm based on the
syntax identifying the format of the "key". I think Git should use that
same algorithm at minimum, but by default if there's no hint based on
the expressed syntax of the key given it should follow the example of
most/all(?) MUA interfaces to PGP, which if I'm not mistaken is to
search by exact match of the e-mail address stripped of any display name
and all comments.
--
Greg A. Woods
Planix, Inc.
<woods@planix.com> +1 416 218 0099 http://www.planix.com/
[-- Attachment #2: Type: application/pgp-signature, Size: 186 bytes --]
next prev parent reply other threads:[~2010-05-03 22:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-01 15:16 PATCH: Less fragile lookup of gpg key Grant Olson
2010-05-01 16:26 ` A Large Angry SCM
2010-05-01 17:18 ` Junio C Hamano
2010-05-01 17:25 ` Grant Olson
2010-05-01 19:54 ` Junio C Hamano
2010-05-02 23:39 ` Grant Olson
2010-05-03 0:59 ` Greg A. Woods
2010-05-03 2:09 ` Grant Olson
2010-05-03 11:16 ` Theodore Tso
2010-05-03 22:19 ` Greg A. Woods [this message]
2010-05-04 2:19 ` tytso
2010-05-04 2:23 ` Grant Olson
2010-05-04 6:07 ` Andreas Ericsson
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1O93yz-000kndC@most.weird.com \
--to=woods@planix.com \
--cc=git@vger.kernel.org \
/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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.