Re: Invalid HTTP2 preface handling?
Greg Wilkins <gregw@intalio.com> Thu, 12 February 2015 00:08 UTC
Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ietf.org@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C8F7C1A700F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 11 Feb 2015 16:08:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.289
X-Spam-Level:
X-Spam-Status: No, score=-6.289 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 zAQuSAlQqoZM for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 11 Feb 2015 16:08:13 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 957DD1A6F5D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 11 Feb 2015 16:08:13 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1YLhGi-0001Hx-5j for ietf-http-wg-dist@listhub.w3.org; Thu, 12 Feb 2015 00:04:32 +0000
Resent-Date: Thu, 12 Feb 2015 00:04:32 +0000
Resent-Message-Id: <E1YLhGi-0001Hx-5j@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.80) (envelope-from <gregw@intalio.com>) id 1YLhGY-0001H7-Uv for ietf-http-wg@listhub.w3.org; Thu, 12 Feb 2015 00:04:22 +0000
Received: from mail-lb0-f170.google.com ([209.85.217.170]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <gregw@intalio.com>) id 1YLhGX-0006Rh-A9 for ietf-http-wg@w3.org; Thu, 12 Feb 2015 00:04:22 +0000
Received: by mail-lb0-f170.google.com with SMTP id u14so6448668lbd.1 for <ietf-http-wg@w3.org>; Wed, 11 Feb 2015 16:03:54 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=+/HCcJJBWsIzCMC8ReH5A2N4PFu/uH/aXtT9a9LaOQc=; b=c/0e1GBCRml26hE6Pkq89EUkUDKm4xxwiYQ/vTh850BtM7RW5lfQHxOLurEVczyQJ4 ulbxMoKhMVwCeXfepRUjOzNmxHGosVMmfyyYeAhUP/KfahpjpSCekt4lhMxUrNs1AzMa ZUoTHVvly/b3+NgydeEf/5agbb2RRAlN/mIcmw5FDTuxqmhXYAi0uld499fZoXUxmZpV /6I9U9q0U1gfjgTprZoLSyx7rl1PJkxTZ20rMNSEE+3nL5ABbyUOvk7kfazB0AZKTaCx ABwDcbysx1focec9o0DJ08B/5Ahjs6OTKuZ6RNbimFaAnQZHj/gCKz7OS42c8BnD+B4k MYFw==
X-Gm-Message-State: ALoCoQnReHPKzjLfJzFvNSw1g4+KvGN+mRDAGeartLyVvdzfNljiRQM7dfdC9X7X0U7XezGcSigR
MIME-Version: 1.0
X-Received: by 10.112.27.231 with SMTP id w7mr868181lbg.49.1423699433962; Wed, 11 Feb 2015 16:03:53 -0800 (PST)
Received: by 10.114.57.7 with HTTP; Wed, 11 Feb 2015 16:03:53 -0800 (PST)
In-Reply-To: <20150211060811.GA9759@1wt.eu>
References: <CAH_y2NE5Sa625XEec5WXJ7LdjK+h1b4M=Fc-_iGj2ZQKa1q_jg@mail.gmail.com> <5C91DE2C-BC82-4142-B292-815EED3627EC@mnot.net> <54DAA3A4.8060608@treenet.co.nz> <CAH_y2NG0_Y9nnDjLd2Fc_5wBessfy0DOfKBfkH8NiKjyzAiRVg@mail.gmail.com> <54DABF12.70609@treenet.co.nz> <CAH_y2NG5DtZ3zBP7FsUy392i8pcaHvTWvOdHODSi2gZ9vEZ_7g@mail.gmail.com> <20150211060811.GA9759@1wt.eu>
Date: Thu, 12 Feb 2015 11:03:53 +1100
Message-ID: <CAH_y2NEfaO0jBEOi1CYr=uv4bY+-05AvqMeb_MqvZ14pr=15cA@mail.gmail.com>
From: Greg Wilkins <gregw@intalio.com>
To: Willy Tarreau <w@1wt.eu>
Cc: Amos Jeffries <squid3@treenet.co.nz>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a1133b75a074739050ed8dbe9"
Received-SPF: permerror client-ip=209.85.217.170; envelope-from=gregw@intalio.com; helo=mail-lb0-f170.google.com
X-W3C-Hub-Spam-Status: No, score=-4.6
X-W3C-Hub-Spam-Report: AWL=-1.987, BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, URIBL_BLOCKED=0.001
X-W3C-Scan-Sig: maggie.w3.org 1YLhGX-0006Rh-A9 61868b6b19ba7faa09de6607471b6724
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Invalid HTTP2 preface handling?
Archived-At: <http://www.w3.org/mid/CAH_y2NEfaO0jBEOi1CYr=uv4bY+-05AvqMeb_MqvZ14pr=15cA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/28824
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>
On 11 February 2015 at 17:08, Willy Tarreau <w@1wt.eu> wrote: > Hi Greg, > > On Wed, Feb 11, 2015 at 03:15:38PM +1100, Greg Wilkins wrote: > > Anyway, I've got my answer. There is no specific threat, just a > preference > > to not allow such a simple upgrade/downgrade for the sake of prudence. > I > > can accept that and while I'm still considering supporting a preface > based > > version switch, it will be a use-at-own-risk private feature. > > In fact, we all want to be strict on this in order to ensure that no lazy > implementer would notice it works well without the preface and decides not > to emit it. That's where the trouble could start. > Willy, definitely not proposing to allow HTTP2 without the prefix. I'm saying that if you want HTTP2, then you must follow the standard exactly - including the preface. However, if a HTTP/21 client does connect to a HTTP/2 server, the server will be able to detect this by the lack of preface. Standard calls for that to be a connection failure and I agree that is the prudent action for the specification to require. However, I have a use case for which I am considering a non standard extension that would allow the HTTP/1 connection to proceed (on the shaky ground as PHK says) and I just wanted to know if there was a specific threat that would expose, or just a general would-be-better-if-we-didn't-risk-it type of thing. cheers -- Greg Wilkins <gregw@intalio.com> @ Webtide - *an Intalio subsidiary* http://eclipse.org/jetty HTTP, SPDY, Websocket server and client that scales http://www.webtide.com advice and support for jetty and cometd.
- Invalid HTTP2 preface handling? Greg Wilkins
- Re: Invalid HTTP2 preface handling? Mark Nottingham
- Re: Invalid HTTP2 preface handling? Amos Jeffries
- Re: Invalid HTTP2 preface handling? Greg Wilkins
- Re: Invalid HTTP2 preface handling? Amos Jeffries
- Re: Invalid HTTP2 preface handling? Michael Sweet
- Re: Invalid HTTP2 preface handling? Greg Wilkins
- Re: Invalid HTTP2 preface handling? Martin Thomson
- Re: Invalid HTTP2 preface handling? Willy Tarreau
- Re: Invalid HTTP2 preface handling? Julian Reschke
- Re: Invalid HTTP2 preface handling? Poul-Henning Kamp
- Re: Invalid HTTP2 preface handling? Mark Nottingham
- Re: Invalid HTTP2 preface handling? Greg Wilkins