Return-Path: =?utf-8?q?=3Cietf-http-wg-request+bounce-httpbisa-archive-bis2j?=
 =?utf-8?q?uki=3Dlists=2Eie=40listhub=2Ew3=2Eorg=3E?=
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 D25623A043D	for
 <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  9 Mar 2020
 15:07:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.751
X-Spam-Level: 
X-Spam-Status: No, score=-2.751 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.249,
	MAILING_LIST_MULTI=-1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001]
	autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key)
	header.d=lowentropy.net header.b=kHyTRkwo; dkim=pass (2048-bit key)
	header.d=messagingengine.com header.b=EPMIHrTh
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 Zo9_nQ6vdOGD
	for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>;
	Mon,  9 Mar 2020 15:07:10 -0700 (PDT)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18])	(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 800DD3A0776	for
 <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon,  9 Mar 2020 15:07:09 -0700
 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92)
	(envelope-from <ietf-http-wg-request@listhub.w3.org>)
	id 1jBQV5-0006aW-ES
	for ietf-http-wg-dist@listhub.w3.org; Mon, 09 Mar 2020 22:03:51 +0000
Resent-Date: Mon, 09 Mar 2020 22:03:51 +0000
Resent-Message-Id: <E1jBQV5-0006aW-ES@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79])
	by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <mt@lowentropy.net>)
	id 1jBQUE-0006NT-Ti
	for ietf-http-wg@listhub.w3.org; Mon, 09 Mar 2020 22:02:58 +0000
Received: from out2-smtp.messagingengine.com ([66.111.4.26])
	by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <mt@lowentropy.net>)
	id 1jBQUD-0005fQ-5R
	for ietf-http-wg@w3.org; Mon, 09 Mar 2020 22:02:58 +0000
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42])
	by mailout.nyi.internal (Postfix) with ESMTP id D6960220F4
	for <ietf-http-wg@w3.org>; Mon,  9 Mar 2020 18:02:45 -0400 (EDT)
Received: from imap2 ([10.202.2.52])
  by compute2.internal (MEProxy); Mon, 09 Mar 2020 18:02:45 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net;
	 h=mime-version:message-id:in-reply-to:references:date:from:to
	:subject:content-type; s=fm1; bh=+SPejzKw+zQViZNW5B2oNegVYPBjiie
	NXO2mbaOMyE0=; b=kHyTRkwoetIUZVN3Km+1hlGH+g8KD2s8HKjPZCpvyH7qqrA
	DhsdSwx6ASpBl8kSbCXBFNJUPUkvD16gpZ//BXvblLRX4kwxU30+pdvc5uNUuWvA
	YAy7GPRgLuJiQiWnShrLcOUuu48AgagQaGGWsXAMoI45UwPTrbClSMtMShebcdnh
	7hcWqSlnRZTuN2vNnASxMLX6VzFILx0xWKqVpzlhAQJLfkCHtUPGp1uSGG9BoWek
	OfCguVYQ3I5m4xxSlCrFIyvxYMezIdGeU2in2tHmAGhLuZEhFWMAOAU7btTLV4bH
	JSn4caWzm3RixnLiVtnUsad9M7N7/GTxXq9n3qg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
	messagingengine.com; h=content-type:date:from:in-reply-to
	:message-id:mime-version:references:subject:to:x-me-proxy
	:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=+SPejz
	Kw+zQViZNW5B2oNegVYPBjiieNXO2mbaOMyE0=; b=EPMIHrTh+OCdXzIQuBQFmJ
	kUR1fTX97lreH4yIGlXMV3wp4QLHDafzkkq9mlsNj/P67Ofex2EV7G8HchK7zhLa
	DksYYb2WBRb7TsSyaxBWIfzBbieDBb0L3nwYemRinOFjZUjoJyU4ivcyHQrfcFwG
	CyoR3bpLoKVOEjHONbcCeoma9fXrRwj8hR85qMz0aVhLF9YvfghSDn38DspdsviW
	8viM8vaQkD94u4p1BjWVO+c/FlwS4ffLJ3FwIcdvDlvu8OVo+T1MbKhsGiyHyBTG
	wcmCuWm3vJdSM7ytMrecYjPfwzvXkNUaE43TCcVT7D497eTPdXN7ya8o0ajTUIaw
	==
