Re: Proposal: Cookie Priorities

Martin Thomson <martin.thomson@gmail.com> Fri, 04 March 2016 01:06 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 8646B1B3115 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 3 Mar 2016 17:06:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.008
X-Spam-Level:
X-Spam-Status: No, score=-7.008 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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 y1mDq8E1zY6Q for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 3 Mar 2016 17:06:25 -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 7AB8D1B3112 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 3 Mar 2016 17:06:25 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1abe7l-0002lB-EE for ietf-http-wg-dist@listhub.w3.org; Fri, 04 Mar 2016 01:01:45 +0000
Resent-Date: Fri, 04 Mar 2016 01:01:45 +0000
Resent-Message-Id: <E1abe7l-0002lB-EE@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 <martin.thomson@gmail.com>) id 1abe7g-0002kP-2X for ietf-http-wg@listhub.w3.org; Fri, 04 Mar 2016 01:01:40 +0000
Received: from mail-io0-f174.google.com ([209.85.223.174]) by lisa.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1abe7a-0006O4-Kw for ietf-http-wg@w3.org; Fri, 04 Mar 2016 01:01:39 +0000
Received: by mail-io0-f174.google.com with SMTP id n190so46978607iof.0 for <ietf-http-wg@w3.org>; Thu, 03 Mar 2016 17:01:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=NMFgR9wNA3VWQhJD3GA5da7+uklvPo8FeclqH+UwnD8=; b=HyJdR5s7pLJumZKdUdZfX/on1kTMO2JpCNoHN0nJsUNrnVvrhMgIeG90pd7TdR4DcU 0VJjXnnwNAaXe1oFmpJf6dqMmBwHOweTjcnSgDwwavNCx/6JwIy/XKOAhfeiqxksI5k8 SnGVIL77bCm/1d+KdHBvmd/cU9oxfxLIK+rPVXw+SWKJMp9epb+1RH0nMJ52SBCNZDca UAMs2w8W8xz/63Xif6+BWQqsYaJZDzHf9cTMpZD6lxQumQ6DPKD3sxqrYKTSeheeenks WhHCzeu/7ELQOeUW6gMl3B/IMFdtFK8anFceKShKKnB7cJDHCSm8S4jc20v/MxNoYCYs krwA==
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; bh=NMFgR9wNA3VWQhJD3GA5da7+uklvPo8FeclqH+UwnD8=; b=aygQTWQLDdS5Z8bzKLFFxDYQmCUNWSb+gXW0Z9kFULX01OJHaRS8QQn7DqG3YTBfl+ L64kmRNKJ6RfeGU3rS0Mamaq1ZwrPxqN8C2FjkewPevhXEudHQcgkxaYqtJmyKO44eDT HmRF91rmYvSSSKOaANhhS9veX7T0AQzh3ROo70qLfycQLf+3KyHTB0ZJio1dCwlWGae2 7G4AEwHWYSwhyP2RMTamb//wpU1ilskplEAKBURA/0yPMGXWYIWFLR+irAdBO+TSLUAl mcdQ/OT2Qpz36/PYI6+OAdNfngk2OPfScndIL5oJummyDGPTyuS8p2m3iHjISUSHxJ2l hF6w==
X-Gm-Message-State: AD7BkJINIZJicvVftk+5aq++MXu6WqzG/DsUsrOyY1H5hXfuH4Q8FSJLRICB9KDRe3qaBnFymBLrgiJV0xmEsg==
MIME-Version: 1.0
X-Received: by 10.107.34.139 with SMTP id i133mr5338501ioi.108.1457052803563; Thu, 03 Mar 2016 16:53:23 -0800 (PST)
Received: by 10.36.43.5 with HTTP; Thu, 3 Mar 2016 16:53:23 -0800 (PST)
In-Reply-To: <4F1B2115-C2BB-42AD-A5AB-EC02E9598ACB@mnot.net>
References: <CAKXHy=dvxE5f25_xx3mKTc+XRDU_Hp=uFDy-iL-_c0s+xHGydw@mail.gmail.com> <4F1B2115-C2BB-42AD-A5AB-EC02E9598ACB@mnot.net>
Date: Fri, 04 Mar 2016 11:53:23 +1100
Message-ID: <CABkgnnWd-cyTiX1dt_bOOjHYZ0OMzJ-tqcwv0=nF60PJuj=tEA@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: Mike West <mkwst@google.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.223.174; envelope-from=martin.thomson@gmail.com; helo=mail-io0-f174.google.com
X-W3C-Hub-Spam-Status: No, score=-7.9
X-W3C-Hub-Spam-Report: AWL=1.835, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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 1abe7a-0006O4-Kw 5862463a3bacb99f8f287e79129b6ac6
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Proposal: Cookie Priorities
Archived-At: <http://www.w3.org/mid/CABkgnnWd-cyTiX1dt_bOOjHYZ0OMzJ-tqcwv0=nF60PJuj=tEA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/31176
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 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.

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.