Re: [Uta] UTS-46 / WHATWG

Rob Sayre <sayrer@gmail.com> Mon, 30 January 2023 20:13 UTC

Return-Path: <sayrer@gmail.com>
X-Original-To: uta@ietfa.amsl.com
Delivered-To: uta@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EC8C9C15152E; Mon, 30 Jan 2023 12:13:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.094
X-Spam-Level:
X-Spam-Status: No, score=-2.094 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] 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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZxXXmHy6ZID0; Mon, 30 Jan 2023 12:13:34 -0800 (PST)
Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B6F8CC17CEA9; Mon, 30 Jan 2023 12:13:10 -0800 (PST)
Received: by mail-ej1-x634.google.com with SMTP id p26so24085390ejx.13; Mon, 30 Jan 2023 12:13:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=e6zO1y0oy1XENnUfw2QLNcOuIDxmLhOLG8hd4cS8+Ng=; b=FA3/1w6Ue3IkiIMdHeWshl+wNcLJsP8UEnRduDIpuNRjhegpOPW+yVU9k/lZHXeLvP kMSeDL92uxKb/Rc++8EhUC8grjbOsGnoe32oHLX6M3ISU85zWYfJrrE/CpbiBKTc6vGc JKsfDLU/E5BzFMSK0DN/P35KFc9Yj/oIDr98vR5+rl6PwafRSrAgJ55jqvDeghG6Ntb1 L0FZJ8Mt3Iy/l7xjVtgdoW5dv2JcwUQKUcSUbhbBQ8eXL+BETXUjLRCCcHkrXn73KZpz QJiO9lXgE6quno4GAgrS9DS8YrzT5Lfijq/CNjuAcGZzbAV0KCp1l1fh+8+oaNG44PUi MB3A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e6zO1y0oy1XENnUfw2QLNcOuIDxmLhOLG8hd4cS8+Ng=; b=DetcD311NF/So57oDuHgkjQBYYCmhSM6c3FO4SH5MsSMJ60S63dGuaf8AXRow+aaQQ QadNvkxJVMR5df0pHXqwiUXCRaDLdScVrVTtNIOpxIDTzhEJak7VN9O+6cUHN2Zj+6jc CHHSkJaWjGLdwO8URb9r0IO1kN62nJeVZSExi3bUpbg0073VDEKLJEPjuI8lyRJa1Dg1 WgbE96LeKVYP1ak7b43LN4ibT40n0YS3khBPjDHQeZsrxBboZlcTwiUqjwBB/WihAuPq hwlM8a6/3sIp6lycgMquBUEswlFq2hCnKCgytVCw5hQOTKOi4Nd+3FE4uF/eI9gmnTjB VIQQ==
X-Gm-Message-State: AO0yUKVqBkMub0EwVvQm1n1wH84O1JnE1DN5mmlBEzheozAdtC7MdyM7 yJngAy7tay83czriqgDwuHi9J2HPaMKHNZuKhQaEbfl1Iv0=
X-Google-Smtp-Source: AMrXdXtpjGq87vkB6mHM/rCXc9gelcLJhcgwXCfYZB/lG/Z/tY7/kNUwLOq1UoFR22Xo3Sd8P3oo7byrIw9nSz9auZY=
X-Received: by 2002:a17:906:3042:b0:877:ec5e:87ce with SMTP id d2-20020a170906304200b00877ec5e87cemr5994807ejd.262.1675109588832; Mon, 30 Jan 2023 12:13:08 -0800 (PST)
MIME-Version: 1.0
References: <CAChr6Sxk70HaZbuGykdLHBXr50kVhu3Aw8as5zkHUZjtNzRSfQ@mail.gmail.com> <c3388f3c-ddf4-994d-2724-5116b160297e@stpeter.im> <CAChr6SwQKNrDG-Pehn_-qB+QH7A6aj0R_9Ss_fofQJcyTfXZ=g@mail.gmail.com> <931D4D2C72BA35802715512C@PSB> <CAChr6SxPKvBfzRcaR5J4_xwee7dtJa8iws5GP99OSd-P6trnEg@mail.gmail.com> <6bbb9b8d-21b7-808d-773a-4b54932217a4@lear.ch> <CAChr6Sz7ShmU0c=Q_az_Cde4xRK8EnTL1dON8Jpd5x_1ryzCVw@mail.gmail.com> <Y9bHXiTanQ5fnEAh@straasha.imrryr.org> <FDA2D2DE-D24B-4CA3-AD44-B4C68B6931CF@akamai.com> <9d2ee1ba-2b04-8dd2-1015-391c20708f46@stpeter.im> <006501d934b4$3bad6fc0$b3084f40$@gmail.com> <CAChr6SxdUmShJpO+dHipgHeMZZQvpGdWLn6bvXDPXqjUBMXe3g@mail.gmail.com> <CACsn0cnJuEqmg3M8ovMnKEvtSBPVxiSOPKLcJh5RiB+SOjNDJw@mail.gmail.com>
In-Reply-To: <CACsn0cnJuEqmg3M8ovMnKEvtSBPVxiSOPKLcJh5RiB+SOjNDJw@mail.gmail.com>
From: Rob Sayre <sayrer@gmail.com>
Date: Mon, 30 Jan 2023 12:12:57 -0800
Message-ID: <CAChr6SxSo1uMuqNncuOGv4_ZswQPdnZyDxN4BMR9bKX_mWg0gw@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>, Viktor Dukhovni <ietf-dane@dukhovni.org>
Cc: Valery Smyslov <smyslov.ietf@gmail.com>, uta@ietf.org, Peter Saint-Andre <stpeter@stpeter.im>, "Salz, Rich" <rsalz=40akamai.com@dmarc.ietf.org>, uta-chairs@ietf.org
Content-Type: multipart/alternative; boundary="00000000000000958e05f380d8d6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/uta/jPXEXxGVOboZD9fht_ZqWfF7lJY>
Subject: Re: [Uta] UTS-46 / WHATWG
X-BeenThere: uta@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: UTA working group mailing list <uta.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/uta>, <mailto:uta-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/uta/>
List-Post: <mailto:uta@ietf.org>
List-Help: <mailto:uta-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/uta>, <mailto:uta-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jan 2023 20:13:39 -0000

