Re: [hybi] About authentication mechanism

John Tamplin <jat@google.com> Wed, 29 June 2011 08:28 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 527079E8028 for <hybi@ietfa.amsl.com>; Wed, 29 Jun 2011 01:28:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.676
X-Spam-Level:
X-Spam-Status: No, score=-105.676 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b0hx-84VrovB for <hybi@ietfa.amsl.com>; Wed, 29 Jun 2011 01:28:49 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by ietfa.amsl.com (Postfix) with ESMTP id 9C7B29E8025 for <hybi@ietf.org>; Wed, 29 Jun 2011 01:28:49 -0700 (PDT)
Received: from hpaq11.eem.corp.google.com (hpaq11.eem.corp.google.com [172.25.149.11]) by smtp-out.google.com with ESMTP id p5T8Smri017772 for <hybi@ietf.org>; Wed, 29 Jun 2011 01:28:48 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1309336128; bh=ark6vZoGNeKCVURYXRjAdSnu6p0=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Z+r+9nUNcoiOXxpFaiZVJZltUf9hdwnm9l40Ja3Acnr5NaWGWC18ThaVG6CrY/G+D 1f+uexQmkGWAoShTm8E/A==
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=WE+xDdcKtQQOmOnrppBCs136jTHm/coS7t50ho9zfO7xUlzVB31nCALSNc6ubd/bL JZKsapNwc1YsxgI4mKNfg==
Received: from yxe1 (yxe1.prod.google.com [10.190.2.1]) by hpaq11.eem.corp.google.com with ESMTP id p5T8SSL6022768 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for <hybi@ietf.org>; Wed, 29 Jun 2011 01:28:46 -0700
Received: by yxe1 with SMTP id 1so450401yxe.20 for <hybi@ietf.org>; Wed, 29 Jun 2011 01:28:46 -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=eIIF5xMjgqQiRZlqKpjd5r7hfFygLCwnHejkbK7otb4=; b=Dgvsjenpz720cVyQ4LHC6Ge3vlHoe4qWNU7WqLzWAokomuyXdVten54khDJbezoTrs dZEUr81AsmR7QVsZZF2A==
Received: by 10.150.141.13 with SMTP id o13mr451224ybd.287.1309336126376; Wed, 29 Jun 2011 01:28:46 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.49.7 with HTTP; Wed, 29 Jun 2011 01:28:26 -0700 (PDT)
In-Reply-To: <CALiegfm8aCsnav51DC=h4DmH+F0DAJUk69D4bbv_0GtvDjw3tw@mail.gmail.com>
References: <BANLkTinerv=Ua4d-ma+uPVJjF95U1U5iXg@mail.gmail.com> <BANLkTin4mWJgQm+pfyYRs_RhRkdMBfY_Og@mail.gmail.com> <BANLkTiksptqmTWftg7Ur98QQnp22QV7OLA@mail.gmail.com> <BANLkTimw8T4pZieBeCjaPQJ8oYWfbTjkmg@mail.gmail.com> <BANLkTikOzzHF1dGz-2-UwTC0kb2ZQd_0Jw@mail.gmail.com> <BANLkTimCTTCU4UFA7JFuBvDZSFv++UyGCA@mail.gmail.com> <BANLkTinWnTxkCh9BM_utX0=pxzE02DypuA@mail.gmail.com> <BANLkTi=LEOyhagpGZF9gTyLxGuqv5U64wmO_afwaw=eR=pVcPw@mail.gmail.com> <BANLkTinGb38bLyH20Q-QaP2jeDCfgYvENw@mail.gmail.com> <CABLsOLD-EWb=pQ33c9FSU3cu0JTGS5mc2-e5-oq-skfp7rzQhA@mail.gmail.com> <CALiegfnfWwqtWqHZ5GUCWMNdWODnV+fHNhn+fxpL49KQ=Fs8Fw@mail.gmail.com> <BANLkTi=CHoqCaTpBUyjokotR6F6tcfajcNedwQg0_ge0JRUYNQ@mail.gmail.com> <CALiegf=Y-kWG7piRnbDtKeh7Edj11OtQqHVCUq4N2_D1pXG8Qw@mail.gmail.com> <BANLkTim++ywp3fCM8YXuRkH41pUOLqbJZt1JhVdpdUcbJkaVmQ@mail.gmail.com> <CALiegfm8aCsnav51DC=h4DmH+F0DAJUk69D4bbv_0GtvDjw3tw@mail.gmail.com>
From: John Tamplin <jat@google.com>
Date: Wed, 29 Jun 2011 04:28:26 -0400
Message-ID: <CABLsOLB17_BVH+mGG4PCvMo8hWSfc=BvuNgq8Rcbo5Mxm6k7Zg@mail.gmail.com>
To: Iñaki Baz Castillo <ibc@aliax.net>
Content-Type: multipart/alternative; boundary="000e0cdf1a96b44c6804a6d5924e"
X-System-Of-Record: true
Cc: hybi@ietf.org, Greg Wilkins <gregw@intalio.com>
Subject: Re: [hybi] About authentication mechanism
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: Wed, 29 Jun 2011 08:28:50 -0000

On Wed, Jun 29, 2011 at 4:05 AM, Iñaki Baz Castillo <ibc@aliax.net> wrote:

> > or have the WS server issue some challenge that the JS
> > answers
>
> Reinventing the wheel (HTTP Digest auth) but at WS subprotocol level?
> So should the JavaScript client *code* perform the challenge in pure
> and custom JavaScript code? I expect *lots* of future vulnerabilities
> in WS.
>
> Unfortunately it's common in this WG not to reuse existing
> technologies (neither reusing DNS SRV for good
> load-balancing/failover, neither reusing any existing authentication
> mechanism). This is not good IMHO.


How many sites use HTTP auth instead of rolling their own?  I can't think of
a single one that I use regularly that does.

Therefore, standardizing on something that nobody uses seems hardly a good
idea.  It also seems unlikely that everyone would agree on a the One True
Auth mechanism to be included in WS.  Personally, I would expect one or more
extensions to be created that specifies how credentials are sent in the
handshake, assuming there is sufficient interest and that a common standard
emerges, such as perhaps OAuth.

> (or presents to the user on behalf of the server if it's really
> > necessary), many ways. This is not a new problem.
>
> Even worse, it's not a new problem but it seems that WebSocket draft
> authors don't want to deal with it. WebSocket world will become a
> jungle.
>

Make a proposal and see if you can get sufficient support behind it.  I am
pretty sure HTTP Auth is not going to achieve such support, and given how
long WS has taken to achieve consensus, I suspect any such mechanism will be
done via an extension.

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