[TLS] Re: draft-ietf-tls-key-share-prediction next steps
"Kampanakis, Panos" <kpanos@amazon.com> Thu, 12 September 2024 20:10 UTC
Return-Path: <prvs=978e44b04=kpanos@amazon.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D36D2C14F685 for <tls@ietfa.amsl.com>; Thu, 12 Sep 2024 13:10:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.248
X-Spam-Level:
X-Spam-Status: No, score=-2.248 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.148, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=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 (1024-bit key) header.d=amazon.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 mayBFoVSzBiu for <tls@ietfa.amsl.com>; Thu, 12 Sep 2024 13:10:00 -0700 (PDT)
Received: from smtp-fw-80007.amazon.com (smtp-fw-80007.amazon.com [99.78.197.218]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E248FC151073 for <tls@ietf.org>; Thu, 12 Sep 2024 13:09:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1726171801; x=1757707801; h=from:to:cc:date:message-id:references:in-reply-to: mime-version:subject; bh=/wa1BW6F894lNc9l332ejtAwBXRMpyPkNVaNRMSgz/M=; b=Kb25Jj6OsFljc+D0G6cLbwfY4fIF+g2E8jULI5EEZ706qJrnSOAo+uDi zxFtRyK2oy37w8J0Aj/fen36yAvB/iR2HFcr6Al2m0rL4KXy9t2QMfCcP rR9eQ3+e+Lh6ht2Fmw+QGO45EsWDahcnyOc/jJkvl5bq/CnVmNsssWmdc s=;
X-IronPort-AV: E=Sophos;i="6.10,224,1719878400"; d="scan'208,217";a="330493558"
Thread-Topic: [TLS] Re: draft-ietf-tls-key-share-prediction next steps
Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO smtpout.prod.us-west-2.prod.farcaster.email.amazon.dev) ([10.25.36.210]) by smtp-border-fw-80007.pdx80.corp.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2024 20:09:54 +0000
Received: from EX19MTAUWC001.ant.amazon.com [10.0.38.20:45378] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.14.230:2525] with esmtp (Farcaster) id b0aaa291-fba7-40db-9ece-268b5df33b9e; Thu, 12 Sep 2024 20:09:53 +0000 (UTC)
X-Farcaster-Flow-ID: b0aaa291-fba7-40db-9ece-268b5df33b9e
Received: from EX19D001ANA003.ant.amazon.com (10.37.240.188) by EX19MTAUWC001.ant.amazon.com (10.250.64.174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1258.34; Thu, 12 Sep 2024 20:09:48 +0000
Received: from EX19D001ANA001.ant.amazon.com (10.37.240.156) by EX19D001ANA003.ant.amazon.com (10.37.240.188) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1258.35; Thu, 12 Sep 2024 20:09:47 +0000
Received: from EX19D001ANA001.ant.amazon.com ([fe80::4f78:75cd:3117:8055]) by EX19D001ANA001.ant.amazon.com ([fe80::4f78:75cd:3117:8055%5]) with mapi id 15.02.1258.035; Thu, 12 Sep 2024 20:09:47 +0000
From: "Kampanakis, Panos" <kpanos@amazon.com>
To: David Benjamin <davidben@chromium.org>
Thread-Index: AQHbBBH4DF8cMklY0keirYGehOgkRLJSOC8AgACYLQCAAcGBEA==
Date: Thu, 12 Sep 2024 20:09:47 +0000
Message-ID: <cc1e576c70f24659b220945b1e53f26f@amazon.com>
References: <CAF8qwaAU+cRapAc3xnySXiq2nOTXAFvLQYdWNC6rXdFj8iA39w@mail.gmail.com> <CAOp4FwTySAHKtwKv4ade9qm19GCvag-PAJxmDndxG5CYsDPvkw@mail.gmail.com> <ZuFNRD6UWgkhAbdl@LK-Perkele-VII2.locald> <CAF8qwaBmyZR4ky_sMZNbk4ZiKbZche8uXLhbPkLzU-xau77Ciw@mail.gmail.com>
In-Reply-To: <CAF8qwaBmyZR4ky_sMZNbk4ZiKbZche8uXLhbPkLzU-xau77Ciw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.106.179.8]
Content-Type: multipart/alternative; boundary="_000_cc1e576c70f24659b220945b1e53f26famazoncom_"
MIME-Version: 1.0
Message-ID-Hash: RQRNMXEFVHMMCUOS462TVXQIORYQD6KM
X-Message-ID-Hash: RQRNMXEFVHMMCUOS462TVXQIORYQD6KM
X-MailFrom: prvs=978e44b04=kpanos@amazon.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: "<tls@ietf.org>" <tls@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [TLS] Re: draft-ietf-tls-key-share-prediction next steps
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/SK109w8N1i9aCDMSjTGZmR0qiGs>
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>
Hi David, Note I am not against draft-ietf-tls-key-share-prediction. It is definitely better to not send unnecessary bytes on the wire. > Yup. Even adding one PQ key was a noticeable size cost (we still haven't shipped Kyber/ML-KEM to mobile Chrome because the performance regression was more prominent) so, yeah, we definitely do not want to send two PQ keys in the initial ClientHello. I have seen this claim before and, respectfully, I don’t fully buy it. A mobile client that suffers with two packet CHs is probably already crawling for hundreds of KBs of web content per conn. Any numbers you have to showcase the regression and the relevant affected web metrics? From: David Benjamin <davidben@chromium.org> Sent: Wednesday, September 11, 2024 8:02 PM To: Ilari Liusvaara <ilariliusvaara@welho.com> Cc: <tls@ietf.org> <tls@ietf.org> Subject: [EXTERNAL] [TLS] Re: draft-ietf-tls-key-share-prediction next steps CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. On Wed, Sep 11, 2024 at 3:58 AM Ilari Liusvaara <ilariliusvaara@welho.com<mailto:ilariliusvaara@welho.com>> wrote: On Wed, Sep 11, 2024 at 10:13:55AM +0400, Loganaden Velvindron wrote: > On Wed, 11 Sept 2024 at 01:40, David Benjamin <davidben@chromium.org<mailto:davidben@chromium.org>> wrote: > > > > Hi all, > > > > Now that we're working through the Kyber to ML-KEM transition, TLS > > 1.3's awkwardness around key share prediction is becoming starkly > > visible. (It is difficult for clients to efficiently offer both > > Kyber and ML-KEM, but a hard transition loses PQ coverage for some > > clients. Kyber was a draft standard, just deployed by early > > adopters, so while not ideal, I think the hard transition is not > > the end of the world. ML-KEM is expected to be durable, so a > > coverage-interrupting transition to FancyNewKEM would be a problem.) > > > > Can you detail a little bit more in terms of numbers ? > -Did you discover that handshakes are failing because of the larger > ClientHello ? > -Some web clients aren't auto-updating ? The outright failures because of larger ClientHello are actually web server issues. However, even ignoring any hard failures, larger ClientHello can cause performance issues. The most relevant of the issues is tldr.fail (https://tldr.fail/) where web server ends up unable to deal with TCP-level fragmentation of ClientHello. Even one PQ key (1216 bytes) fills vast manjority of TCP fragment (and other stuff in ClientHello can easily push it over, as upper limit is around 1430-1460 bytes). There is no way to fit two PQ keys. Then some web servers have ClientHello buffer limits. However, these limits are almost invariably high enough that one could fit two PQ keys. IIRC, some research years back came to conclusion that the maximum tolerable key size is about 3.3kB, which is almost enough for three PQ keys. Then there are a lot of web servers that are unable to deal with TLS- level fragmentation of ClientHello. However, this is not really relevant, given that the limit is 16kB, which is easily enough for 10 PQ keys and more than enough to definitely cause performance issues with TCP. Yup. Even adding one PQ key was a noticeable size cost (we still haven't shipped Kyber/ML-KEM to mobile Chrome because the performance regression was more prominent) so, yeah, we definitely do not want to send two PQ keys in the initial ClientHello. Sending them in supported_groups is cheap, but as those options take a RTT hit, they're not really practical. Hence all the key-share-prediction work. (For some more background, so the earlier WG discussions around this draft, before it was adopted.) And it is possible for web server to offer both, so even with hard client transition both old and new clients get PQ coverage. Yup, although that transition strategy requires that every PQ server move before any client moves, if your goal is to never interrupt coverage. That's not really a viable transition strategy in the long run, once PQ becomes widely deployed. David
- [TLS] draft-ietf-tls-key-share-prediction next st… David Benjamin
- [TLS] Re: draft-ietf-tls-key-share-prediction nex… John Mattsson
- [TLS] Re: [EXTERNAL] draft-ietf-tls-key-share-pre… Andrei Popov
- [TLS] Re: [EXTERNAL] draft-ietf-tls-key-share-pre… Bas Westerbaan
- [TLS] Re: [EXTERNAL] draft-ietf-tls-key-share-pre… Bob Beck
- [TLS] Re: draft-ietf-tls-key-share-prediction nex… Loganaden Velvindron
- [TLS] Re: draft-ietf-tls-key-share-prediction nex… Ilari Liusvaara
- [TLS] Re: draft-ietf-tls-key-share-prediction nex… David Benjamin
- [TLS] Re: draft-ietf-tls-key-share-prediction nex… David Benjamin
- [TLS] Re: draft-ietf-tls-key-share-prediction nex… Kampanakis, Panos
- [TLS] Re: draft-ietf-tls-key-share-prediction nex… David Adrian
- [TLS] Re: draft-ietf-tls-key-share-prediction nex… Kampanakis, Panos
- [TLS] Re: draft-ietf-tls-key-share-prediction nex… Eric Rescorla