Hi,

Viktr Duhovni wrote:
[...pretty much the same stuff...]
"This document does not attempt to resolve the differences between the
conflicting specifications."

I don't think we need to say this--it's obvious.

"DNS names that conform to IDNA2008 are likely to face fewer
interoperability barriers, while applications that conform to UTS-46 may be
able to verify a broader range of certificates."

I'd be fine with adding that to the end of what I wrote, but I do want to
leave what ICANN said in the text. It seems to me that they covered the
issue pretty well.

thanks,
Rob


On Mon, Jan 30, 2023 at 11:17 AM Watson Ladd <watsonbladd@gmail.com> wrote:

> On Mon, Jan 30, 2023 at 10:49 AM Rob Sayre <sayrer@gmail.com> wrote:
> >
> > Hi,
> >
> > That is a reasonable thing to ask for, and I will supply edits below.
> They might sound like me rather than the authors, so I wouldn't mind if
> they write something substantially similar in their own voice.
> >
> > I also understand the point of view that says "Really all this draft
> says is 'compare A labels.'" But this is incompatible with strenuous
> objections to changes to IDNA text in the document, so I don't understand
> this behavior. When I read the document, I thought "that's not how it
> really works, and I sure wish I didn't have to read the WHATWG document to
> get the truth, because it's really long". In fact, this very mailing list
> even runs on UTS-46. See
> https://mailarchive.ietf.org/arch/msg/uta/KbtvWrG5vdW6iq0scwWpBc1xeM8/
> >
> > In Section 2, the current text is incorrect, because UTS-46 domains
> sometimes don't conform to these validity checks. So, the document is
> inconsistent in making this claim. Citing UTS-46 here would be correct,
> since that would also cover IDNA2008, but it doesn't seem like that will
> fly.
> >
> > Current:
> > ---
> > An "internationalized domain name", i.e., a DNS domain name that
> includes at least one label containing appropriately encoded Unicode code
> points outside the traditional US-ASCII range and conforming to the
> processing and validity checks specified for "IDNA2008" in [IDNA-DEFS] and
> the associated documents. In particular, it contains at least one U-label
> or A-label, but otherwise may contain any mixture of NR-LDH labels,
> A-labels, or U-labels.
> >
> > New:
> > ---
> > An "internationalized domain name", i.e., a DNS domain name that
> includes at least one label containing appropriately encoded Unicode code
> points outside the traditional US-ASCII range. In particular, it contains
> at least one U-label or A-label, but otherwise may contain any mixture of
> NR-LDH labels, A-labels, or U-labels. Refer to [[Section 7.3]] for further
> details.
> > ---
>
> I think that's right.
>
> >
> >
> > Then, in section 7.3:
> > Current:
> > ---
> > As with URIs and URLs, there are in practice at least two primary
> approaches to internationalized domain names: "IDNA2008" (see [IDNA-DEFS]
> and the associated documents) and an alternative approach specified by the
> Unicode Consortium in [UTS-46]. (At this point the transition from the
> older "IDNA2003" technology is mostly complete.) Differences in
> specification, interpretation, and deployment of these technologies can be
> relevant to Internet services that are secured through certificates (e.g.,
> some top-level domains might allow registration of names containing Unicode
> code points that typically are discouraged, either formally or otherwise).
> Although there is little that can be done by certificate matching software
> itself to mitigate these differences (aside from matching exclusively on
> A-labels), the reader needs to be aware that the handling of
> internationalized domain names is inherently complex and can lead to
> significant security vulnerabilities if not properly implemented.
> >
> > New:
> > The IETF document covering internationalized domain names is "IDNA2008"
> [IDNA-DEFS]. The Unicode Consortium publishes a similar document known as
> "UTF-46". This document allows names that are valid in IDNA2003 but not
> IDNA2008, and additionally allows characters that are not valid in either
> IETF document, such as emoji characters. This more lenient approach carries
> additional risk of semantic ambiguity and additional security
> considerations. ICANN recommends IDNA2008 [
> https://features.icann.org/ssac-advisory-use-emoji-domain-names] and
> against emoji characters in domain names. However, the internet contains
> old content published under IDNA2003, and people enjoy emoji characters, so
> consumer applications often end up using the more liberal approach in
> [UTS-46].
> > ---
>
> I think we actually need to say more here: the A-label used in the
> X509 comparison needs to be the A-label derived and used to do the DNS
> lookup. Otherwise we have the issue of bugs that change the IDN
> behavior between application and X509/TLS library breaking the
> relation between what the user put in and the cert presented.
>
> Also I don't think comparison is enough: don't name constraints need
> to be included in the calculation?
>
> Sincerely,
> Watson Ladd
>