Re: [openpgp] User ID Attribute Subpacket

Justus Winter <justuswinter@gmail.com> Wed, 20 February 2019 10:31 UTC

Return-Path: <justuswinter@gmail.com>
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 DB00812DDA3 for <openpgp@ietfa.amsl.com>; Wed, 20 Feb 2019 02:31:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.99
X-Spam-Level:
X-Spam-Status: No, score=-1.99 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 6ylwhtbKvD25 for <openpgp@ietfa.amsl.com>; Wed, 20 Feb 2019 02:31:09 -0800 (PST)
Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (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 D6EE612D4EB for <openpgp@ietf.org>; Wed, 20 Feb 2019 02:31:08 -0800 (PST)
Received: by mail-ed1-x52e.google.com with SMTP id m35so15439284ede.10 for <openpgp@ietf.org>; Wed, 20 Feb 2019 02:31:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LGvkfUQkmkCzy5nsSNJTTN44DHe73oS4+mwf1Tm8wBY=; b=VZ5YgWc8L2R5LjarX0i5LMXhrzUjlHM7cV4WUvkRrlx091He0Neb36+G6JyymVHnpw LeI8C3xFbkDXPCRhb63rhIviS4Gl0likNd1+8OlHydyHo1B88PzlZlCte6LeNutF7VoR f36yZtStzpiwpQpk90tPnJwoFBpH/tR+XxhhTMMqgOl3obwf9BEOhBaiPfKxj/Wvajcs mTfLes+m96UDSAIK5vzlyxXK8jiF2RXGkfaTbEEZrsV5BaEWU8OI9T1hw6zVM7MSaBjk dgN0FA/QjdjLl5Mqf76z0gso3DRjxkHbEG8Z+jSfY+9o9knbnHAg4jQnsSGG2YMF5t/L gnSA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LGvkfUQkmkCzy5nsSNJTTN44DHe73oS4+mwf1Tm8wBY=; b=ZSE/Lju2K87dEcNCK4doCjEE9i1emIIPv7YmMihmjHQ6o2RTW9b697V0qZSWKnWorP GenYnL5dhPnb8+Xzyx2l4MSXmLwf8ikFCrNUVOMXq7GUJ6DA6ecgRRC0TYIWwmxk0ZDi FrITiaVqwMXxNUQjglt2lgmmqhZ+WxTXyIQ0aKNV+vum2QJMcXxylO63VVM6XTblCNom 3Idbm1jop5d6i/55A1AZof10GWrLf1G8LkEsK0DwVmEbllonpVmCW77rEc/ohlgS9Edu 6Ojz1qn+bMJ69c9LBkh/yhHXY9+7DtG7GTGjBEAmxdn5ZHDNI90nMZVSIImdxxIQZyl5 mADQ==
X-Gm-Message-State: AHQUAuaSNUwWlVLzgGQwHeddIcjSX6xw5JrQY4K4PPB8FrR8olH5p02l 48xJr67UvqnLJh7+nsw0KShKuE4D+qc2ZkvqhNpXYf6i
X-Google-Smtp-Source: AHgI3IbFIdwtoUDF5KnSI6yGG0IuCeabqHp4XZRmP29mKHiaQgMW4tls/ngZ5emMHpMoYZOm7biLnD0RJlSZ2ONSqG0=
X-Received: by 2002:a50:a55d:: with SMTP id z29mr19731385edb.269.1550658667212; Wed, 20 Feb 2019 02:31:07 -0800 (PST)
MIME-Version: 1.0
References: <CA+t5QVsS871zG30dhW_GZ9ALq8bDASD-D3p0YQp9iGJEXUddmA@mail.gmail.com> <d34d0310-2851-dc4b-b5b3-79c7ec530e73@metacode.biz>
In-Reply-To: <d34d0310-2851-dc4b-b5b3-79c7ec530e73@metacode.biz>
From: Justus Winter <justuswinter@gmail.com>
Date: Wed, 20 Feb 2019 11:30:56 +0100
Message-ID: <CA+t5QVsTATuw4pRhEdMOogh3YA237Rd2zOzzX3B3tZL04tfE0w@mail.gmail.com>
To: Wiktor Kwapisiewicz <wiktor@metacode.biz>
Cc: openpgp@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/wQ_fyRpHeTfeJMGdDkkHqIIK5H8>
Subject: Re: [openpgp] User ID Attribute Subpacket
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
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: Wed, 20 Feb 2019 10:31:12 -0000

On Wed, Feb 20, 2019 at 10:57 AM Wiktor Kwapisiewicz
<wiktor@metacode.biz> wrote:
> On 20.02.2019 10:39, Justus Winter wrote:
> > draft 6 of RFC4880bis proposes a "User ID Attribute Subpacket", but it
> > does not motivate that addition in any way.  What is the purpose of
> > it, and what is the advantage over using the userid packet?
>
>  From what I can see it comes from
> "draft-atkins-openpgp-device-certificates" that was merged in to RFC4880bis.
>
> For details see this thread:
>
> https://mailarchive.ietf.org/arch/msg/openpgp/Ma3P-yM2vTrfx2_Pqf_sq31SruY
>
> (Message-ID: <sjmegci3oto.fsf@securerf.ihtfp.org>)

Interesting.  I skimmed the thread trying to introduce a more structured
kind of user ids [0], but I'm still not convinced that the "User ID
Attribute Subpacket" as proposed in -06 adds any value over the user id
packet.

0: id:c2e6bbe7-0694-8193-bb76-dd50fde7d967@leo.gaspard.ninja

For reference, here is the proposed attribute:

> 5.13.2.  User ID Attribute Subpacket
>
>    A User ID Attribute subpacket has type #[IANA -- assignment TBD1].
>
>    A User ID Attribute subpacket, just like a User ID packet, consists
>    of UTF-8 text that is intended to represent the name and email
>    address of the key holder.  By convention, it includes an RFC 2822
>    [RFC2822] mail name-addr, but there are no restrictions on its
>    content.  For devices using OpenPGP for device certificates, it may
>    just be the device identifier.  The packet length in the header
>    specifies the length of the User ID.
>
>    Because User Attribute subpackets can be used anywhere a User ID
>    packet can be used, implementations MAY choose to trust a signed User
>    Attribute subpacket that includes a User ID Attribute subpacket.

And this is the user id packet:

> 5.12.  User ID Packet (Tag 13)
>
>    A User ID packet consists of UTF-8 text that is intended to represent
>    the name and email address of the key holder.  By convention, it
>    includes an RFC 2822 [RFC2822] mail name-addr, but there are no
>    restrictions on its content.  The packet length in the header
>    specifies the length of the User ID.

As you can see, the text is almost identical, and the text for the
proposed subpacket even admits that it is just like a user id packet.

Furthermore, "[...] User Attribute packets are not a required part of
the OpenPGP standard [...]".

Based on these observations I challenge the claim that the proposed
subpacket adds any value to the standard, and propose to remove it.

Cheers,
Justus