Re: [TLS] Version negotiation, take two
Vlad Krasnov <vlad@cloudflare.com> Fri, 16 September 2016 20:21 UTC
Return-Path: <vlad@cloudflare.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 6398012B2EC for <tls@ietfa.amsl.com>; Fri, 16 Sep 2016 13:21:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.701
X-Spam-Level:
X-Spam-Status: No, score=-2.701 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cloudflare.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 aLTWUN1Lv53u for <tls@ietfa.amsl.com>; Fri, 16 Sep 2016 13:21:11 -0700 (PDT)
Received: from mail-pf0-x231.google.com (mail-pf0-x231.google.com [IPv6:2607:f8b0:400e:c00::231]) (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 16A4E12B016 for <tls@ietf.org>; Fri, 16 Sep 2016 13:21:11 -0700 (PDT)
Received: by mail-pf0-x231.google.com with SMTP id 21so19670479pfy.0 for <tls@ietf.org>; Fri, 16 Sep 2016 13:21:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=doo+uLC3Ug9AssVDYa7LOvhiUyqchaKIVbibInb8SWU=; b=XRd8xZOctArI0daIFAG91lr+mMmZGgjsOA2djB3P5f3IOKjeEiTEnkgfPUSul/3LfS yVqke+iWO2ybcKFRmjkyRllo6+jYD5o01bNUvN5LqGFEAXNAE8lRQyFdWJ1CoTDl7unj GpMDoRCeAnt1Sr3R30AvUGUrt/f5w2zS3lF+4=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=doo+uLC3Ug9AssVDYa7LOvhiUyqchaKIVbibInb8SWU=; b=dWLSX444bS1ipph0ca5mVcK7kf3tctCMdICQ2+qLout9vyvUNyYjy3HnhCw5Q8+MLM JV03BxvdokYyVtUaT+OhrtZZqxbjjUmRk+i3pOAda7cr8W5HN60jEZhjXaV/iGkvdGKm txXdmhDKj/EWQV3ScjPMV8LdbOjCAeH06+/ZtbBCjP2JEvdesPmqluAK4nXxl3XwfODw 4ZDsmzL6PvoXYnx1knhlaO4x51SuLdnJiDLu8X/hwpcda6hEW+9ryTnehI/REaFxizwL 7v/xuTprAKKqHvlLiMxYDWFVqccjZjnBs7vqYPzL/NiZ3B8VzXduLv39E3X+OeOKrA9k N9IQ==
X-Gm-Message-State: AE9vXwNjsjt4uPgIj2s6K/CD70flAExVuYtuPkqq/0QpRyf0kInHL2umjp7GA8J6Es4+Mmyh
X-Received: by 10.98.103.8 with SMTP id b8mr25656304pfc.122.1474057270638; Fri, 16 Sep 2016 13:21:10 -0700 (PDT)
Received: from ?IPv6:2606:4700:1000:8200:a914:4243:3cd9:677d? ([2606:4700:1000:8200:a914:4243:3cd9:677d]) by smtp.gmail.com with ESMTPSA id n7sm54145293pfg.45.2016.09.16.13.21.09 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Sep 2016 13:21:10 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Vlad Krasnov <vlad@cloudflare.com>
In-Reply-To: <14763739.WULTImn4ek@pintsize.usersys.redhat.com>
Date: Fri, 16 Sep 2016 13:21:09 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <480F8AC4-3299-4E35-A78A-24F404695675@cloudflare.com>
References: <CAF8qwaA86yytg29QOD_N7ARimh9QcNGU_nnr_OrxqCrvrk2MBg@mail.gmail.com> <CY1PR0301MB08422C3C4B9B4029C0B423B58CF10@CY1PR0301MB0842.namprd03.prod.outlook.com> <5f09fa69-8d0a-8f83-5dda-ce1fabb51250@akamai.com> <14763739.WULTImn4ek@pintsize.usersys.redhat.com>
To: Hubert Kario <hkario@redhat.com>
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/kKNSR6Z8v2EqyGlsa0V5mDM_zTE>
Cc: tls@ietf.org
Subject: Re: [TLS] Version negotiation, take two
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 16 Sep 2016 20:21:13 -0000
I am opposed to this change. I don’t think that version selection as an extension is such a good idea. Some implementations out there rely on the fact that they can read the first two bytes of the client hello, and take the appropriate code path on the spot. That allows for a very simple and stream-lined parsing of the hello, with minimal buffering. Also note that several fields *preceding* the extensions have special values for TLS 1.3. Delaying this decision until after all the extensions are parsed will make implementations that much more complex, memory consuming, and slower (HOL blocking), plus potentially leading to new bugs we want to avoid. At the very least, if version is negotiated as extension it must be the very first extension advertised. Cheers, Vlad > On 15 Sep 2016, at 11:03, Hubert Kario <hkario@redhat.com> wrote: > > On Thursday, 15 September 2016 11:51:31 CEST Benjamin Kaduk wrote: >> On 09/14/2016 02:02 PM, Andrei Popov wrote: >>> Basically, I don't feel strongly about the switch to the proposed version >>> negotiation mechanism. But if we are going to make this change based on >>> the theory of having only one extension point and actively defending it, >>> then we should probably follow the theory and send a separate TLS >>> extension per TLS version. >> To me, the (ordered) list of client supported versions in a single >> extension feels more intuitively natural, so I want to try harder to >> understand the reasoning that leads you to prefer a separate extension >> for each version. Is it just that doing an additional "negotiation" >> within the extension body constitutes another extension point that we >> would have to actively defend, or is there something else about what a >> TLS extension is philosophically supposed to indicate? > > the extensions joint is well greased and works > > the lists inside extensions are a hit and miss, they mostly work, but then we > have SNI in general, signature methods in past NSS versions, and if you dug > more I wouldn't be surprised if you found half a dozen other issues just like > it (in late October I may have actual numbers about it) > > -- > Regards, > Hubert Kario > Senior Quality Engineer, QE BaseOS Security team > Web: www.cz.redhat.com > Red Hat Czech s.r.o., Purkyňova 99/71, 612 45, Brno, Czech Republic_______________________________________________ > TLS mailing list > TLS@ietf.org > https://www.ietf.org/mailman/listinfo/tls
- [TLS] Version negotiation, take two David Benjamin
- Re: [TLS] Version negotiation, take two Short, Todd
- Re: [TLS] Version negotiation, take two Xiaoyin Liu
- Re: [TLS] Version negotiation, take two Hannes Tschofenig
- Re: [TLS] Version negotiation, take two Benjamin Kaduk
- Re: [TLS] Version negotiation, take two Kyle Rose
- Re: [TLS] Version negotiation, take two Sean Turner
- Re: [TLS] Version negotiation, take two Hubert Kario
- Re: [TLS] Version negotiation, take two Benjamin Kaduk
- Re: [TLS] Version negotiation, take two David Benjamin
- Re: [TLS] Version negotiation, take two Hubert Kario
- Re: [TLS] Version negotiation, take two Andrei Popov
- Re: [TLS] Version negotiation, take two Hubert Kario
- Re: [TLS] Version negotiation, take two Andrei Popov
- Re: [TLS] Version negotiation, take two Salz, Rich
- Re: [TLS] Version negotiation, take two Andrei Popov
- Re: [TLS] Version negotiation, take two Hubert Kario
- Re: [TLS] Version negotiation, take two Hubert Kario
- Re: [TLS] Version negotiation, take two Benjamin Kaduk
- Re: [TLS] Version negotiation, take two Hubert Kario
- Re: [TLS] Version negotiation, take two Andrei Popov
- Re: [TLS] Version negotiation, take two Andrei Popov
- Re: [TLS] Version negotiation, take two Vlad Krasnov
- Re: [TLS] Version negotiation, take two Andrei Popov
- Re: [TLS] Version negotiation, take two David Benjamin
- Re: [TLS] Version negotiation, take two Hubert Kario
- Re: [TLS] Version negotiation, take two Vlad Krasnov
- Re: [TLS] Version negotiation, take two Joseph Salowey