Re: [openpgp] Possible ambiguity in description of regular expressions: [^][]

Ángel <angel@16bits.net> Sat, 09 January 2021 22:49 UTC

Return-Path: <angel@16bits.net>
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 D87283A0962 for <openpgp@ietfa.amsl.com>; Sat, 9 Jan 2021 14:49:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 9lLQBPlhNoXx for <openpgp@ietfa.amsl.com>; Sat, 9 Jan 2021 14:49:40 -0800 (PST)
Received: from mailer.hiddenmail.net (mailer.hiddenmail.net [199.195.249.9]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2001C3A0958 for <openpgp@ietf.org>; Sat, 9 Jan 2021 14:49:39 -0800 (PST)
Received: from mailer by mailer.hiddenmail.net with local (Exim 4.80) (envelope-from <angel@16bits.net>) id 1kyN3C-0004Ug-L6 for openpgp@ietf.org; Sat, 09 Jan 2021 23:49:38 +0100
Message-ID: <b8bc0722114cb6367e8d9172b10a6d6df0c3c146.camel@16bits.net>
From: Ángel <angel@16bits.net>
To: openpgp@ietf.org
Date: Sat, 09 Jan 2021 23:49:36 +0100
In-Reply-To: <87lfd25is6.fsf@fifthhorseman.net>
References: <87r1nguquq.wl-neal@walfield.org> <87tusbuwzp.fsf@fifthhorseman.net> <87mtxzv7mr.wl-neal@walfield.org> <877dor8kl1.fsf@fifthhorseman.net> <87456fad-06cd-6605-b5d1-ea5ac49c9ee4@andrewg.com> <a061d617a22416638bf1fb0a1f7d66b7495f9b82.camel@16bits.net> <b7a318d1-b6d0-e71e-28fe-197923185a38@andrewg.com> <7ff8e6cc238ac6f9680e1b3fc32dc7bbff7239c0.camel@16bits.net> <87lfd25is6.fsf@fifthhorseman.net>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.30.5-1.1
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/OroI__wxBum3yfFoCM-wABv7WYk>
Subject: Re: [openpgp] Possible ambiguity in description of regular expressions: [^][]
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: Sat, 09 Jan 2021 22:49:42 -0000

On 2021-01-09 at 08:42 -0500, Daniel Kahn Gillmor wrote:
> On Sat 2021-01-09 01:08:10 +0100, Ángel wrote:
> > Finally, another point to consider would be whether to match only
> > the email address portion. Yes, User ID could contain something
> > else, but this delegation of partial trust only seem useful when
> > combined with a hierarchical structure, such as those to be found
> > on the email address part. It seems rare to require a matching on
> > the display name part. And allowing that would greatly decrease its
> > security. Basically a wildcard not on the left-most side could be
> > bypassed by including the required characters on the display name.
> 
> This stuff is very rarely used in the wild, and to the extent that it
> is, it's used as a hierarchical match on the domain side of an e-mail
> address, as found in the user ID (which itself is not typically
> treated as a true RFC 2822 name-addr, despite the text in the spec,
> see id:87woe7zx7o.fsf@fifthhorseman.net and related discussion).

(Hint for future references: that's the “User ID conventions (it's not
really a RFC2822 name-addr)” thread.)

Yes. I am aware of that packet not exactly being a formal name-addr.
The mention "User ID could contain something else" was trying to convey
that there could be completely unstructured User ID packets but in
order for this to be useful you would need to be dealing with "common"
ones.

Looking again at that thread, I would recommend including some plain
text examples (non-normative, perhaps) on how User ID would be expected
to look like at your MR
https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_r
equests/23/diffs?commit_id=a300afb3aebd1f5645dd3fbdcf14a420c5bc2090
(does gitlab support creating a merge request of a merge request?)

Realistically, there are some things that can only be achieved with
"structured User ID", and rfc4480bis should probably have some more
focus on that.
Particularly, if there is an uid has an email address associated, it is
crucial that all clients find the same one.


> Seems like the right way to address the most common (though still
> uncommon) use case is to make a new explicit subpacket that is just
> about handling a DNS suffix; to clearly define the interaction
> between multiple subpackets; and to deprecate the regex for that
> particular use case. (maybe deprecate the regex subpacket in general,
> as i've not seen any other legit use, and there are clearly gaps in
> the spec for it)

I would probably consider that subpacket over en email address,
although it would be very rare for one of them not to begin with "*@"


> That work is not really in-scope given our current charter, but if
> someone wants to write something like that down in a more formal way,
> i can imagine it being something for the WG to take on after we
> finish the cryptographic refresh and consider re-chartering.
> 
>               --dkg

Are you thinking on a separate RFC or as an amendment that could be
combined later into the same document?

Best regards