[TLS] Re: Artart last call review of draft-ietf-tls-esni-23

Eric Rescorla <ekr@rtfm.com> Wed, 19 March 2025 23:47 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: tls@mail2.ietf.org
Delivered-To: tls@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 70D64F1F88F for <tls@mail2.ietf.org>; Wed, 19 Mar 2025 16:47:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URI_DOTEDU=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20230601.gappssmtp.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HLVNHkTMm4wo for <tls@mail2.ietf.org>; Wed, 19 Mar 2025 16:47:30 -0700 (PDT)
Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 07249F1F874 for <tls@ietf.org>; Wed, 19 Mar 2025 16:47:30 -0700 (PDT)
Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-6feafc707d3so1861117b3.1 for <tls@ietf.org>; Wed, 19 Mar 2025 16:47:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20230601.gappssmtp.com; s=20230601; t=1742428049; x=1743032849; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zZRhWLBOjL/hv+SkQwSerAfOttHqIqfFiTqs16rltPk=; b=eazyZZvniK2fmNgwPgNr1Y5+jJ7cPxF2YSIMiEe+yb/BBCT6erIsJRS0SwZ2o8x3d3 jY8A7IQu0nLPFRzFRgTK32LivSCjYs8BpUXwLzdcDH41T4JUEtjm+1Xjd9mX+Gq0oRrb xLxqxMhwtkh3zNdnMEwAzY1LRy+dRCQNGCRjGekHEFCVl9YtzijrdJFryshEkZ6ONl2s sMqEio9pPuoY0Y7nbVd1SnJ1dVvwvVIJ1kPSzuGRfOOoqQEBhDVNET/xJ61bdDkrhfT4 k6ZiSo1iNvJqlc6B6T+wEvPPhM3OJzz3WywhLCs3j8Zm8ekWL+nMcSnlGreNpcC/jx9Z AMzQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742428049; x=1743032849; 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=zZRhWLBOjL/hv+SkQwSerAfOttHqIqfFiTqs16rltPk=; b=r/lj9zGHSDpSrgWsKOnLgNBjG4a2Gspbm9iZVPyMren58RlwcWN/O2RCP7PvCwgpr9 +NzK8UEjj+zKIoLxL6JXPqAR3LFDgZR8fUFiiANh0WTCoDAcxa7xeIm0V637Qg011r9p AnDFwLzJWheFbnuNtXeeSLPbukqzfAiek6z0vpc1QfgspjlLT3onK7vAcjNg4aJt8BsU E9nVYKiE5BXaiLINVE5mziIYm3E5Q5Bt1ZTIPoqqep5EqO5Ec+WQDQODB2n5c/2cpdtj 21CYXxSp4TVdUorjNJ7ZQ6MHXwH2E5CfeyoB/xHR7dSLjHMAftTt7VQS9uzd+k8WVmW/ jg5w==
X-Forwarded-Encrypted: i=1; AJvYcCVqg+km2gAljV5vIiE3CoxGAmbHRSTlRwenEj/cJvXlTG7bTUdkQvQ86YXeW1WdagnKPFo=@ietf.org
X-Gm-Message-State: AOJu0Yyy8SfwLIHZjoUBS8dTkPZe39daS7ydxo8l+GF6eTsinvihMFgL 5y1VsmP+uBrfnrF3p7kGSH59N/Y9anTy5DwYwBwHH715S+/tV6MpPvRs07DEZPp5lHefkkmChCw KSVi9DodKpo1XduHZDstgp595cMz0YC0mmYuQxQ==
X-Gm-Gg: ASbGncs/AedT21u4auHVvD23UhWfLrI/Un+tviyf8xkAgZgS9e4YD6WvBIjtEDpjowc /UZhKpOlov0S/43Uw+ELot48OqCzhGtcjXJghG5EIH+UMG+I2mehTt7hJNt23bf9Bl1eByZ84fy ylY3DbD6UvbyUPEkc2b2KDaUt6
X-Google-Smtp-Source: AGHT+IFnRuAvjczi1obNLlF6Ch3+kVeBsyDmZRKWGiiRd8E+WGYvnBGhGhoPvIfQwx74WvOkrDgMoueHSJIgB20Pfk4=
X-Received: by 2002:a05:690c:4a08:b0:6fe:bfb7:68bd with SMTP id 00721157ae682-7009bf55401mr66526157b3.1.1742428049485; Wed, 19 Mar 2025 16:47:29 -0700 (PDT)
MIME-Version: 1.0
References: <174195569968.1129616.11646761159093856135@dt-datatracker-775fc5cbb8-824tp>
In-Reply-To: <174195569968.1129616.11646761159093856135@dt-datatracker-775fc5cbb8-824tp>
From: Eric Rescorla <ekr@rtfm.com>
Date: Wed, 19 Mar 2025 16:46:53 -0700
X-Gm-Features: AQ5f1JoCVr1_EmCwvvsP4oSisrvjqCOF-PrIEvnxcqzGgDFnp8Jpdv1-bePum8w
Message-ID: <CABcZeBOQ0ZQW3v-ufSadf+4bhPsLFq3G9Q09RvrL4Nr5VtCmEA@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Content-Type: multipart/alternative; boundary="000000000000efd13d0630baa409"
Message-ID-Hash: ET7R2YOWLSVGLBRFIH45UV5EK7JRKZLD
X-Message-ID-Hash: ET7R2YOWLSVGLBRFIH45UV5EK7JRKZLD
X-MailFrom: ekr@rtfm.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tls.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: art@ietf.org, draft-ietf-tls-esni.all@ietf.org, last-call@ietf.org, tls@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [TLS] Re: Artart last call review of draft-ietf-tls-esni-23
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/fj6pUzhAkUrzbuwC7Ko2_bAEgX4>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Owner: <mailto:tls-owner@ietf.org>
List-Post: <mailto:tls@ietf.org>
List-Subscribe: <mailto:tls-join@ietf.org>
List-Unsubscribe: <mailto:tls-leave@ietf.org>