X-ME-Sender: <xms:Bb1mXnJbYckk_QKcnKUNUF0GgK5xSL9xnnhVwX5NmmgY9WBKRH3MfA>
X-ME-Proxy-Cause:
 gggruggvucftvghtrhhoucdtuddrgedugedruddukedgudehiecutefuodetggdotefrod   
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh   
 necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesth   
 dtredtreertdenucfhrhhomhepfdforghrthhinhcuvfhhohhmshhonhdfuceomhhtsehl   
 ohifvghnthhrohhphidrnhgvtheqnecuffhomhgrihhnpehgihhthhhusgdrtghomhenuc   
 evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmtheslhho   
 figvnhhtrhhophihrdhnvght
X-ME-Proxy: <xmx:Bb1mXqWr0Uuqc_XfOTr2g1A9o6VghyU9ar0vZDYgr9LP-thl8iV-qw>
    <xmx:Bb1mXl6wCnu4N9wMv-j6W3Zc7z4iQClEGSRoBZ4ErM181r8VXTSc6g>
    <xmx:Bb1mXh7WXtKhaKpMvf-xXctxHZDDqYo5OPDwHOFsgaEuJ46gXyszxg>
    <xmx:Bb1mXmmqBwwkTov6VxEB5fpKBc0XGYLrbanmo_GDk2Qp1Nbu9oWfLQ>
Received: by mailuser.nyi.internal (Postfix, from userid 501)
	id 7A3ABE00EF; Mon,  9 Mar 2020 18:02:45 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.1.7-991-g5a577d3-fmstable-20200305v3
Mime-Version: 1.0
Message-Id: <110aa602-33bd-4fbf-b3af-c5530d95fc44@www.fastmail.com>
In-Reply-To: 
 <CAKXHy=d260V9_63yNBwLjDG=upZ+HG3iJ8hKbnFc0KU7fCbVcQ@mail.gmail.com>
References: 
 <CAKXHy=d260V9_63yNBwLjDG=upZ+HG3iJ8hKbnFc0KU7fCbVcQ@mail.gmail.com>
Date: Tue, 10 Mar 2020 09:02:25 +1100
From: "Martin Thomson" <mt@lowentropy.net>
To: ietf-http-wg@w3.org
Content-Type: text/plain
Received-SPF: pass client-ip=66.111.4.26; envelope-from=mt@lowentropy.net;
 helo=out2-smtp.messagingengine.com
X-W3C-Hub-Spam-Status: No, score=-9.8
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7,
 RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: mimas.w3.org 1jBQUD-0005fQ-5R db66422666d9834f6e0f17bcfe709bb8
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Cookies and schemes.
Archived-At: =?utf-8?q?=3Chttps=3A//www=2Ew3=2Eorg/mid/110aa602-33bd-4fbf-b3?=
 =?utf-8?q?af-c5530d95fc44=40www=2Efastmail=2Ecom=3E?=
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37426
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>

On Mon, Mar 9, 2020, at 19:51, Mike West wrote:
> https://github.com/mikewest/scheming-cookies proposes two changes:
> 
> 1. We teach cookies about schemes, and lock them to the scheme that set 
> them (just like every other web-facing storage mechanism).

Excellent!

To Willy's point about transfer, perhaps we can allow any cookies that are set on an http:// response to follow a redirect to https://  The Sec-Nonsecure-Cookie header field seems like it might not be great long term.

Tf the goal is to support temporally-constrained transfer, then binding the cookies to the redirect avoids pulling from previous state.  Also, the redirector could have just packed this information into the target URL, so it's not a new tracking vector.

Have I missed a key piece of information?  Willy, could this work in the cases you understand?

> 2. We curtail non-secure schemes' cookies' lifetime by agreeing on a 
> set of heuristics for a user's "session" on a given site, and culling 
> cookies when a site's session expires.

Also good.  The need for heuristics is unfortunate, but I appreciate that you have to do that.

