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

John Tamplin <jat@google.com> Thu, 08 September 2011 16:27 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 F293E21F8782 for <hybi@ietfa.amsl.com>; Thu, 8 Sep 2011 09:27:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.931
X-Spam-Level:
X-Spam-Status: No, score=-105.931 tagged_above=-999 required=5 tests=[AWL=0.045, 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 lnmPM3TkP05z for <hybi@ietfa.amsl.com>; Thu, 8 Sep 2011 09:27:05 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.67]) by ietfa.amsl.com (Postfix) with ESMTP id 2AE3321F86A0 for <hybi@ietf.org>; Thu, 8 Sep 2011 09:27:04 -0700 (PDT)
Received: from hpaq14.eem.corp.google.com (hpaq14.eem.corp.google.com [172.25.149.14]) by smtp-out.google.com with ESMTP id p88GSutT028543 for <hybi@ietf.org>; Thu, 8 Sep 2011 09:28:56 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1315499337; bh=Z1ti4/DYjn57ie4zj3FonCFsegI=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=MJHpFj9lEBMBvu25CuJAaoiUYOB0U4pfSXKMwpmNNmFpqwteMRoVaRTcMuoQCf/qv Ir7KJu91EQhmxOix8CdFQ==
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=hElldWm5TNINrrflE/vzCGOm3kRyZZv1db+bSmvkApzVfEI5Yam5abhJB01u2jNmC IV+PWhfRGD+o4aEdSzY3Q==
Received: from yxj19 (yxj19.prod.google.com [10.190.3.83]) by hpaq14.eem.corp.google.com with ESMTP id p88GRofg006341 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for <hybi@ietf.org>; Thu, 8 Sep 2011 09:28:55 -0700
Received: by yxj19 with SMTP id 19so253094yxj.23 for <hybi@ietf.org>; Thu, 08 Sep 2011 09:28:53 -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=/2+T5cLYCPxAhH7vFB5b9hIYlgS7BtY0qJUrnjijq1w=; b=TJVg6PSgkr14vtRGavqOTGfLtamBMF5cXFJOclQlGzj9eF4w9cGrrV1rISz3kUpS4I augoErU+sByC/cwwEA4Q==
Received: by 10.150.173.33 with SMTP id v33mr1023806ybe.2.1315499333197; Thu, 08 Sep 2011 09:28:53 -0700 (PDT)
Received: by 10.150.173.33 with SMTP id v33mr1023800ybe.2.1315499333091; Thu, 08 Sep 2011 09:28:53 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.49.7 with HTTP; Thu, 8 Sep 2011 09:28:33 -0700 (PDT)
In-Reply-To: <4E68E9F6.6030901@stpeter.im>
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> <4E68E9F6.6030901@stpeter.im>
From: John Tamplin <jat@google.com>
Date: Thu, 08 Sep 2011 12:28:33 -0400
Message-ID: <CABLsOLBkBjoFenUZ3SVseaZ6Lt-QE=xw6L1caCQ-8nfN+qky2A@mail.gmail.com>
To: Peter Saint-Andre <stpeter@stpeter.im>
Content-Type: multipart/alternative; boundary="000e0cd5c9ea7382df04ac708e1c"
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 16:27:06 -0000

On Thu, Sep 8, 2011 at 12:14 PM, Peter Saint-Andre <stpeter@stpeter.im>wrote:

> > OLD: "All frames sent from the client to the server are masked to avoid
> ..."
> > NEW: "Frames sent from the client to the server SHOULD be to avoid ..."
> >
> > NEW: "Servers MUST NOT reject un-masked frames, unless masking is
> required by local policy."
>
> Personally (not as your Area Director), that's fine with me.
>
> As your Area Director, I'd appreciate feedback from WG participants so
> that we can reach closure on this issue.


I don't object to changing this though I think previous discussions were
clear enough -- I wonder if all those who participated in the discussion at
that point will be around to restate their preferences.

If we do go with this, I would prefer an additional statement for
client->server, stating that if the client makes sends content controlled by
potentially hostile code over a WebSocket connection, it MUST mask the
contents.

I don't object strongly to changing server->client, but I think it is
totally silly to mask it as the server controls both the mask and the
content.  In fact, it may be a bit riskier, because the server could send
content that would be innocuous to something interpreting it as WebSocket
traffic, while the masked bytes are an attack against an intermediary.  So,
I would prefer to leave it as MUST NOT but if others feel strongly that
allowing it is useful I won't fight it.

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