Thank you for your close review.

I have made a PR in response to these comments:
PR https://github.com/tlswg/draft-ietf-tls-esni/pull/648

Detailed responses below.

## Editorial

> 10.1 »Security and Privacy Goals« starts with definitions
> (active/passive) that aren’t really Security/Privacy goals.
> Since “passive” is then used distinguishingly in only three places, it
> is not clear that this passage is particularly useful.
> It is also puzzling to sort filtering middleboxes under “passive”.

They are passive from the perspective of ECH's threat model;
this is part of why I think this paragraph is useful.

> 10.1: I cannot find a discussion of a “threat model” under this name
> in RFC 8446.

This is a citation for TLS 1.3. I have added a citation for
3552 behind threat model.


> 10.1: This section starts using the term “host” as a noun with a
> distinguishing quality that in this document is probably related to
> server_name, but not explained (“host” as a noun does not occur in RFC
> 8446).

I changed the term "host" to "server name".

>
> 10.2 appears to address integrity only, where the heading might
> suggest some discussion about confidentiality.

The final sentence addresses confidentiality or the lack thereof.


> I don’t understand the last sentence of 10.3 (“servers with high
> load”…).

I rewrote this a bit.


> 11.3: After »A "Y" or "N" value indicating if the extension is TLS WG
recommends
> that the extension be supported.« — can’t parse »Adding a value with a
> value of "Y" requires Standards Action .« -- s/value/registration/ ?

Fixed.


> 10.11: I would have expected a brief discussion on how granularizing
> the padding to 32 byte steps cannot be used by an attacker to extract
> information beyond that granularity (by causing the client to vary the
> size before padding, straddling a step).

The attacker doesn't control CH at all, so I'm not sure why this
would be needed.


> ## Nits
>
> Please do a pass of replacing “which” with “that” where a restrictive
> clause is intended (usually easy to find by the lack of a comma, about
> two dozen occurrences)

This is one of those folklore grammar rules that does not
match actual English usage, like not splitting infinitives.

http://itre.cis.upenn.edu/~myl/languagelog/archives/001484.html


