Re: [hybi] WebSocket, TLS and intermediaries

Roberto Peon <fenix@google.com> Thu, 22 July 2010 05:09 UTC

Return-Path: <fenix@google.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B1C273A6869 for <hybi@core3.amsl.com>; Wed, 21 Jul 2010 22:09:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.976
X-Spam-Level:
X-Spam-Status: No, score=-101.976 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X32HjJXXf7l8 for <hybi@core3.amsl.com>; Wed, 21 Jul 2010 22:09:38 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id 14D653A68AD for <hybi@ietf.org>; Wed, 21 Jul 2010 22:09:37 -0700 (PDT)
Received: from hpaq12.eem.corp.google.com (hpaq12.eem.corp.google.com [172.25.149.12]) by smtp-out.google.com with ESMTP id o6M59sWq023234 for <hybi@ietf.org>; Wed, 21 Jul 2010 22:09:54 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1279775394; bh=Cqs5diIknFOBQIjnYbGHv2krfcU=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=X5sFcDcJknTrQ/J6JXRR4niN8c2VZMfFbcBE/TQXxoC8/zAwqeqGwBb4KFkAUBzr4 PAVYWMCy2mg0h0mW96GAg==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=OhavI8SmTJq02IfoO7bjuh/oDwkAnqjzG281CrgIkBxl8lAZtdJxCcdl2+H7qeIwh Ymt0ueisREOThQrdnfN8A==
Received: from gxk26 (gxk26.prod.google.com [10.202.11.26]) by hpaq12.eem.corp.google.com with ESMTP id o6M59qop031652 for <hybi@ietf.org>; Wed, 21 Jul 2010 22:09:53 -0700
Received: by gxk26 with SMTP id 26so5809939gxk.24 for <hybi@ietf.org>; Wed, 21 Jul 2010 22:09:52 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.218.18 with SMTP id q18mr3418964ybg.62.1279775391490; Wed, 21 Jul 2010 22:09:51 -0700 (PDT)
Received: by 10.150.59.4 with HTTP; Wed, 21 Jul 2010 22:09:51 -0700 (PDT)
In-Reply-To: <20100722001112.GC7174@1wt.eu>
References: <4BC860FD.8080007@webtide.com> <Pine.LNX.4.64.1004161952530.751@ps20323.dreamhostps.com> <35EFEA5E-9017-48A1-BB66-A0AF947E159F@d2dx.com> <AANLkTinihlL2sn3Kiwtcl7QYKhFlvmj9lvmH4_z02xF7@mail.gmail.com> <FC1F510E-6D48-4D75-A356-F455C9FD5BD8@apple.com> <4C468EAE.4050507@gmx.de> <02BB0E0C-133B-4733-B053-A9D6E870F199@apple.com> <Pine.LNX.4.64.1007212245020.7242@ps20323.dreamhostps.com> <AANLkTinB_6BSY5wil2JRCweETIrG0iwH67i6-4_xR2d9@mail.gmail.com> <AANLkTiko9e2_xKLpgPlUSVBvRVY37aPmUrAagmeQsY1Q@mail.gmail.com> <20100722001112.GC7174@1wt.eu>
Date: Wed, 21 Jul 2010 22:09:51 -0700
Message-ID: <AANLkTinWTqRD9na7EgkSqOzp6S7XEWSjy6JaK3oq35=S@mail.gmail.com>
From: Roberto Peon <fenix@google.com>
To: Willy Tarreau <w@1wt.eu>
Content-Type: multipart/alternative; boundary="000e0cd402a89a2461048bf2edcd"
X-System-Of-Record: true
Cc: Hybi <hybi@ietf.org>
Subject: Re: [hybi] WebSocket, TLS and intermediaries
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/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, 22 Jul 2010 05:09:40 -0000

 +1
-=R

On Wed, Jul 21, 2010 at 5:11 PM, Willy Tarreau <w@1wt.eu> wrote:

> On Thu, Jul 22, 2010 at 09:55:50AM +1000, Greg Wilkins wrote:
> > On 22 July 2010 09:42, Mike Belshe <mike@belshe.com> wrote:
> >
> > > On the TLS issue, we're going in circles.  Both sides are correct on
> the
> > > facts about the pros and cons of TLS (more or less).  I don't think the
> spec
> > > should require TLS.  But, would it be possible to define alternate
> > > handshakes based on whether TLS is used?
> > >
> > > If we use the currently defined handshake, TLS will be at a performance
> > > disadvantage to insecure WebSockets, because TLS will require more
> > > round-trips.
> > >
> > > Could we define, as part of the WebSocket protocol, that when WebSocket
> is
> > > negotiated over TLS it uses the TLS/NPN extension to effectively fold
> the
> > > WebSocket Upgrade handshake into the TLS handshake?  This removes a
> round
> > > trip from the WebSocket startup time.  The next-protocol-negotiation
> > > extension is defined here:
> > > http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00
> > >
> >
> > +1
> >
> > there has been on opinion expressed that we can only ever have 1
> websocket
> > handshake.  Thus because we are starting with port 80, the handshake is
> > currently some mutant child of HTTP that must be sent even if another
> port
> > is used and no HTTP is involved.
> >
> > This approach is  stuck trying to fixate on the exact syntax of the
> > handshake, literally down to counting spaces!
> >
> > Instead we need to establish the semantic context in which a websocket
> > connection can be established, and then allow multiple ways to establish
> > that context.   HTTP upgrade is one such way, TLS/NPN is another.
>
> +1 !
>
> Regards,
> Willy
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>