Incremental improvements to cookies.

Mike West <mkwst@google.com> Wed, 08 May 2019 07:01 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 (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5E340120183 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 8 May 2019 00:01:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.508
X-Spam-Level:
X-Spam-Status: No, score=-10.508 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
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 upRhKwYSOspn for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 8 May 2019 00:01:00 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4AADD12016C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 8 May 2019 00:00:59 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1hOGX8-0006Hf-By for ietf-http-wg-dist@listhub.w3.org; Wed, 08 May 2019 06:58:30 +0000
Resent-Date: Wed, 08 May 2019 06:58:30 +0000
Resent-Message-Id: <E1hOGX8-0006Hf-By@frink.w3.org>
Received: from mimas.w3.org ([2603:400a:ffff:804:801e:34:0:4f]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <mkwst@google.com>) id 1hOGX5-0006Gu-Jd for ietf-http-wg@listhub.w3.org; Wed, 08 May 2019 06:58:27 +0000
Received: from mail-oi1-x234.google.com ([2607:f8b0:4864:20::234]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <mkwst@google.com>) id 1hOGX4-00029C-Ai for ietf-http-wg@w3.org; Wed, 08 May 2019 06:58:27 +0000
Received: by mail-oi1-x234.google.com with SMTP id r136so5700320oie.7 for <ietf-http-wg@w3.org>; Tue, 07 May 2019 23:58:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ST1BeCgytwchKPwpDvsePjJ0XP/QOzyuWxv+27PjibA=; b=FEcBiKQkVueZboMsai54ekOOWvEkIC7qgnHUyA39bDcaCtBiP172OSGkFMb4MX6+zb OYTSh2H/3UYmZJz/3aFA6qCCengjx5oo6AkuqXgxl/GA17cy7cCxQtWM8hRFCkk8mZin NkIEOk5ktAN73d2VBzO1yMXTNmxDGl5WrJDlqkEQDJWKaSYE5E3rijcoRvUW9R2MWbHu LYH8uMN5Ujztc77HeOFFmBollK/nuVOXcZTJVu5ysXC7GQdjtdzU478VXrtpUdxXwMiN /zHRNhfc8zMRe5VZ0w/qMGpg0C9U8tFM/b72XpBKZxycLQfouPu+vP4uyNXeM4IvNDYa gRJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ST1BeCgytwchKPwpDvsePjJ0XP/QOzyuWxv+27PjibA=; b=s6/O77UTFvpmGt1+/4t91rvyVOsaTbwUhSrByyBv+KkXExuUpxtyjOovaWNjAmQKph Y1msMMe3ylsVAhimp/3biYCLTURYziWl6Fu5lDXIFyynyGrr9at67i9iUIUInnfrNGSg HRWdZclB/GCb+u+OFtzGWk1I2gCz8LKVDsbq/hzAVDqC8gbrOWbfGyC4IGXSP0BkndUj X1uHLZpRoIF5d6GF1QIjIAGEoxJLzFuZiZd74f5f1qegFKokAAncsKRQn1bL9xh+QDAb KWTmL+2BYpRM0ZUbJRjGIQEVLlLuUEDvUYm5Yf2jrk/23yB3EDHeDjX+fzxtp4p5O4GZ GUBw==
X-Gm-Message-State: APjAAAWEnwEuin2ONioByTIG2ace95p2oI/4mXLHDChXRHGMKCBFlBmi rMTbrok01IkATUZ2aTh5LVMHFUB7uY1SJUZxVaND1PoJgVg=
X-Google-Smtp-Source: APXvYqxmfV39nmprfw1oAOxYR5eNEVhoaE9wKCNPyhXiEY+O8dzCJRIs6wcZc7jqkypehof07Xuzi25N9G/lD1Nk25c=
X-Received: by 2002:aca:f303:: with SMTP id r3mr1108093oih.111.1557298684581; Tue, 07 May 2019 23:58:04 -0700 (PDT)
MIME-Version: 1.0
From: Mike West <mkwst@google.com>
Date: Wed, 08 May 2019 08:57:53 +0200
Message-ID: <CAKXHy=eEOkNUp0r=bucO3jwRRYsVmnw6_xqM5ZWj30OsrWgVSQ@mail.gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="000000000000e7eb8405885adae7"
Received-SPF: pass client-ip=2607:f8b0:4864:20::234; envelope-from=mkwst@google.com; helo=mail-oi1-x234.google.com
X-W3C-Hub-Spam-Status: No, score=-20.7
X-W3C-Hub-Spam-Report: AWL=3.851, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1hOGX4-00029C-Ai 2a6d7db2f3f97d2d10eec2c3c351d8e0
X-Original-To: ietf-http-wg@w3.org
Subject: Incremental improvements to cookies.
Archived-At: <https://www.w3.org/mid/CAKXHy=eEOkNUp0r=bucO3jwRRYsVmnw6_xqM5ZWj30OsrWgVSQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36617
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: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hey folks,

Thanks again for the conversations at the recent HTTP Workshop. I was happy
to hear some general support for Doing Something(tm) about cookies, and I
look forward to more conversations about the direction and details of
potential replacements. I owe y'all some responses to threads on HTTP State
Tokens, and I hope to get to those this week.

Still, I got concrete feedback from a few folks that it would be a better
use of our time to focus on improvements to cookies, as they exist today,
and aren't as amazing as we'd like them to be. I suspect you won't be
shocked to learn that I think we can walk and chew gum at the same time,
but I think you also won't be surprised that I'm very much in favor of
incremental improvements to cookies where we see opportunities.

https://mikewest.github.io/cookie-incrementalism/draft-west-cookie-incrementalism.html
("paginated"
at https://tools.ietf.org/html/draft-west-cookie-incrementalism) sketches
out two changes that I hope we can come to concensus on:

1.  Treat cookies as `SameSite=Lax` by default.
2.  Allow developers to opt-into the status quo behavior by explicitly
setting `SameSite=None`, but require the `Secure` attribute when doing so.

The document linked above spells those out in a bit more detail, and
attempts to justify them both through principle and practical impact.

WDYT?

-mike