> Thank you for the many section references; two more could be used in
> »<p id="section-10.8-3">Note that, if the cookie includes a key name,
> analogous to Section 4 of« and »<p id="section-6.1-7.3.1”>[…] (see
> Appendix D.4 of <span>[<a href="#RFC8446" class="cite
> xref">RFC8446</a>]</span>) when ECH is negotiated.«

Done.

> There are at least 17 occurrences of ‘bytes’ for counting lengths in
> bytes and 3 of ‘octet’/‘octets’.

I changed these all to "bytes".


> Please expand HRR on first use.

Done.


> Please define “ECH key” (8 occurrences) and “ECH record” (5
> occurrences).

I am replacing ECH record with HTTPS record, which is already
defined. Defined ECH key.


> Please define “application profile” and “application profile standard”
> (10.4 uses “application using (D)TLS” — is that the same?)

I don't believe this is a necessary change. TLS 1.3 already uses
this term without definition in RFC 8446 S 9.1.


> 1: »the SNI remains the primary explicit signal used to determine the
> server's identity.« -- used by whom?

By observers. Addresed.


> Figure 2 uses private.example.com in the second variant where
> private.example.org is used in the first; may want to use .org here as
well

Fixed.



> 5: it is slightly surprising that the definition list explaining
> config_id and cipher_suite does this in an order different from the
> TPL in the figure above

I take your point, but I think this is reflects the difference
between code (avoiding forward references) and text (top down).


> 5.1: The first figure has a cliff-hanger (length_of_padding); maybe
> add a reference to 6.1.3.

Done.


> 5.2: »This value does not include Handshake structure's four-byte
> header in TLS,«

Removed the comma.


> 6.1.1: »Including ClientHelloOuterAAD as the HPKE AAD binds the
> ClientHelloOuter to the ClientHelloInner, this preventing attackers«
> s/this/thus/ ?

Fixed.

> 6.1.3: »through -their length«

Fixed.

> 6.1.3: »that have sensitive-length fields« (hyphen ➔ space)

This appears to be some kind of rendering error. It's fine in
the markdown. I'll trust the RPC to fix it.


> 6.1.6 »yield a tracking vector« — for whom?
> ➔ supply the server with a tracking vector?

I think this is OK as-is.


> 6.1.7: »reference identity« -- define?

Added a reference to RFC 6125.

> 6.1.7: »(e.g. [RFC3986], Section 7.4 and [WHATWG-IPV4])«
> The "and" does not work here

Fixed.

> 6.2.2: »Correctly-implemented client will ignore those extensions.«

Fixed.


> 10.9: could use superscript in place of 2^64
> (This of course only applies to usage in text, which seems to be the
> only one here.)

Markdown again. I'll let the RPC address.

> 10.10.4: »out-of-scope. including, «

Fixed.

> I assume “page” in 11.3 is what is now called “registry group”?

Yes. Fixed.


On Fri, Mar 14, 2025 at 5:35 AM Carsten Bormann via Datatracker <
noreply@ietf.org> wrote:

> Reviewer: Carsten Bormann
> Review result: Ready with Nits
>
>
> (Insert ARTART boilerplate here.)
>
> Thank you for this draft, it is in very good shape.
> The document is explicit about the different configurations the
> protocol can be run in, the participants, their roles, the security
> and privacy objectives that can be achieved as well as the security
> considerations, and it discusses (and addresses!) deployment
> considerations.
>
> This specification is ready with nits.
> A few editorial observations and a few nits below.
>
> ## Editorial
>
> 10.1 »Security and Privacy Goals« starts with definitions
> (active/passive) that aren’t really Security/Privacy goals.
> Since “passive” is then used distinguishingly in only three places, it
> is not clear that this passage is particularly useful.
> It is also puzzling to sort filtering middleboxes under “passive”.
>
> 10.1: I cannot find a discussion of a “threat model” under this name
> in RFC 8446.
>
> 10.1: This section starts using the term “host” as a noun with a
> distinguishing quality that in this document is probably related to
> server_name, but not explained (“host” as a noun does not occur in RFC
> 8446).
>
> 10.2 appears to address integrity only, where the heading might
> suggest some discussion about confidentiality.
>
> I don’t understand the last sentence of 10.3 (“servers with high
> load”…).
>
> 11.3: After »A "Y" or "N" value indicating if the extension is TLS WG
> recommends
> that the extension be supported.« — can’t parse »Adding a value with a
> value of "Y" requires Standards Action .« -- s/value/registration/ ?
>
> 10.11: I would have expected a brief discussion on how granularizing
> the padding to 32 byte steps cannot be used by an attacker to extract
> information beyond that granularity (by causing the client to vary the
> size before padding, straddling a step).
>
> ## Nits
>
> Please do a pass of replacing “which” with “that” where a restrictive
> clause is intended (usually easy to find by the lack of a comma, about
> two dozen occurrences)
>
> Thank you for the many section references; two more could be used in
> »<p id="section-10.8-3">Note that, if the cookie includes a key name,
> analogous to Section 4 of« and »<p id="section-6.1-7.3.1”>[…] (see
> Appendix D.4 of <span>[<a href="#RFC8446" class="cite
> xref">RFC8446</a>]</span>) when ECH is negotiated.«
>
> There are at least 17 occurrences of ‘bytes’ for counting lengths in
> bytes and 3 of ‘octet’/‘octets’.
>
> Please expand HRR on first use.
>
> Please define “ECH key” (8 occurrences) and “ECH record” (5
> occurrences).
>
> Please define “application profile” and “application profile standard”
> (10.4 uses “application using (D)TLS” — is that the same?)
>
> 1: »the SNI remains the primary explicit signal used to determine the
> server's identity.« -- used by whom?
>
> Figure 2 uses private.example.com in the second variant where
> private.example.org is used in the first; may want to use .org here as
> well
>
> 5: it is slightly surprising that the definition list explaining
> config_id and cipher_suite does this in an order different from the
> TPL in the figure above
>
> 5.1: The first figure has a cliff-hanger (length_of_padding); maybe
> add a reference to 6.1.3.
>
> 5.2: »This value does not include Handshake structure's four-byte
> header in TLS,«
>
> 6.1.1: »Including ClientHelloOuterAAD as the HPKE AAD binds the
> ClientHelloOuter to the ClientHelloInner, this preventing attackers«
> s/this/thus/ ?
>
> 6.1.3: »through -their length«
>
> 6.1.3: »that have sensitive-length fields« (hyphen ➔ space)
>
> 6.1.6 »yield a tracking vector« — for whom?
> ➔ supply the server with a tracking vector?
>
> 6.1.7: »reference identity« -- define?
>
> 6.1.7: »(e.g. [RFC3986], Section 7.4 and [WHATWG-IPV4])«
> The "and" does not work here
>
> 6.2.2: »Correctly-implemented client will ignore those extensions.«
>
> 10.9: could use superscript in place of 2^64
> (This of course only applies to usage in text, which seems to be the
> only one here.)
>
> 10.10.4: »out-of-scope. including, «
>
> I assume “page” in 11.3 is what is now called “registry group”?
>
>
>
>