Re: New Version Notification for draft-kerwin-http2-encoded-data-01.txt

Amos Jeffries <squid3@treenet.co.nz> Wed, 23 July 2014 04:55 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6B61D1B2831 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 22 Jul 2014 21:55:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.903
X-Spam-Level:
X-Spam-Status: No, score=-6.903 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] 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 6nhNtl0cX-7t for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 22 Jul 2014 21:55:49 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 232E61A03BA for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 22 Jul 2014 21:55:48 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1X9oXS-00058E-Dd for ietf-http-wg-dist@listhub.w3.org; Wed, 23 Jul 2014 04:52:26 +0000
Resent-Date: Wed, 23 Jul 2014 04:52:26 +0000
Resent-Message-Id: <E1X9oXS-00058E-Dd@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1X9oX4-00052r-Ke for ietf-http-wg@listhub.w3.org; Wed, 23 Jul 2014 04:52:02 +0000
Received: from 121-99-228-82.static.orcon.net.nz ([121.99.228.82] helo=treenet.co.nz) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1X9oX3-0004rQ-BD for ietf-http-wg@w3.org; Wed, 23 Jul 2014 04:52:02 +0000
Received: from [192.168.0.6] (121-99-48-157.bng1.tvc.orcon.net.nz [121.99.48.157]) by treenet.co.nz (Postfix) with ESMTP id 8C338E6D78 for <ietf-http-wg@w3.org>; Wed, 23 Jul 2014 16:51:28 +1200 (NZST)
Message-ID: <53CF3F43.5040609@treenet.co.nz>
Date: Wed, 23 Jul 2014 16:51:15 +1200
From: Amos Jeffries <squid3@treenet.co.nz>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: ietf-http-wg@w3.org
References: <20140721234651.7996.35285.idtracker@ietfa.amsl.com> <CACweHNDQ-rVJW6_uq=3H4Pcnf2NdbdE058OvXUVEnmfh+DJSnA@mail.gmail.com> <CAH_y2NGrwbUiOEHiux4e7qz=HHM3xSBRojpURkOO6d6E4ca5FA@mail.gmail.com> <CACweHNC6Pd_TSw2bBumFDiWDNxcxUHZZnm5=HvV76jGwVzDrYA@mail.gmail.com>
In-Reply-To: <CACweHNC6Pd_TSw2bBumFDiWDNxcxUHZZnm5=HvV76jGwVzDrYA@mail.gmail.com>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=121.99.228.82; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-3.438, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TVD_RCVD_IP=0.001
X-W3C-Scan-Sig: maggie.w3.org 1X9oX3-0004rQ-BD 8928dd663cddc461bb4227b6ef4d2dcb
X-Original-To: ietf-http-wg@w3.org
Subject: Re: New Version Notification for draft-kerwin-http2-encoded-data-01.txt
Archived-At: <http://www.w3.org/mid/53CF3F43.5040609@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/26306
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 23/07/2014 12:26 p.m., Matthew Kerwin wrote:
> On 23 July 2014 09:14, Greg Wilkins <gregw@intalio.com> wrote:
> 
>>
>> Matthew,
>>
>> why are the compression contexts frame only?    Doesn't that make this
>> extension very vulnerable to fragmentation, specially if we drop
>> END_SEGMENT as we have done.
>> ​
>> ​
>>
>> ​
>> ​
>> Surely there is no harm in having a compression context that is per stream?
>>
>>
> The two main reasons were CRIME/BREACH attacks, and to limit the state
> commitment, particularly when transport-level compression was part of the
> main spec. I'm trying to dig up a reference to the conversation that lead
> to it; here's one cherry I've picked from the archives, which might be a
> starting point back from which to work:
> http://lists.w3.org/Archives/Public/ietf-http-wg/2014AprJun/0297.html Three
> months is such a long time ago, on the internet. :\
> 
> Incidentally, END_SEGMENT had potential to enforce useful fragmentation --
> i.e. avoiding a CRIME/BREACH attack by separating secret and
> attacker-controlled data with an end-to-end barrier -- if the END_SEGMENT
> mechanism was exposed to the origin application.

Fragmentation is not a problem. There are two obvious options from using
a new extension frame type; either 1) define the frame as
non-fragmentable, or 2) containing an END_SEGMENT flag.

Amos