Re: new draft trusted-proxy20-00

Salvatore Loreto <salvatore.loreto@ericsson.com> Tue, 11 February 2014 12:51 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8857A1A0008 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 11 Feb 2014 04:51:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.45
X-Spam-Level:
X-Spam-Status: No, score=-7.45 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.548, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] 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 lOvgO5QVgGov for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 11 Feb 2014 04:51:52 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id B0B1C1A0144 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 11 Feb 2014 04:51:52 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1WDCmM-00064c-J7 for ietf-http-wg-dist@listhub.w3.org; Tue, 11 Feb 2014 12:49:34 +0000
Resent-Date: Tue, 11 Feb 2014 12:49:34 +0000
Resent-Message-Id: <E1WDCmM-00064c-J7@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <salvatore.loreto@ericsson.com>) id 1WDCm9-000635-Ry for ietf-http-wg@listhub.w3.org; Tue, 11 Feb 2014 12:49:21 +0000
Received: from mailgw2.ericsson.se ([193.180.251.37]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <salvatore.loreto@ericsson.com>) id 1WDCm8-0004Li-D0 for ietf-http-wg@w3.org; Tue, 11 Feb 2014 12:49:21 +0000
X-AuditID: c1b4fb25-b7f038e000005d01-dc-52fa1c3afa62
Received: from ESESSHC018.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw2.ericsson.se (Symantec Mail Security) with SMTP id FD.DC.23809.A3C1AF25; Tue, 11 Feb 2014 13:48:58 +0100 (CET)
Received: from ESESSMB109.ericsson.se ([169.254.9.236]) by ESESSHC018.ericsson.se ([153.88.183.72]) with mapi id 14.02.0387.000; Tue, 11 Feb 2014 13:48:57 +0100
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
To: Peter Lepeska <bizzbyster@gmail.com>
CC: Yoav Nir <synp71@live.com>, HTTP Working Group <ietf-http-wg@w3.org>, Robert Skog <robert.skog@ericsson.com>, Hans Spaak <hans.spaak@ericsson.com>, John Mattsson <john.mattsson@ericsson.com>
Thread-Topic: new draft trusted-proxy20-00
Thread-Index: AQHPDfpPS9MaNnQqpU+9bZcfoFcMKZqCskYAgANg5YCAKg9ggA==
Date: Tue, 11 Feb 2014 12:48:57 +0000
Message-ID: <48E8D6AE-F99B-4023-A0EB-6A70FC3BE9AE@ericsson.com>
References: <20140110114405.23235.65281.idtracker@ietfa.amsl.com> <25348219-C906-432B-9E48-A58A1CA5233D@ericsson.com> <BLU0-SMTP254F261F09BEC318E4AE1A8B1BC0@phx.gbl> <CANmPAYGqMMOQgMw2V3A66txr7Yu=won9NHSxu-LYxhcTp+f2Dw@mail.gmail.com>
In-Reply-To: <CANmPAYGqMMOQgMw2V3A66txr7Yu=won9NHSxu-LYxhcTp+f2Dw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [153.88.183.150]
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <FD18DD2C860C574C9C0F653C01FB122E@ericsson.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPLMWRmVeSWpSXmKPExsUyM+Jvja6VzK8gg/OrpCwmLL7PZHG4ZRaT xauVN1kdmD12zrrL7tFxq4HV4+i8/awBzFFcNimpOZllqUX6dglcGTNO3mAqWKVbMeHuO8YG xmfKXYycHBICJhKrNrcwQdhiEhfurWfrYuTiEBI4xCjRN2kVG0hCSGAJo8SjGZIgNpuAmcTz h1uYQWwRAQ2JHc93MYM0MAscY5T49uwk2CRhAU2Jpu/dQDYHUJGWxM2rVhD1ThK7pzSygNgs AqoS16e/BLN5BewlFp54xwSx+AOjxMuzF1lBEpwCgRI3F6xkBLEZga77fmoN2HxmAXGJW0/m Q10tILFkz3lmCFtU4uXjf6wQtpLEiu2XGCHq9SRuTJ3CBmFbS8yYfpodwtaWWLbwNTPEEYIS J2c+YZnAKD4LyYpZSNpnIWmfhaR9FpL2BYysqxjZcxMzc9LLjTYxAiPt4JbfqjsY75wTOcQo zcGiJM774a1zkJBAemJJanZqakFqUXxRaU5q8SFGJg5OqQbGCQceipc2Lk95N8F3mhrja/Nl rw2uLr8r0Fj/4KLYvuzbnSviQmpdHqzusZzMbXrxRchOu+MNr6ecfPVG8Eh7fVu5eeU1h9c7 7rlKM3WIMjr0M739Whwf1Tghm2WBC/fTqVO1dwmd9WVU59U/POmjhN90perPGZtmL//etPW0 9q9ztxNMfjvwKbEUZyQaajEXFScCAPbbvzSCAgAA
Received-SPF: pass client-ip=193.180.251.37; envelope-from=salvatore.loreto@ericsson.com; helo=mailgw2.ericsson.se
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-1.852, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1WDCm8-0004Li-D0 e6c5430438463ae7b3275c1d6c9dd991
X-Original-To: ietf-http-wg@w3.org
Subject: Re: new draft trusted-proxy20-00
Archived-At: <http://www.w3.org/mid/48E8D6AE-F99B-4023-A0EB-6A70FC3BE9AE@ericsson.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/22177
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>

