Re: chunk-extensions

Mark Nottingham <mnot@mnot.net> Fri, 13 September 2013 23:56 UTC

Return-Path: <ietf-http-wg-request@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 (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BBE9221E8090 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 13 Sep 2013 16:56:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.203
X-Spam-Level:
X-Spam-Status: No, score=-9.203 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, MIME_QP_LONG_LINE=1.396, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3lflN9EoO2HN for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 13 Sep 2013 16:56:39 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 6302E21E8082 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 13 Sep 2013 16:56:38 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1VKdCh-0007S9-DU for ietf-http-wg-dist@listhub.w3.org; Fri, 13 Sep 2013 23:55:11 +0000
Resent-Date: Fri, 13 Sep 2013 23:55:11 +0000
Resent-Message-Id: <E1VKdCh-0007S9-DU@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1VKdCQ-000694-Ux for ietf-http-wg@listhub.w3.org; Fri, 13 Sep 2013 23:54:54 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1VKdCQ-0001WZ-2l for ietf-http-wg@w3.org; Fri, 13 Sep 2013 23:54:54 +0000
Received: from [10.158.9.79] (unknown [101.173.129.168]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 98C13509B5; Fri, 13 Sep 2013 19:54:31 -0400 (EDT)
References: <B3EED2F3-AD15-442F-B54E-81940CF4176B@mnot.net> <AF84D601-425D-42C2-8B23-5060AE18B899@gbiv.com>
Mime-Version: 1.0 (1.0)
In-Reply-To: <AF84D601-425D-42C2-8B23-5060AE18B899@gbiv.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Message-Id: <7FC7097F-F635-4985-B1B3-91EBBA7E9B7E@mnot.net>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
X-Mailer: iPhone Mail (10B329)
From: Mark Nottingham <mnot@mnot.net>
Date: Sat, 14 Sep 2013 09:54:25 +1000
To: "Roy T. Fielding" <fielding@gbiv.com>
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-0.0
X-W3C-Hub-Spam-Report: MIME_QP_LONG_LINE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1VKdCQ-0001WZ-2l ab2aaf8ffa2d6045f4ad5f1727f8f9dc
X-Original-To: ietf-http-wg@w3.org
Subject: Re: chunk-extensions
Archived-At: <http://www.w3.org/mid/7FC7097F-F635-4985-B1B3-91EBBA7E9B7E@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/19634
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>

I've considered using them for a few things over the years. However, two things always stopped me; they aren't accommodated by Apis, and they aren't guaranteed to transit a hop. 

For the breach attacks, I don't think deprecating them harms things, since you can still sen them; in these mitigations, the payload / semantics don't matter, as long as something is there. 

Personally, I'm ok either way; the important thing is to document their behavior / limitations. Deprecation I one way to do that, but we could do it in prose too. 

From a chair perspective - we need to wrap this up. If we can get clean consensus to change quickly, great. Otherwise, lets leave it be. 

Sent from my iPhone

On 14/09/2013, at 8:01 AM, "Roy T. Fielding" <fielding@gbiv.com> wrote:

> On Oct 21, 2010, at 7:29 PM, Mark Nottingham wrote:
> 
>> What do people think about deprecating the use of chunk-extensions -- i.e., requiring that they be consumed, but not produced?
>> 
>>    chunk          = chunk-size *WSP [ chunk-ext ] CRLF
>>                     chunk-data CRLF
>>    chunk-size     = 1*HEXDIG
>>    last-chunk     = 1*("0") *WSP [ chunk-ext ] CRLF
>> 
>>    chunk-ext      = *( ";" *WSP chunk-ext-name
>>                        [ "=" chunk-ext-val ] *WSP )
>>    chunk-ext-name = token
>>    chunk-ext-val  = token / quoted-str-nf
>> 
>> I haven't seen any practical uses for them, and haven't seen any implementations that do anything with them other than throw them away.
> 
> http://trac.tools.ietf.org/wg/httpbis/trac/ticket/343
> 
> I know this was closed a long time ago, but I have never been
> comfortable with the idea of deprecating chunk-ext.  They were
> originally intended to allow per-chunk signatures or hashes,
> similar to those used in the Wave protocol.  More recently, they
> have been considered as a potential solution to BREACH-style
> attacks, specifically when a compression transfer encoding is
> used within a TLS-secured connection. [There are other solutions,
> of course, like changing the compression algorithms or changing
> TLS, but chunk-ext is easier to deploy on a per-hop basis.] 
> 
> I am concerned that we might be deprecating something that will
> be needed if we get widespread deployment of transfer-encoding
> compression (instead of content-encoding compression).  Moreover,
> recipients don't actually gain anything from this deprecation,
> since they have to continue parsing for chunk-ext to remain
> compatible.
> 
> Does anyone else share that concern?  It would be different if
> we knew of systems that actually break on receipt of chunk-ext,
> but I am not aware of any.
> 
> 
> Cheers,
> 
> Roy T. Fielding                     <http://roy.gbiv.com/>
> Senior Principal Scientist, Adobe   <https://www.adobe.com/>
>