Re: H2 Implementation Debug State URI

"Poul-Henning Kamp" <phk@phk.freebsd.dk> Fri, 05 August 2016 08:09 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 (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2AFEE12D739 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 5 Aug 2016 01:09:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.208
X-Spam-Level:
X-Spam-Status: No, score=-8.208 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.287, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 wGpK8gSXQ6Hs for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 5 Aug 2016 01:09:14 -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 2773D12D1B3 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 5 Aug 2016 01:09:13 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bVa7W-0007jg-SU for ietf-http-wg-dist@listhub.w3.org; Fri, 05 Aug 2016 08:04:42 +0000
Resent-Date: Fri, 05 Aug 2016 08:04:42 +0000
Resent-Message-Id: <E1bVa7W-0007jg-SU@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 <phk@phk.freebsd.dk>) id 1bVa7P-0007iu-Fe for ietf-http-wg@listhub.w3.org; Fri, 05 Aug 2016 08:04:35 +0000
Received: from phk.freebsd.dk ([130.225.244.222]) by maggie.w3.org with esmtp (Exim 4.80) (envelope-from <phk@phk.freebsd.dk>) id 1bVa7M-00037n-10 for ietf-http-wg@w3.org; Fri, 05 Aug 2016 08:04:34 +0000
Received: from critter.freebsd.dk (unknown [192.168.55.3]) by phk.freebsd.dk (Postfix) with ESMTP id 412C5273F4; Fri, 5 Aug 2016 08:01:54 +0000 (UTC)
Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.15.2/8.15.2) with ESMTP id u7581q1r004315; Fri, 5 Aug 2016 08:01:52 GMT (envelope-from phk@phk.freebsd.dk)
To: Cory Benfield <cory@lukasa.co.uk>
cc: HTTP Working Group <ietf-http-wg@w3.org>
In-reply-to: <63CCB07A-0204-4CF7-B598-9497D7112021@lukasa.co.uk>
From: Poul-Henning Kamp <phk@phk.freebsd.dk>
References: <63CCB07A-0204-4CF7-B598-9497D7112021@lukasa.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <4313.1470384112.1@critter.freebsd.dk>
Content-Transfer-Encoding: quoted-printable
Date: Fri, 05 Aug 2016 08:01:52 +0000
Message-ID: <4314.1470384112@critter.freebsd.dk>
Received-SPF: none client-ip=130.225.244.222; envelope-from=phk@phk.freebsd.dk; helo=phk.freebsd.dk
X-W3C-Hub-Spam-Status: No, score=-6.0
X-W3C-Hub-Spam-Report: AWL=-0.824, BAYES_00=-1.9, RP_MATCHES_RCVD=-1.247, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1bVa7M-00037n-10 93dda0d5e3476e758d860bedc076029a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: H2 Implementation Debug State URI
Archived-At: <http://www.w3.org/mid/4314.1470384112@critter.freebsd.dk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32188
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>

--------
In message <63CCB07A-0204-4CF7-B598-9497D7112021@lukasa.co.uk>, Cory Benfield writes:

>Brad Fitzpatrick and I ended up prototyping a sample approach for 
>getting this information out of server implementations, based on issuing 
>a GET request to a specific well-known URI. This GET would return a JSON 
>document [...]

>https://http2.golang.org/.well-known/h2interop/state and 
>https://shootout.lukasa.co.uk/.well-known/h2interop/state.

>draft here: 
>https://tools.ietf.org/html/draft-benfield-http2-debug-state-00

As I said in the workshop, this has security considerations.

A lot of people tend to forget that client side proxies exist in H2.

They may not be popular, they may not be COTS (yet), but nanny-proxies
are not going to go away when they are mandated by law in an
increasing number of contexts.

For security reasons we cannot allow this well-known-URL to be
fetched through a shared client-side proxy.

Exporting the HPACK header table gives you the other clients
cookies etc, and even exporting the streams table would
probably leak more info than acceptable.

Short of a dedicated H2 frame to get this, I don't know of any
method which can enforce this being used only hop-to-hop, which
is the only way it can be used safely.

So at the very least this needs to be firmly turned off by default
and have a major warning posted on the enabling button.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.