Re: Re[2]: Straw-man for our next charter

Adam Barth <w3c@adambarth.com> Mon, 30 July 2012 00:13 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 02B5321F85D7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jul 2012 17:13:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.487
X-Spam-Level:
X-Spam-Status: No, score=-7.487 tagged_above=-999 required=5 tests=[AWL=-0.565, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, FRT_ADOBE2=2.455, J_CHICKENPOX_21=0.6, 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 jU7LGpEH8j6u for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jul 2012 17:13:40 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id E331B21F85D0 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 29 Jul 2012 17:13:39 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1SvdbF-0007Ej-1h for ietf-http-wg-dist@listhub.w3.org; Mon, 30 Jul 2012 00:12:41 +0000
Resent-Date: Mon, 30 Jul 2012 00:12:41 +0000
Resent-Message-Id: <E1SvdbF-0007Ej-1h@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w3c@adambarth.com>) id 1Svdb2-0007Dt-8t for ietf-http-wg@listhub.w3.org; Mon, 30 Jul 2012 00:12:28 +0000
Received: from mail-yx0-f171.google.com ([209.85.213.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <w3c@adambarth.com>) id 1Svdb0-0007EA-KM for ietf-http-wg@w3.org; Mon, 30 Jul 2012 00:12:28 +0000
Received: by yenq11 with SMTP id q11so4315597yen.2 for <ietf-http-wg@w3.org>; Sun, 29 Jul 2012 17:12:00 -0700 (PDT)
Received: by 10.236.157.131 with SMTP id o3mr8377178yhk.84.1343607120442; Sun, 29 Jul 2012 17:12:00 -0700 (PDT)
Received: from mail-ob0-f171.google.com (mail-ob0-f171.google.com [209.85.214.171]) by mx.google.com with ESMTPS id g46sm2243223yhm.19.2012.07.29.17.11.58 (version=SSLv3 cipher=OTHER); Sun, 29 Jul 2012 17:11:59 -0700 (PDT)
Received: by obqv19 with SMTP id v19so8372078obq.2 for <ietf-http-wg@w3.org>; Sun, 29 Jul 2012 17:11:57 -0700 (PDT)
Received: by 10.182.207.6 with SMTP id ls6mr14636926obc.36.1343607117337; Sun, 29 Jul 2012 17:11:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.182.226.5 with HTTP; Sun, 29 Jul 2012 17:11:26 -0700 (PDT)
In-Reply-To: <em704e4b8a-ca78-4787-810d-6b51e6587714@bombed>
References: <C68CB012D9182D408CED7B884F441D4D1E2D86A0FF@nambxv01a.corp.adobe.com> <em704e4b8a-ca78-4787-810d-6b51e6587714@bombed>
From: Adam Barth <w3c@adambarth.com>
Date: Sun, 29 Jul 2012 17:11:26 -0700
Message-ID: <CAJE5ia80UM18UYJs2Cg9hhX41fj2oxYHs1S-n6j4tNXy2+DwWA@mail.gmail.com>
To: "Adrien W. de Croy" <adrien@qbik.com>
Cc: Larry Masinter <masinter@adobe.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="ISO-8859-1"
Received-SPF: none client-ip=209.85.213.171; envelope-from=w3c@adambarth.com; helo=mail-yx0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-1.6
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, FRT_ADOBE2=1, RCVD_IN_DNSWL_LOW=-0.7
X-W3C-Scan-Sig: lisa.w3.org 1Svdb0-0007EA-KM 25ecf3e706c8577351d085a96f031abb
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Re[2]: Straw-man for our next charter
Archived-At: <http://www.w3.org/mid/CAJE5ia80UM18UYJs2Cg9hhX41fj2oxYHs1S-n6j4tNXy2+DwWA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/14814
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 Sun, Jul 29, 2012 at 3:59 PM, Adrien W. de Croy <adrien@qbik.com> wrote:
>
> We see this problem a lot at the gateway.  We have processing agents that
> only want to process say text/html, and really don't like getting streamed
> MP4s labelled as text/html by some brain-dead server
>
> But in the end, where does the server get the C-T from?  Most just do a map
> lookup on file extension.
>
> Even if we tried to push the meta-data into the resource itself, so it could
> be specified by the actual author (think about the hosted site, where the
> site maintainer has no control over content types the server will send, or
> not easily), then how do we trust that information?  Some attacker can label
> whatever content as whatever type if they can find some purpose to do so.
>
> In the end, I think it basically makes Content-Type largely unreliable.  I
> don't see this changing with 2.0 (at least not properly), unless we
> introduce the concept of trust - either sign content by someone vouching for
> its type, or run RBLs of known bad servers.
>
> Do we even need C-T if clients are sniffing anyway?

It's certainly used in an essential way in the web browser security
model.  In any case, I'm pretty sure this discussion is getting
off-topic.

Adam


> ------ Original Message ------
> From: "Larry Masinter" <masinter@adobe.com>
> To: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
> Sent: 29/07/2012 3:01:08 a.m.
> Subject: RE: Straw-man for our next charter
>>
>> The sniffing I was in particular hoping to stop is content-type sniffing.
>> http://tools.ietf.org/html/draft-ietf-websec-mime-sniff-03
>>
>> " Many web servers supply incorrect Content-Type header fields with
>>  their HTTP responses.  In order to be compatible with these servers,
>>  user agents consider the content of HTTP responses as well as the
>>  Content-Type header fields when determining the effective media type
>>  of the response."
>>
>> If browsers suddenly stopped sniffing HTTP/1.1 content, it would break
>> existing web sites, so of course the browser makers are reluctant to do
>> that.
>>
>> However, if it was a requirement to supply a _correct_ content-type header
>> for HTTP/2.0, and no HTTP/2.0 client sniffed, then sites upgrading to
>> HTTP/2.0 would fix their content-type sending (because when they were
>> deploying HTTP/2.0 they would have to in order to get any browser to work
>> with them.)
>>
>> Basically, sniffing is a wart which backward compatibility keeps in place.
>> Introducing a new version is a unique opportunity to remove it.
>>
>> The improved performance would come from having to look at the content to
>> determine before routing to the appropriate processor.
>>
>> Larry
>>
>>
>> -----Original Message-----
>> From: Amos Jeffries [mailto:squid3@treenet.co.nz]
>> Sent: Friday, July 27, 2012 11:53 PM
>> To: ietf-http-wg@w3.org
>> Subject: Re: Straw-man for our next charter
>>
>> On 28/07/2012 6:39 p.m., Larry Masinter wrote:
>>
>>>
>>> re changes to semantics: consider the possibility of eliminating
>>> "sniffing" in HTTP/2.0. If sniffing is justified for compatibility
>>> with deployed servers, could we eliminate sniffing for 2.0 sites?
>>>
>>> It would improve reliability, security, and even performance. Yes,
>>> popular browsers would have to agree not to sniff sites running 2.0,
>>> so that sites wanting 2:0 benefits will fix their configuration.
>>>
>>> Likely there are many other warts that can be removed if there is a
>>> version upgrade.
>>>
>>
>>
>> Which of the several meanings of "sniffing" are you talking about exactly?
>>
>> AYJ
>>
>>
>>
>>
>
>