Re: HTTP2 Expression of Interest

Phillip Hallam-Baker <hallam@gmail.com> Fri, 13 July 2012 21:09 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 64AAF11E80C0 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 13 Jul 2012 14:09:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.284
X-Spam-Level:
X-Spam-Status: No, score=-8.284 tagged_above=-999 required=5 tests=[AWL=2.315, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 XKhkLrIjROkQ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 13 Jul 2012 14:09:03 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id E1F1E11E8097 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 13 Jul 2012 14:09:02 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Spn6f-0004Xz-SK for ietf-http-wg-dist@listhub.w3.org; Fri, 13 Jul 2012 21:08:57 +0000
Resent-Date: Fri, 13 Jul 2012 21:08:57 +0000
Resent-Message-Id: <E1Spn6f-0004Xz-SK@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1Spn6X-0004WA-I5 for ietf-http-wg@listhub.w3.org; Fri, 13 Jul 2012 21:08:49 +0000
Received: from mail-ob0-f171.google.com ([209.85.214.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1Spn6V-00016G-Px for ietf-http-wg@w3.org; Fri, 13 Jul 2012 21:08:49 +0000
Received: by obqv19 with SMTP id v19so5795348obq.2 for <ietf-http-wg@w3.org>; Fri, 13 Jul 2012 14:08:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=+AK/VXhYPNPsoUIofeR7r/OOLcWmtm2gHGCVmeq4yPw=; b=Qbp04yYrDLNK/0NYZU/iUg796Q8nV4hkdtwIw+1cLxB9bRt5AREozErC2V4ibB2S// 7/wlD4agWRFQQa+PqhSrCF8bJ+EO98dHS1gsQ480A+SeZ9S9fdAzKmz4xDIwrEza2kQ8 0qPu/vi6eTF/hMmWPfr/xpdIMlAKzjjrwCpk1di+pScgaNo5MspMmx2mNAjrGnAoacbJ wyN3iKsGrymc+lDOkifii8CRIhuxvWNzsj9ACqrAXCyANrdxVzQ1LWjMaFaohB2QUuVD wgrVrB197WF+vj2AWgeckIpjz/4vhVCTSChumKW+zeuE+xFPTFRpbWST2cyI0++TtVr7 BQIw==
MIME-Version: 1.0
Received: by 10.182.43.71 with SMTP id u7mr3808045obl.13.1342213701519; Fri, 13 Jul 2012 14:08:21 -0700 (PDT)
Received: by 10.76.120.110 with HTTP; Fri, 13 Jul 2012 14:08:21 -0700 (PDT)
In-Reply-To: <526415708D2AD940845C43B7A6BE7CE80E9F7C9B@TK5EX14MBXW604.wingroup.windeploy.ntdev.microsoft.com>
References: <CAPik8ybB-pzn8M3JVJJtpZK-DHEW8amsw_kjbLNQSNQ4dkjeLQ@mail.gmail.com> <CAK3OfOiKSrSLYrq9cSMKf=8ujK5Y5jgCws0HrCY8gO6+Vscf_w@mail.gmail.com> <CAMm+LwhDewyKn9GRLdPZtNc+unPuAMHpwzpvhr6Dr0CYNLPB-Q@mail.gmail.com> <526415708D2AD940845C43B7A6BE7CE80E9F7C9B@TK5EX14MBXW604.wingroup.windeploy.ntdev.microsoft.com>
Date: Fri, 13 Jul 2012 17:08:21 -0400
Message-ID: <CAMm+LwgSCMa3o4WyxvU3ajentJsZ5esOXuKc0qeJFMWPCSfAqA@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: Paul Leach <paulle@microsoft.com>
Cc: Nico Williams <nico@cryptonector.com>, Paul Hoffman <paul.hoffman@gmail.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.214.171; envelope-from=hallam@gmail.com; helo=mail-ob0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-2.7
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Spn6V-00016G-Px ca333f2d46227609b71f61bca772503d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP2 Expression of Interest
Archived-At: <http://www.w3.org/mid/CAMm+LwgSCMa3o4WyxvU3ajentJsZ5esOXuKc0qeJFMWPCSfAqA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/14159
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

+1

Also note that the major constraint on the design of DIGEST was that
it had to be open and unencumbered which meant not using RSA or
Diffie-Hellman at the time.

We knew better at the time we made the original proposal. The problem
was that we could not do things the way we wanted.

The KGB has an interesting doctrine, every message has to be secured
by two independent mechanisms that have to independently provide for
complete protection of the message based on different principles. [As
a result they ended up killing a few dozen cipher clerks with ionizing
radiation generators in their enclosures prompting the defection of
one of their top crypto people. But that is another issue]

What I am saying is that adding security at the HTTP layer is really
orthogonal to the need for TLS or not. More to the point, even if we
got rid of TLS there would still be a need to authenticate servers and
thus a need for some form of open authentication infrastructure for
servers which means a CA-like entity.


If you want HTTP messages to tunnel through proxies then you are going
to need to be realistic about the practicality of securing headers. If
you don't need that capability (and I haven't used a proxy
intentionally for 15 years) then you can be more aggressive.

If we want to secure anything more than the content in HTTP 2.0 then
we probably need to think about ways to separate out headers that are
content metadata and thus should be inside the security envelope from
routing headers which ain't.

On Fri, Jul 13, 2012 at 3:31 PM, Paul Leach <paulle@microsoft.com> wrote:
> I'd like to quibble a little with the description of the "authentication activities"; they all have the same flaw which can be illustrated by a proposed modification to the first one:
>
>         CREDENTIAL-Authentication: Is this the user _who sent this HTTP request_ and claiming to be the owner of account 'X' the same user who was issued account 'X'?
>
> Why is the change necessary? Because one of the biggest problems with current security mechanisms at the HTTP layer is that there is very little binding between the identity of the user making the connection and the request coming over the connection. None of the existing in use mechanisms except Digest even tries, and Digest usually only binds the request URI and method of the request to the authenticated identity. As a result, any MITM can almost completely change the request, so that knowledge of who sent the Authentication header is basically irrelevant if real security is needed.
>
> As a further result, the only time that HTTP layer authentication has any real security value is when it is tunneled inside of TLS, and _has its channel bound_ to the authentication.
>
> Note that Digest also (in a less-used feature) has a way to bind the request body and the response body to the identity of the requesting user. Unfortunately, it doesn't bind the rest of request and response headers; that's because proxy servers are allowed to rearrange them, and coming up with a canonical form that allowed for that seemed intractable. Also, Digest doesn't support chunked encoding, so that very large or indefinite length entity bodies are at best problematic.
>
> Also note that Digest has an "MD5-sess" mode that provides for the "RE-authentication" mode that Phillip defines.
>
> (The biggest problem with Digest is that the construction of the keys it uses from the password does not specify how to handle any character set other than ASCII. I was clueless about that in those days.)
>
>
> -----Original Message-----
> From: Phillip Hallam-Baker [mailto:hallam@gmail.com]
> Sent: Thursday, July 12, 2012 10:37 PM
> To: Nico Williams
> Cc: Paul Hoffman; ietf-http-wg@w3.org
> Subject: Re: HTTP2 Expression of Interest
>
> I really dislike the idea of having a platform inside a platform
>
> TLS is way too big for comfort. GSSAPI has mechanism on mechanism.
>
>
> I don't want a choice of fifty ways to authenticate. I want exactly one mechanism to support each type of authentication. I certainly don't want a choice of crypto protocols to verify passwords. In fact I don't want passwords to be flowing over the net at all. The proper use of a password is to unlock the user's credential on their authentication device.
>
> SAML and OAUTH and the rest already define an interaction with HTTP.
> If we want to adopt those as mechanisms we should adopt them directly into HTTP and not introduce a platform step.
>
> But even there we should not accept the whole of either spec. Much of the argument in SAML went into the design of a mechanism that could be used with legacy Web browsers. Same for OAUTH. Now it will certainly be necessary to consider how we transition to HTTP 2.0 but I would want to jettison the entire transition structure once we get there.
>
>
> But really we have a much smaller set of concerns. In particular we should distinguish between the different things that are called 'authentication' and we should not incorporate any mechanism into the spec that is incompletely specified. By which I mean relying on out of band configuration or exchange of credentials.
>
> Specifically we have the following activities that are all known as
> 'authentication':
>
> CREDENTIAL-Authentication Is this the user claiming to be the owner of account 'X' the same user who was issuedaccount 'X'
>
> RE-Authentication: Is this the same user that authenticated previously?
>
> FED-Authentication: Is the user claiming to be acct:user@example.com the same user that other sites accept as acct:user@example.com
>
>
> Now credential authentication is a strict subset of the federated case so it may not be desirable to distinguish the two on an ongoing basis but RE-Authentication is something rather different.
>
>
>
> On Fri, Jul 13, 2012 at 1:16 AM, Nico Williams <nico@cryptonector.com> wrote:
>> On Thu, Jul 12, 2012 at 9:22 PM, Paul Hoffman <paul.hoffman@gmail.com> wrote:
>>> draft-williams-rest-gss relies on GSSAPI, which has thin adoption
>>> even after many years. [...]
>>
>> If you consider that the SSPI is very similar to the GSS-API, and
>> wire-compatible with it anyways, then that assertion is quite clearly
>> incorrect.  SSPI is extremely widely used, both in proprietary
>> application protocols and standard ones (including TLS, since SSPI is
>> the interface to TLS in Windows).
>>
>> The GSS-API has had a dearth of mechanisms for it deployed, but this
>> is beginning to change.  We now have all of these standardized and/or
>> deployed:
>>
>>  - Kerberos (including IAKERB)
>>  - GSS-EAP (see ABFAB WG)
>>  - SCRAM
>>  - Microsoft's PKU2U (PKI, based on Kerberos w/ PKINIT)
>>  - the GSI mechanism that is really just TLS repackaged as GSS
>>
>>    (See again how SSPI is the interface to TLS in Windows.
>>     It's also the interface to SASL.)
>>
>>  - OAuth and SAML-based mechanisms are in the works as well.
>>
>> It's easy enough to add new GSS-API mechanisms, but between GSS-EAP,
>> Kerberos (particularly with trust routing and bootstrapping
>> enhancements), PKU2U, OAuth, and SAML I think we have most needs
>> covered.  A ZKPP mechanism or three should be added, but unless that's
>> done in a way that federates then I think it's best to make sure that
>> GSS-EAP can use ZKPP EAP methods and Kerberos can use ZKPP
>> pre-authentication mechanisms.
>>
>> The biggest Internet protocol users of the GSS-API are SSHv2 (yes,
>> really, SSHv2 w/ GSS and Kerberos is widely deployed in corporate
>> networks), LDAP (see again Windows), and NFS.  But also IMAP (see
>> Exchange), DNS (GSS-TSIG, see Active Directory and Windows) and
>> others.  There's also widely deployed non-Internet standards-track
>> protocols, such as SMB, as well as many proprietary protocols.  And
>> then there's HTTP/Negotiate -- how could I forget!  (though to be sure
>> I don't really like HTTP/Negotiate, otherwise I might just have
>> proposed that.)
>>
>> Nico
>> --
>>
>
>
>
> --
> Website: http://hallambaker.com/
>
>
>



-- 
Website: http://hallambaker.com/