Re: Client Certificates - re-opening discussion

"henry.story@bblfish.net" <henry.story@bblfish.net> Mon, 21 September 2015 08:16 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 568191A8969 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 21 Sep 2015 01:16:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.911
X-Spam-Level:
X-Spam-Status: No, score=-6.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hHJ5JLlz1xJL for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 21 Sep 2015 01:16:45 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 791351A8955 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 21 Sep 2015 01:16:45 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ZdwDc-0000wx-KC for ietf-http-wg-dist@listhub.w3.org; Mon, 21 Sep 2015 08:13:00 +0000
Resent-Date: Mon, 21 Sep 2015 08:13:00 +0000
Resent-Message-Id: <E1ZdwDc-0000wx-KC@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <henry.story@bblfish.net>) id 1ZdwDV-0000w7-7w for ietf-http-wg@listhub.w3.org; Mon, 21 Sep 2015 08:12:53 +0000
Received: from mail-wi0-f182.google.com ([209.85.212.182]) by maggie.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <henry.story@bblfish.net>) id 1ZdwDS-0001dO-Sp for ietf-http-wg@w3.org; Mon, 21 Sep 2015 08:12:52 +0000
Received: by wicge5 with SMTP id ge5so104187338wic.0 for <ietf-http-wg@w3.org>; Mon, 21 Sep 2015 01:12:24 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:message-id:mime-version :subject:date:references:to:in-reply-to; bh=PG9OvTX9dn+vzrFctsGkl31Q5fWN+axHCmc9AomYJjY=; b=aZukEgG8iNreKMgafsaot1dG9zB38oUf16yAcasyFO1JLYrwmaxTgDglLPyEK99zau VoZdR9TPIrisehiJTXb4ZSaeMSXYE83rJAhn44WrjCBU1It1/6tOGIW9kUDQnKAAXRNm jlF2mPXXkhk0ijVHiIaHAkyL0KWH74mlRCN/Dzbe5Ef9VoCEe950xkO87WomkFsnXEUI ztlWf4//Gci4dJ5a6NgmCNEgM51w3OAkVHi2H7UfWLKHUx3I1f0HlIiYTHoTbjRGuvNv COAqUsf4WzOr7+IlECde2x8zv7PSmlCvHJVIH7suY+SlkCSy3cpnspCdS3r9PH+EkjVg H8rw==
X-Gm-Message-State: ALoCoQlBKQ+arKwWFaEny/7biwF1ZUay/DapCY9M9gd6nD0X5tW5pq5dVhqP/sBMSk6B78L3k2qn
X-Received: by 10.180.108.136 with SMTP id hk8mr11404858wib.47.1442823144252; Mon, 21 Sep 2015 01:12:24 -0700 (PDT)
Received: from [192.168.0.2] (cpc2-popl3-2-0-cust563.13-2.cable.virginm.net. [86.21.242.52]) by smtp.gmail.com with ESMTPSA id pu6sm22763786wjc.34.2015.09.21.01.12.22 for <ietf-http-wg@w3.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Sep 2015 01:12:23 -0700 (PDT)
From: "henry.story@bblfish.net" <henry.story@bblfish.net>
Content-Type: multipart/alternative; boundary="Apple-Mail=_08556519-7A3D-48EA-95CC-47B57735CDBF"
Message-Id: <BC711FAF-B7FA-4873-A386-EF968D302060@bblfish.net>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
Date: Mon, 21 Sep 2015 09:12:21 +0100
References: <63DECDF0-AB59-4AFD-8E48-8C2526FD6047@mnot.net> <42DDF1C6-F516-4F71-BAE0-C801AD13AA01@co-operating.systems> <2F3BD1CB-042D-48AB-8046-BB8506B8E035@mnot.net> <CABcZeBNpjbNdeqxP_cwCDygk6_MVDoNhqcMEDmEvEBxztmonLg@mail.gmail.com> <20150918205734.GA23316@LK-Perkele-VII> <70D2F8CE-D1A2-440F-ADFC-24D0CE0EDCF1@greenbytes.de> <CABcZeBPNxEA6O324tnF3dbUCLD-a7uUvWYYjO1pnYwAm9cN2eA@mail.gmail.com> <CY1PR03MB1374F1CA73EFDA80C7CE44E887580@CY1PR03MB1374.namprd03.prod.outlook.com> <9BD53F44-94BA-4931-891A-BD94B5F440D0@gmail.com> <CY1PR03MB1374BE698FEB732EBB9BD96087460@CY1PR03MB1374.namprd03.prod.outlook.com> <68879535-44AB-4E68-BA42-827BA334D9A8@gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
In-Reply-To: <68879535-44AB-4E68-BA42-827BA334D9A8@gmail.com>
X-Mailer: Apple Mail (2.2104)
Received-SPF: none client-ip=209.85.212.182; envelope-from=henry.story@bblfish.net; helo=mail-wi0-f182.google.com
X-W3C-Hub-Spam-Status: No, score=-7.1
X-W3C-Hub-Spam-Report: AWL=0.462, BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1ZdwDS-0001dO-Sp cc0bd32e08ab4a6e27867181b48ca144
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Client Certificates - re-opening discussion
Archived-At: <http://www.w3.org/mid/BC711FAF-B7FA-4873-A386-EF968D302060@bblfish.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/30242
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>

