Re: [hybi] I-D Action: draft-ietf-hybi-thewebsocketprotocol-13.txt

John Tamplin <jat@google.com> Thu, 08 September 2011 15:13 UTC

Return-Path: <jat@google.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B5A1221F87D9 for <hybi@ietfa.amsl.com>; Thu, 8 Sep 2011 08:13:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.93
X-Spam-Level:
X-Spam-Status: No, score=-105.93 tagged_above=-999 required=5 tests=[AWL=0.046, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EFisIsDH9vLO for <hybi@ietfa.amsl.com>; Thu, 8 Sep 2011 08:13:41 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.67]) by ietfa.amsl.com (Postfix) with ESMTP id 6C1D821F86F6 for <hybi@ietf.org>; Thu, 8 Sep 2011 08:13:29 -0700 (PDT)
Received: from hpaq3.eem.corp.google.com (hpaq3.eem.corp.google.com [172.25.149.3]) by smtp-out.google.com with ESMTP id p88FFG6v006145 for <hybi@ietf.org>; Thu, 8 Sep 2011 08:15:16 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1315494916; bh=1T44EWWeJiwdhFTghJadKRnfMcs=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Pi33myhmhcPnvJQCv6Z9ANcdD+S8Zt6KiXwXopq0h8/NoUbGO/InufCDYijsqiy/w hmCHk9VCFNEqOvqCWejTg==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=dkim-signature:mime-version:in-reply-to:references:from:date: message-id:subject:to:cc:content-type:x-system-of-record; b=io2zh3+D/DBI4gr9ICszViYOfg1R3DBkIq2rDGa9ldi9+BrHr9IZtjYOgY5TkFh+i WvbPua7C6dcuMAzXQia/g==
Received: from gxk1 (gxk1.prod.google.com [10.202.11.1]) by hpaq3.eem.corp.google.com with ESMTP id p88FFDIB026216 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for <hybi@ietf.org>; Thu, 8 Sep 2011 08:15:14 -0700
Received: by gxk1 with SMTP id 1so68136gxk.38 for <hybi@ietf.org>; Thu, 08 Sep 2011 08:15:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=/Vip5ft8Bc46t+lOW4eydOep3hn5tNg4dq69pORjd3A=; b=cyzOKsN8uicMTbGtaAb7Ln3WLcmEkOS9/cXaxh+C9D29iGkgve/dXZx3M+b+N7lcWc 6ay8pPahUnOdGacub7mA==
Received: by 10.151.78.16 with SMTP id f16mr929641ybl.116.1315494913316; Thu, 08 Sep 2011 08:15:13 -0700 (PDT)
Received: by 10.151.78.16 with SMTP id f16mr929636ybl.116.1315494913167; Thu, 08 Sep 2011 08:15:13 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.49.7 with HTTP; Thu, 8 Sep 2011 08:14:53 -0700 (PDT)
In-Reply-To: <53451FDB-77F7-42A1-8D16-05094C35AB5D@bbn.com>
References: <20110831184207.1514.64093.idtracker@ietfa.amsl.com> <0fc901cc6878$1681eec0$0a00a8c0@Venus> <CAH9hSJb2rH+fX0AnekYxsEkHKzb15aHrg_hDQw1baWLiWBF-3w@mail.gmail.com> <17b501cc6d31$3016d6d0$0a00a8c0@Venus> <CAH9hSJYhLpcXrOtS-nzLt2YW9QbngEsfdcNF+0TadyVA6rrK1A@mail.gmail.com> <17ef01cc6d39$3575ae50$0a00a8c0@Venus> <20110907085128.GA19144@1wt.eu> <CAH9hSJYXZ285L_+eJh6VUVCAg4D+u=vQbcjVOA4RMsJSbcHqiw@mail.gmail.com> <CABLsOLBKgnTFga821t2AZ1dXobTsfMb5v8CTJhm_Nr8WMkonaA@mail.gmail.com> <53451FDB-77F7-42A1-8D16-05094C35AB5D@bbn.com>
From: John Tamplin <jat@google.com>
Date: Thu, 08 Sep 2011 11:14:53 -0400
Message-ID: <CABLsOLAf1dh1wGg-ZfyvB5TK31Gps55R=0dNTO+oUJ-FvHnUiQ@mail.gmail.com>
To: "Richard L. Barnes" <rbarnes@bbn.com>
Content-Type: multipart/alternative; boundary="000e0cd5c0de00d39d04ac6f8725"
X-System-Of-Record: true
Cc: hybi@ietf.org
Subject: Re: [hybi] I-D Action: draft-ietf-hybi-thewebsocketprotocol-13.txt
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
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: <http://www.ietf.org/mail-archive/web/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: Thu, 08 Sep 2011 15:13:41 -0000

On Thu, Sep 8, 2011 at 11:06 AM, Richard L. Barnes <rbarnes@bbn.com> wrote:

> It should also be noted that if the MASK bit is eliminated, then the
> recipient of a frame can't even parse it in the current format, since it
> doesn't know whether the first four octets are a masking key or not.


No, you know which side initiated the connection, so you know whether it is
a client frame or a server frame, and therefore whether it is masked.

 I expect it will get used as a WS-variant when dealing with non-browser
>> clients -- ie, between a frontend which handles
>> masking/aggregation/deaggregation/SSL and the ultimate backend, I would not
>> be surprised if there were unmasked client->server frames.  As long as all
>> the browser clients all enforce masking on their connections, the problem
>> masking was added for is averted.
>
>
> This seems to argue against Gabriel's proposed "c2s MUST / s2c MUST NOT".


No, since it would have to be a variant -- they aren't speaking WebSocket at
that point but a close derivative.  When we first added masking, IIRC Maciej
and others strongly objected to allowing clients to not mask in the
standard, even with a requirement that clients executing potentially hostile
code must mask, so I doubt relaxing it now would be any more acceptable.

-- 
John A. Tamplin
Software Engineer (GWT), Google