Re: [http-state] HTTP cookie processing wrt "public suffixes"

Zhong Yu <zhong.j.yu@gmail.com> Fri, 05 June 2015 22:28 UTC

Return-Path: <zhong.j.yu@gmail.com>
X-Original-To: http-state@ietfa.amsl.com
Delivered-To: http-state@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 01E8E1A904F for <http-state@ietfa.amsl.com>; Fri, 5 Jun 2015 15:28:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.399
X-Spam-Level:
X-Spam-Status: No, score=-1.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, J_CHICKENPOX_52=0.6, SPF_PASS=-0.001] autolearn=no
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 erbxzefvHJGT for <http-state@ietfa.amsl.com>; Fri, 5 Jun 2015 15:28:28 -0700 (PDT)
Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BE80C1A9047 for <http-state@ietf.org>; Fri, 5 Jun 2015 15:28:28 -0700 (PDT)
Received: by igbpi8 with SMTP id pi8so26300754igb.1 for <http-state@ietf.org>; Fri, 05 Jun 2015 15:28:28 -0700 (PDT)
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 :content-type; bh=zvD07M9u6r1wh+pwy12R9nUjFZ1CI6oXFae2Hg2GHbI=; b=M4olelugVZO9tbgmsTB2p3QQCWnoHCKEoQxlWlEpHO3OWLixbFPOd37sMHWrPX0RLZ s9zkO/LfF56s1XAfXtVnwTNhURKAu/ezV3eQ30PxF4F70ZvSaQXpbw0O4Ra16EDjrtSG 2rIwN4NzdvLvo91JrC3pn2gMk4Of9cWaGc6YBwMW8JdsTafaAvff7JcerE5NtqHayXNz RZdyZnqGDy4Qql6SMWBJKuWfccscBM3m5IO/GP2xsas6nP3p/DVI7V5Qpc54KffdC11C Nam9+FVcpq+CIrBxlI/UHAG4Xbdv4zfeUB/N0atlPJbpdKTQXBYF7Y5QuJe3OBKTIQHl Yvdw==
MIME-Version: 1.0
X-Received: by 10.50.136.134 with SMTP id qa6mr669853igb.26.1433543307958; Fri, 05 Jun 2015 15:28:27 -0700 (PDT)
Received: by 10.79.111.18 with HTTP; Fri, 5 Jun 2015 15:28:27 -0700 (PDT)
In-Reply-To: <CACuKZqF2CiEhAAemtxLUCEfHG0ADXe3dA1Dm1ZXWBMc3znkO3A@mail.gmail.com>
References: <CACuKZqGu9vFnQMtkpbG=g3iK6XHKAeOsnsaBxkXYJVqxvzbRRg@mail.gmail.com> <CACuKZqF2CiEhAAemtxLUCEfHG0ADXe3dA1Dm1ZXWBMc3znkO3A@mail.gmail.com>
Date: Fri, 5 Jun 2015 17:28:27 -0500
Message-ID: <CACuKZqETjAOokt4osiLRgJWbY-6HMY3EkM-67Vs3FNiA_q92OA@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: http-state <http-state@ietf.org>, team@publicsuffix.org
Content-Type: multipart/alternative; boundary=089e0141a8dca420770517cccf2a
Archived-At: <http://mailarchive.ietf.org/arch/msg/http-state/_TOgbVWS2S5vAvHlnhS5bz2d4eQ>
Subject: Re: [http-state] HTTP cookie processing wrt "public suffixes"
X-BeenThere: http-state@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discuss HTTP State Management Mechanism <http-state.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/http-state>, <mailto:http-state-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/http-state/>
List-Post: <mailto:http-state@ietf.org>
List-Help: <mailto:http-state-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/http-state>, <mailto:http-state-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jun 2015 22:28:30 -0000

I've written an article explaining cookie domain and public suffix, in
which I propose a simple mode that seems very sensible -

A cookie domain's coverage set is defined as:
- the set contains the cookie domain
- if the set contains x, and x is not a public suffix, the set contains all
direct subdomains of x.

Testing the coverage - A cookie domain must cover the request domain
- when the cookie is received
- when the cookie is applied to a request

Basically, a cookie domain can bet set by any domain in the coverage set;
and the cookie is applicable to all domains in the coverage set.

See http://bayou.io/draft/cookie.domain.html#Coverage_Model

Zhong Yu
bayou.io