Re: [hybi] "Establish a WebSocket Connection" does not allow for cookies

Takeshi Yoshino <tyoshino@google.com> Wed, 16 September 2015 08:48 UTC

Return-Path: <tyoshino@google.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 104121B3901 for <hybi@ietfa.amsl.com>; Wed, 16 Sep 2015 01:48:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.388
X-Spam-Level:
X-Spam-Status: No, score=-1.388 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 RAQpeFiSTJ7U for <hybi@ietfa.amsl.com>; Wed, 16 Sep 2015 01:48:37 -0700 (PDT)
Received: from mail-oi0-x235.google.com (mail-oi0-x235.google.com [IPv6:2607:f8b0:4003:c06::235]) (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 92D561B38F8 for <hybi@ietf.org>; Wed, 16 Sep 2015 01:48:37 -0700 (PDT)
Received: by oiev17 with SMTP id v17so117013061oie.1 for <hybi@ietf.org>; Wed, 16 Sep 2015 01:48:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=DCk19Szpd+vXTXI1FOnzLZvRHbtLEkE1ea2RyVh8xtc=; b=gzjmPYCnHvqT6MP0JZhgW6vJtuPMVxbgdMQUuttjzvaSVjO5YpG7EA7p7FY1H07rtp miB4sOTJ30zR1qoLPMoBUlSyJTtL4z4p2Em5EfAtzP7fx1BlWw+C+qcleGUb8hsTasFb YbNlpNUbg8yvDjy8VA/ceD5kT5EejBKU+QOx4IxTy0hk9cN9QYyceUKeVa1N82lYBWgW y7veQtG79/l2tE7Nbb69eAGszABIilGmKf/NKrGWIX+77bF17yo2ZoEk8ieF6Wu8a93S h2p2rD0bQSPx5dPIHE62Md8mFHgBdddzSQFhPccZYV2/8gZqTvDTEdyndk/2WnamJv+o 7g7g==
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:from:date :message-id:subject:to:cc:content-type; bh=DCk19Szpd+vXTXI1FOnzLZvRHbtLEkE1ea2RyVh8xtc=; b=kI1DuW/kREWORmdtyJegj+CxOORZKmOOeGc6uxxWOMCNwfeLTOR1diOXTvlsMG+q+j Np2wT+jJH3a6f4dB/ZfEJPSlo1rg+tTMxSo6aL+9f/upgedEYoYS7pgv0y6JNP5NS3r3 ONLueBrSFjZqQQ0RzwmYcPXNPBmFsl35qglWlMHS8T1fW/hEQ4K5oFWeAi+BpgcnPvc/ jQPJC1IcUVzmZ5rIYfwU+gHGmhO1HaDps84QwLKkZ+Z6+wVkyFEdim+frVkAF96igIUC fKo8NME2aC86stH8jM0XS9mN0RWgZbhmG8HVtzR4vv6bCJbnAlZMt779z1Wes1q5MikI EC4Q==
X-Gm-Message-State: ALoCoQkjR86JtRqfYFUiu6N+/U1h2oToruTXZbU8TpHj+bXaj5gpHEZ9kao4i9+R1fbR0C2qDhQX
X-Received: by 10.202.232.12 with SMTP id f12mr20354377oih.122.1442393316759; Wed, 16 Sep 2015 01:48:36 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.202.60.4 with HTTP; Wed, 16 Sep 2015 01:48:16 -0700 (PDT)
In-Reply-To: <CADnb78hzLQ2UdHiOptOV2BkKd3BExjiZyQys+J3Xcxo3_DMKug@mail.gmail.com>
References: <CADnb78iWYqqG1t+bYRtMvFifJru06JXb0=KQgfunRrXt-+8E8w@mail.gmail.com> <55EB2FBF.4080602@gmx.de> <CADnb78hy8zG_PuOY9X0wtyJLqOH=D8BHyTnqjgwXtze3UmG9ZA@mail.gmail.com> <CAH9hSJbSn5d5AGVW79oYusjoTe345LrVd65e9Bseo4MVcOe-sg@mail.gmail.com> <CADnb78hzLQ2UdHiOptOV2BkKd3BExjiZyQys+J3Xcxo3_DMKug@mail.gmail.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Wed, 16 Sep 2015 17:48:16 +0900
Message-ID: <CAH9hSJaOXcAYMZhQCYxe=s3=L+vTeRwT9EvHjr8G8N0ngdB3rA@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Content-Type: multipart/alternative; boundary="001a11408b6e45e2b6051fd95d1c"
Archived-At: <http://mailarchive.ietf.org/arch/msg/hybi/oxI2CAHHx4KybGMK1JiRj1ytN6M>
Cc: Julian Reschke <julian.reschke@gmx.de>, "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] "Establish a WebSocket Connection" does not allow for cookies
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/hybi/>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Sep 2015 08:48:39 -0000

On Wed, Sep 16, 2015 at 5:43 PM, Anne van Kesteren <annevk@annevk.nl> wrote:

> On Wed, Sep 16, 2015 at 10:20 AM, Takeshi Yoshino <tyoshino@google.com>
> wrote:
> > It's not expecting any argument explicitly, but given the history of the
> > spec, I think we should just proceed to influence this by e.g.:
> >
> > Replace the second sentence of the step 9 of
> > https://html.spec.whatwg.org/multipage/comms.html#dom-websocket with
> >
> > When processing the step 12 of the requirements for an opening handshake
> > from a client described in the <a
> > href="https://tools.ietf.org/html/rfc6455#section-4.1">"Client
> Requirements"
> > section of  the WebSocket protocol specification</a>, include a Cookie
> > header whose value is the cookie-string computed from the user's cookie
> > store and the URL url; for these purposes this is not a "non-HTTP" API.
> > [WSP] [COOKIES]
>
> By "given the history of the spec" do you mean that we should not
> expect a clean fix to appear anytime soon on the IETF side and instead
> just use this monkey patch? I guess that's fine, it just seems far
>

I meant that we can see this as expecting an argument though it's not
explicitly expecting. In response to your comment "we cannot influence this
sentence".


> from ideal, especially given that it was done properly until draft
> eleven.
>
>
Ideally. Julian, do you think we can revive the identifier with a little
work? What's your thoughts after Anne's recent reply.


>
> --
> https://annevankesteren.nl/
>