Re: Proposal: Cookie Priorities

Mark Nottingham <mnot@mnot.net> Fri, 04 March 2016 01:02 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@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 9F9491B3108 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 3 Mar 2016 17:02:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.908
X-Spam-Level:
X-Spam-Status: No, score=-6.908 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.006, 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 6ziS9c2WVYUX for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 3 Mar 2016 17:02:45 -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 CF2A81B310B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 3 Mar 2016 17:02:44 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1abe43-0006A0-B9 for ietf-http-wg-dist@listhub.w3.org; Fri, 04 Mar 2016 00:57:55 +0000
Resent-Date: Fri, 04 Mar 2016 00:57:55 +0000
Resent-Message-Id: <E1abe43-0006A0-B9@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1abe3y-00069J-D5 for ietf-http-wg@listhub.w3.org; Fri, 04 Mar 2016 00:57:50 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by lisa.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1abe3Z-0006DJ-9I for ietf-http-wg@w3.org; Fri, 04 Mar 2016 00:57:41 +0000
Received: from [192.168.1.101] (unknown [120.149.194.112]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 70D7522E260; Thu, 3 Mar 2016 19:56:38 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <CABkgnnWd-cyTiX1dt_bOOjHYZ0OMzJ-tqcwv0=nF60PJuj=tEA@mail.gmail.com>
Date: Fri, 04 Mar 2016 11:56:35 +1100
Cc: Mike West <mkwst@google.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <ECAC4E56-9B8B-4295-A927-D6CF5447A33A@mnot.net>
References: <CAKXHy=dvxE5f25_xx3mKTc+XRDU_Hp=uFDy-iL-_c0s+xHGydw@mail.gmail.com> <4F1B2115-C2BB-42AD-A5AB-EC02E9598ACB@mnot.net> <CABkgnnWd-cyTiX1dt_bOOjHYZ0OMzJ-tqcwv0=nF60PJuj=tEA@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
X-Mailer: Apple Mail (2.3112)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-8.3
X-W3C-Hub-Spam-Report: AWL=1.336, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1abe3Z-0006DJ-9I f2d593a155411a3c3a1fa6c753f11fee
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Proposal: Cookie Priorities
Archived-At: <http://www.w3.org/mid/ECAC4E56-9B8B-4295-A927-D6CF5447A33A@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/31175
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 4 Mar 2016, at 11:53 AM, Martin Thomson <martin.thomson@gmail.com> wrote:
> 
> On 4 March 2016 at 11:02, Mark Nottingham <mnot@mnot.net> wrote:
>> What do folks -- both other browser implementers and site folks -- think about this?
> 
> 
> This is a pretty nice hole Google dug for themselves.  Though I have
> heard the same from folks at other similarly large and crufty
> organizations; it's a real problem.

FWIW - this has been my observation as well (explicitly not pointing fingers :)


> I have a small suggestion:
> 
> if (request.url.scheme == 'http') {
>  cookie.priority = 'floor';
> }
> 
> Related story, I believe that some of those people run servers that
> forcibly evict all cookies other than those on a small whitelist to
> prevent this sort of craziness.  That turns out to have beneficial
> properties.

--
Mark Nottingham   https://www.mnot.net/