Re: [hybi] Why not just use ssh?

Willy Tarreau <w@1wt.eu> Wed, 01 September 2010 05:48 UTC

Return-Path: <w@1wt.eu>
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 CB8633A68EC for <hybi@core3.amsl.com>; Tue, 31 Aug 2010 22:48:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.718
X-Spam-Level:
X-Spam-Status: No, score=-2.718 tagged_above=-999 required=5 tests=[AWL=-0.675, BAYES_00=-2.599, HELO_IS_SMALL6=0.556]
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 S9eKa728iJpY for <hybi@core3.amsl.com>; Tue, 31 Aug 2010 22:48:43 -0700 (PDT)
Received: from 1wt.eu (1wt.eu [62.212.114.60]) by core3.amsl.com (Postfix) with ESMTP id 45D303A68F5 for <hybi@ietf.org>; Tue, 31 Aug 2010 22:48:43 -0700 (PDT)
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id o815n68V005961; Wed, 1 Sep 2010 07:49:06 +0200
Date: Wed, 01 Sep 2010 07:49:06 +0200
From: Willy Tarreau <w@1wt.eu>
To: John Tamplin <jat@google.com>
Message-ID: <20100901054906.GB5888@1wt.eu>
References: <d48398080b610405d982ffd924f58e27.squirrel@sm.webmail.pair.com> <AANLkTin8CiHFoOSFdcRPern5YY-FdODC4GST+BrP3t_j@mail.gmail.com> <AANLkTi=fn2JE7a0b_0KFFLwq3eG_-xnaRazXAMPGi0N3@mail.gmail.com> <CA566BAEAD6B3F4E8B5C5C4F61710C110FAFBCBD@TK5EX14MBXW605.wingroup.windeploy.ntdev.microsoft.com> <AANLkTinE1MB10nUhpnU-SC+aLjPmFyu3NhjLC1-wMmW7@mail.gmail.com> <AANLkTi=b==PVb9i3VeNo+JRzQwKrr-5=t14HH2m=Tc5Z@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <AANLkTi=b==PVb9i3VeNo+JRzQwKrr-5=t14HH2m=Tc5Z@mail.gmail.com>
User-Agent: Mutt/1.4.2.3i
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Why not just use ssh?
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: Wed, 01 Sep 2010 05:48:44 -0000

On Tue, Aug 31, 2010 at 08:40:45PM -0400, John Tamplin wrote:
> On Tue, Aug 31, 2010 at 8:26 PM, Adam Barth <ietf@adambarth.com> wrote:
> > Why?  There are a number of compelling technical reasons to prefer the
> > TLS-based handshake.  The counter arguments appear to be entirely
> > non-technical.
> 
> I don't know -- does changing the typical total frame header size
> after RoHC from 7 bytes to 22 count as a technical argument?  With a
> large number of frames likely being a few dozen bytes after
> compression, that seems significant.  The requirement for any
> implementation to include TLS libraries also seems to be a technical
> argument.

I'd like to add that the WG's goal is to achieve interoperability, and
that's not only based on technical arguments. With TLS, an administrator
can't analyze traffic. That's very important in schools for example, and
some large enterprises, where the policy is simple : either you can
analyze and filter, or you block. While I'm very favorable to a TLS
version, I'd really like to have an HTTP one too. For this reason, I
think we should ensure the handshake is simple enough to limit misuses,
and looks a lot like HTTP so that it does not create a new attack
vector. After all, the WS clients will be the browsers. They already
have access to the net (direct or via proxies), and what we should be
concerned about is that we can't do with WS what we can't already do
with HTTP.

So in my opinion, trying to stop protocol attacks before the handshake
is complete is a waste of time since the HTTP vector is still available,
however we have to ensure we won't complete the handshake on a non-WS
server. For that use, I think that the nonce, whatever its form (possibly
a WS ping+pong) is very important.

Willy