First I am really thankful for this discussion as  I had not been able
to understand what exactly the problem with client certs and 
HTTP/2.0 were. This is very helpful.

> On 21 Sep 2015, at 07:09, Yoav Nir <ynir.ietf@gmail.com <mailto:ynir.ietf@gmail.com>> wrote:
> 
>> 
>> On Sep 21, 2015, at 6:30 AM, Mike Bishop <Michael.Bishop@microsoft.com <mailto:Michael.Bishop@microsoft.com>> wrote:
>> 
>> Better than renegotiation?  Nothing – which is the point.  Renegotiation worked, and our first step is parity with downlevel.
> 
> So if this working group rejected renegotiation (which worked), why would this new mechanism be acceptable?
> 
>> Renegotiation, however, attempted to bring many functions together, some of which made the TLS WG uncomfortable.  This PR creates a more scoped feature targeted at only the presentation of client credentials to the server, which is the feature we actually need.
> 
> That’s a good thing, but IMO it doesn’t matter to httpbis.
> 
>> It sounds like, in part, we have different understandings of why renegotiation was prohibited in the first place.  You argue it was prohibited because there’s some inherent indeterminacy, particularly if the application layer doesn’t stall.  I’d argue that that indeterminacy can and should be handled by the application that knows what resources care about the client’s identity and which don’t.
> 
> Having the application layer stall doesn’t help. The client requests resources A, B, and C. Resource B requires client authentication. By the time the application stalls, waiting for the client authentication, resources A and C may not have been noticed, or the requests may have been serviced, with A and C in a buffer waiting to be encrypted, or the requests may have been serviced and encrypted and on the way back to the client. A and C may be received in the authenticated or the non-authenticated context. Imagine, for example, that A is a bit of HTML that says “Hello, guest” in the unauthenticated context, or “Hello, Mike” after authentication. You can get the certificate picker and still see the “Hello, guest” on the page.
> 
> What’s more, I think HTTP authentication has the same issue. If one request gets processed and generates a 401 with WWW-Authenticate, other resources may or may not have been serviced. You can fix this by carefully designing the application so that you don’t load resources that are different based on state at the same time as the authentication is going on.

This seems to show that this is not a client certificate problem but another problem.

In a data driven web, where the client generates the page in Single Pages apps (SPA), the 
identifying  information about the user would be in a seperate resource. As that information 
became available to the SPA would redraw itself, to take that into account.

The way you state the problem it seems to be related to a resource being both public
and protected simultaneously, with the protected version of the resource returning more 
information than the public one. How would a web server indicate to the client that
it should re-download certain resources that now contain more information? Is this even
good practice?  Those are interesting questions.

> 
>> If multiple requests cause the server application to query the HTTP layer for the client’s certificate, then all those requests will wait until the client authentication has completed, just as they would have on a non-multiplexed connection.  Where multiplexing adds a new wrinkle is that, under HTTP/1.1, those connections that didn’t require authentication would proceed without interruption until they’re used for a protected request.

makes sense to me.

>>  
>> Perhaps the fundamental question is, when does the client need to know that the server had seen the certificate prior to generating the response?  In HTTP/1.1 over TLS 1.x, it could know that the server had seen it, but couldn’t know whether the server cared.
> 
> Does it matter for the client?
> 
> Yoav



Social Web Architect
http://bblfish.net/