Re: [openpgp] Signer's User ID

Thijs van Dijk <schnabbel@inurbanus.nl> Thu, 15 September 2016 10:24 UTC

Return-Path: <schnabbel@inurbanus.nl>
X-Original-To: openpgp@ietfa.amsl.com
Delivered-To: openpgp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 03CA212B244 for <openpgp@ietfa.amsl.com>; Thu, 15 Sep 2016 03:24:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.034
X-Spam-Level:
X-Spam-Status: No, score=-2.034 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_SOFTFAIL=0.665] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=inurbanus.nl
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oMi4os9-pm0j for <openpgp@ietfa.amsl.com>; Thu, 15 Sep 2016 03:23:56 -0700 (PDT)
Received: from mail-vk0-x235.google.com (mail-vk0-x235.google.com [IPv6:2607:f8b0:400c:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BDD0F12B231 for <openpgp@ietf.org>; Thu, 15 Sep 2016 03:23:56 -0700 (PDT)
Received: by mail-vk0-x235.google.com with SMTP id h134so19165105vkd.2 for <openpgp@ietf.org>; Thu, 15 Sep 2016 03:23:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inurbanus.nl; s=google-inurb; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=eI2k+4vI6CKGHucfRxfAOUYDpg3tlVHCugQgY3yitm4=; b=Ab/yZr3i8b9gIGnd+zLiG3CddOn3l3+Sh80Xik/C7hjT8xq8PzVHch5J5+wDvbWHBQ zM7pGJBHHYOu4brmbL8BIPAHcPCvC9QTeyZGAXCC0H58xsjBN1vl4mIjHmV+/9Bg5Jyz KWKBkSA997zttKuneonI/xJ+BforQEX5YJ6g0=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=eI2k+4vI6CKGHucfRxfAOUYDpg3tlVHCugQgY3yitm4=; b=LGkopP9F9SB97UuO8dDYh/nt74bD4kagpQ3vqD9j+IuFyuxT5M07Uj7UJeWI4xiIJq kIPi5GTlbDWWM8DsVr5iF485dk77QE+ZGYSdhCUaqc08kqv5z71DSYInH+iUt4Jka+bt 16QVcz7sAUXfdDdl5vI6VHSlQn2ZRScSir8blAqKBLc62LR+zzOdxS8yuhn0LC0V6ame QEWBAZgP+08iT39O8CLnM2uauvZ1peU0YwPNBoMUywTtBr6QHj6DgxqT5lE3EgcfsMNc utzd11OdFmLE4GcmjsSsMgrGIM3uB1plJjw0EThe2ul6vVVtMvQxcyrwPqV5gkkM9ANs qIEA==
X-Gm-Message-State: AE9vXwP+cCvHFB8uv9SiEajXjdq2R2JY2RvApDACORVHs0h4PNg8+Zq46GUBTxjLlCYM7KOc5vIPrhCZi4WUXw==
X-Received: by 10.31.51.195 with SMTP id z186mr1946492vkz.137.1473935035823; Thu, 15 Sep 2016 03:23:55 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.103.0.71 with HTTP; Thu, 15 Sep 2016 03:23:55 -0700 (PDT)
In-Reply-To: <87mvj9mrs9.wl-neal@walfield.org>
References: <87mvj9mrs9.wl-neal@walfield.org>
From: Thijs van Dijk <schnabbel@inurbanus.nl>
Date: Thu, 15 Sep 2016 12:23:55 +0200
Message-ID: <CADGaDpHDJ_N6D_wktboD2a-9hq15UKYq=yMPr4jmdin6t7r9FA@mail.gmail.com>
To: "Neal H. Walfield" <neal@walfield.org>
Content-Type: multipart/alternative; boundary="001a1144abcc3b9303053c893e28"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/gPjBHRKGm-I7MUX5el7iQC7sPgg>
Cc: IETF OpenPGP <openpgp@ietf.org>
Subject: Re: [openpgp] Signer's User ID
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Sep 2016 10:24:03 -0000

Good catch. I think being explicit about the expected contents of this
packet also makes the next sentence redundant (the one that prohibits
embedding a UAT).

-Thijs

--
Thijs van Dijk

6A94 F9A2 DFE5 40E3 067E  C282 2AFE 9EFA 718B 6165

On 15 September 2016 at 11:33, Neal H. Walfield <neal@walfield.org> wrote:

> RFC 4880 says:
>
>   5.2.3.22.  Signer's User ID
>
>    (String)
>
>    This subpacket allows a keyholder to state which User ID is
>    responsible for the signing.  Many keyholders use a single key for
>    different purposes, such as business communications as well as
>    personal communications.  This subpacket allows such a keyholder to
>    state which of their roles is making a signature.
>
>    This subpacket is not appropriate to use to refer to a User Attribute
>    packet.
>
> In GnuPG, we use the user id's email address.  Thus, if a key has the
> user id "Neal H. Walfield" <neal@walfield.org>, and the user runs:
>
>   echo data to sign | gpg --default-key neal@walfield.org -s
>
> or
>
>   echo data to sign | gpg --default-key 'Neal H. Walfield' -s
>
> Then, in both cases we include this subpacket in the signature packet
> with the string "neal@walfield.org".
>
>
> Note: we use data for locating the key via DANE or WKS as well as in
> our TOFU implementation to identify the intended binding.
>
>
> Since, IMO, the spec is unclear about the contents of this field and
> Werner pointed out that another implementation could reasonably use
> the hash of the user id here, I think it makes sense to clarify
> exactly what is expected to increase interoperability.  My proposal to
> standardize GnuPG's behavior is:
>
>   5.2.3.22.  Signer's User ID
>
>    (String)
>
>    This subpacket allows a keyholder to state which User ID is
>    responsible for the signing.  Many keyholders use a single key for
>    different purposes, such as business communications as well as
>    personal communications.  This subpacket allows such a keyholder to
> *  state which of their roles is making a signature.  The value of
> *  this subpacket is a byte-for-byte copy of the RFC 2822 mail name-addr
> *  portion of the User ID.
>
>    This subpacket is not appropriate to use to refer to a User Attribute
>    packet.
>
> Thanks,
>
> :) Neal
>
> _______________________________________________
> openpgp mailing list
> openpgp@ietf.org
> https://www.ietf.org/mailman/listinfo/openpgp
>