see in line

On Jan 15, 2014, at 8:31 PM, Peter Lepeska <bizzbyster@gmail.com> wrote:

> More questions:
> 
> "The proxy intercept and does not forward the ClientHello message,
>   instead it returns a signed error message ("Here be proxies")
>   containing a certificate identifying the proxy. "
> 
> What happens if the client decides that it does not trust the proxy?
> Does it send a new ClientHello that the proxy forwards?

in the new version of the draft we are working on solution for this.
basically yes if the User does not provide consent the proxy we will
let forward the next ClientHello coming from that User

> How does the
> proxy distinguish between the first ClientHello that it does not
> forward and the second ClientHello that it does forward?

we are working on a proposal based on ALPN

> 
> Or, on the other hand, is trusting the proxy required to use the
> network in the use case for this new mechanism?

no the user (i.e. the Browser) will be in control

/br
Salvatore

> 
> Thanks,
> 
> Peter
> 
> 
> 
> But taking a step back, it seems like you are proposing a way for a
> proxy to advertise its presence for HTTPS connections. D
> 
> On Mon, Jan 13, 2014 at 9:55 AM, Yoav Nir <synp71@live.com> wrote:
>> Hi, Salvatore
>> 
>> Thanks for writing this.  A few comments:
>> 
>> Section 3.1 has the HTTP proxy indicate its presence by intercepting the
>> ClientHello and returning an error. There are some issue here:
>> 
>> * An explicit proxy does not have to be on the data path, and in fact
>>   it usually isn't. While MitM proxies have to intercept, clients open
>>   connections to explicit proxies, so they're likely to reside in a
>>   data-center (sometimes even in the cloud). Blocking HTTP(S) falls to
>>   a network firewall. In other words, a MitM proxy usually needs to be
>>   co-located with the firewall, but not so for an explicit proxy.
>> * I don't get how the firewall is supposed to redirect the client to
>>   the proxy. The third paragraph says "The error could for e.g. be
>>   sent using the TLS Alert protocol, but this requires registration of
>>   a new error type." I didn't understand whether this is what you are
>>   recommending (at least for this solution) or whether there are other
>>   options. It should be noted that in order for the firewall to be
>>   able to send TLS alerts, it has to MitM at least TCP, as the browser
>>   thinks it is opening a connection with the server. If we were
>>   specifying the Internet from scratch, we could define an ICMP
>>   message that can be sent to the browser in response to the TCP-SYN
>>   packet. I'm not sure how well that would work, and whether the
>>   operating systems that we're using even have APIs to tell the
>>   application what the content of the ICMP was, so I guess we're stuck
>>   with firewalls impersonating servers at the TCP layer.
>> 
>> Section 4.1 describes tunneling by using the HTTP CONNECT method, but then
>> the connection between the UA and the proxy is described at an HTTPS2
>> connection, and the proxy seems to have access to the request frames.
>> Specifically, a decryption key is passed in an HTTP2 frame. To add to the
>> confusion, the title of this section is "Tunneling". The CONNECT method does
>> go with the term "Tunneling", but then the TLS session is between the UA and
>> the server, while the proxy only sees TLS records and cannot read any of the
>> HTTP2 frames, which may share a TLS record, or span several TLS records.
>> With tunneling, the proxy does little more than moving packets back and
>> forth.
>> 
>> The alternative to tunneling, that is sort-of described in section 4.2 is
>> the use of a GET method. In this case the client really opens an HTTPS(2)
>> connection to the proxy, and then sends a GET method for resource
>> "https://server.example.com/resource.html". The server has a totally
>> separate TLS connection with the server and tunnels the requests back and
>> forth. If the proxy can reply to a request from its own cache, it may do so.
>> If it is configured to inspect the content to filter out inappropriate
>> content, it can do that as well. *This* is a trusted proxy. A proxy with
>> tunneling does not need to be trusted any more than the Internet does.
>> 
>> Lastly, section 4.2 says that the UA "tunnels" all requests towards the same
>> web server in a single connection. In fact, the UA can tunnel all of its
>> requests towards all servers in the world through this connection.
>> Similarly, the proxy could unify the traffic for several UAs into a single
>> connection with the server. This would work for normal servers, but do we
>> know that no servers make any assumptions about requests based on TCP
>> connection?  I know they shouldn't - that's what HTTP cookies are for - but
>> it's possible that some do.
>> 
>> Yoav
>> 
>> 
>> 
>> On 10/1/14 1:51 PM, Salvatore Loreto wrote:
>>> 
>>> Hi there,
>>> 
>>> we have submitted a new draft with the aim to continue the discussion on
>>> explicit and trusted proxy as intermediary of HTTP2S traffic:
>>> 
>>> http://www.ietf.org/internet-drafts/draft-loreto-httpbis-trusted-proxy20-00.txt
>>> 
>>> 
>>> The document proposes a method for an user agent to automatically
>>> discover (using the TLS Alert) and configure a proxy via a secure HTTP2.0
>>> session.
>>> 
>>> Moreover the document also draft two alternative mechanisms that allow
>>> the presence of HTTP2.0 secure proxies for TLS protected traffic when an
>>> user-agent
>>> is requesting an http resource.
>>> 
>>> br
>>> Salvatore
>> 
>> 
>>