Re: Submitted new I-D: Cache Digests for HTTP/2

Martin Thomson <martin.thomson@gmail.com> Wed, 27 January 2016 01:27 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 85DF11AC3CA for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 26 Jan 2016 17:27:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.403
X-Spam-Level:
X-Spam-Status: No, score=-6.403 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, J_CHICKENPOX_37=0.6, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, 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 9dpwMPUeZYLG for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 26 Jan 2016 17:27:50 -0800 (PST)
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 3361D1AC3C6 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 26 Jan 2016 17:27:50 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1aOEqs-0004HU-Li for ietf-http-wg-dist@listhub.w3.org; Wed, 27 Jan 2016 01:24:54 +0000
Resent-Date: Wed, 27 Jan 2016 01:24:54 +0000
Resent-Message-Id: <E1aOEqs-0004HU-Li@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1aOEqo-0004GG-MF for ietf-http-wg@listhub.w3.org; Wed, 27 Jan 2016 01:24:50 +0000
Received: from mail-io0-f179.google.com ([209.85.223.179]) by lisa.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1aOEqn-0004lC-Cl for ietf-http-wg@w3.org; Wed, 27 Jan 2016 01:24:50 +0000
Received: by mail-io0-f179.google.com with SMTP id f81so3537096iof.0 for <ietf-http-wg@w3.org>; Tue, 26 Jan 2016 17:24:28 -0800 (PST)
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; bh=P7Yzh5DCWtdhNOlBuyFtF7mPPc2sy9Ppv5lSucFlZo4=; b=WlEHC+pce8LJfNJ885arixjgBZpLlto7SKfaAow8q+UdHP1Fwgg8tqzSnr0/g0Le/X OUs0x4JxVwR6jxNJRy2z1n50Ti2//Af6XxpJwyt5nANeb2xmB9Sf6T0GJsiBiB+M8Ncx YGLmZqHcRT6K13Gf9LajbbI1T/StIwYWWVynENFTnXzDi3sXmZ2IH1QlgaKrK5XqK08Q V0A3VYja289l08ugSqKpsmLZfwxF2SMXkFPbXvCW9IgkrwWw/5/R4+FyMO73pbsKV+1W yEga/4uRKkwjcq7pI2XhiJp1flmiqeqZGUEyQOMG+VwhxuU6fI0OG/P9id3oe5J+slvF zkpQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=P7Yzh5DCWtdhNOlBuyFtF7mPPc2sy9Ppv5lSucFlZo4=; b=iF5v+7J+ZGJPOib+gx0PJTY4k4CUAxpfxi7/ydXrKrRl8ZBFnpcqYG9Ob+23vzNKKt cVjtZv0WXPU6jiDEtSHPVIBAVzke1JF+k31eFW7dPt+4ofmt9Hl5Zv1F5PrbjhQunqNK mu+HzrEgsl15DgXE4PVJvHzWedjnXLGJu3zFfHeNYG5AHJq10nZ3Qbjb50LnRWf3vWFX mBJyXmzvfuV9ah7Q5xpnO0hEfby4w5dNZ7MknEuKpHM3ssEEYe8Mw8yGxjAwfK4Vl04l y8B1yXXHnIVGLiqmq21ZXWz9DDl+WeXu/HxyC4h9kWgJJOBi0Qd+kEM8ZCquYcNVuML+ nVHQ==
X-Gm-Message-State: AG10YOTAGkwAjvEbBEmgPGcptqW4/kWVrVbbHZQSo+PfhBUygggzILR8vYYVrguvRW15nxQLsDjaZ+/wP/y2xA==
MIME-Version: 1.0
X-Received: by 10.107.16.199 with SMTP id 68mr26356290ioq.100.1453857863129; Tue, 26 Jan 2016 17:24:23 -0800 (PST)
Received: by 10.36.149.130 with HTTP; Tue, 26 Jan 2016 17:24:22 -0800 (PST)
In-Reply-To: <CANatvzwbZAwWNYK-D3bvvcUY9fam7ML4ehZuQzU7GsSgs9BT7w@mail.gmail.com>
References: <CAAMqGzYUoCMxBxUEY9wfLOHZp7nrO4d1q5JZo=96pfEbVS1-ew@mail.gmail.com> <CANatvzw6NpbpA_56GbSiCH2yEQoAuaGtXneOvrogBfucqrC8Qw@mail.gmail.com> <CAKRe7JGUUAinAqM9yHnUp0gJm5qwq5xvMhEo+fMnffRW7Kmu7w@mail.gmail.com> <CANatvzxhCXKRFEVJDeJfdMVxP6r+jyOSCcHkY8VHiPNCSF+SwA@mail.gmail.com> <CABkgnnVdR0fi9QKHT=tZUzAzAYe+XxG-oEj=srZGX0TMEkHcuw@mail.gmail.com> <CANatvzwPmZXEpcjE+O2BORq19FgGNGYgs7D7t-t_1O0-x-75KA@mail.gmail.com> <CABkgnnUrbBzKRZZsRzAf93A1Gj3AZQAfNpnBQLRqXzQFnRNwwA@mail.gmail.com> <CABkgnnWkNynANyjGUkcZBTQjUsVDvDZYA+-zr9BD3+BK3xLNmQ@mail.gmail.com> <CANatvzxMGnodspx1sfCVOOjuLKBFM-ySFM-1A3yrw7nyMLyugw@mail.gmail.com> <CABkgnnUGBj5NZWhqEaSLe5Bj_htyJsk5pX=YAWeFj+prHZUhAA@mail.gmail.com> <CANatvzxOqFgrvExSRzYJKHboQT6kKdUg6XpaUCQC3yY2dnsJtg@mail.gmail.com> <CABkgnnXh3yd2C5F8Q22JePFtwb7P6mXUQGVzFRdVipJGDdA6cg@mail.gmail.com> <6D423053-CB64-408A-A119-3B4174221287@greenbytes.de> <569CBF3E.30509@gmx.de> <CANatvzw2JPmii3x9Wm4qH2v4XmDXLxjizmpDc7yodG12yR7_hw@mail.gmail.com> <CANatvzxrYpMpzSTi8KdoGjF0mQHcuvFDmpVPozXX40MgXBR-kw@mail.gmail.com> <FD8C9E08-DBD3-418B-AF3C-7762D72B2207@greenbytes.de> <CANatvzwbZAwWNYK-D3bvvcUY9fam7ML4ehZuQzU7GsSgs9BT7w@mail.gmail.com>
Date: Wed, 27 Jan 2016 12:24:22 +1100
Message-ID: <CABkgnnUqQKSxNqoQ3MzSB-WcRfis2eVScEEOzUCkDkde-QYJPw@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Kazuho Oku <kazuhooku@gmail.com>
Cc: Stefan Eissing <stefan.eissing@greenbytes.de>, Julian Reschke <julian.reschke@gmx.de>, Ilya Grigorik <ilya@igvita.com>, Amos Jeffries <squid3@treenet.co.nz>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.223.179; envelope-from=martin.thomson@gmail.com; helo=mail-io0-f179.google.com
X-W3C-Hub-Spam-Status: No, score=-7.9
X-W3C-Hub-Spam-Report: AWL=1.835, 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, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1aOEqn-0004lC-Cl 2963efe53e69d732f5fe775f5b9755f7
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Submitted new I-D: Cache Digests for HTTP/2
Archived-At: <http://www.w3.org/mid/CABkgnnUqQKSxNqoQ3MzSB-WcRfis2eVScEEOzUCkDkde-QYJPw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/31004
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>

On 27 January 2016 at 12:11, Kazuho Oku <kazuhooku@gmail.com> wrote:
> Note that the former is not named `domain`.  Please refer to
> https://lists.w3.org/Archives/Public/ietf-http-wg/2016JanMar/0132.html
> for the reason behind.


I just re-read that and I think that you have a hole here with this:

> * if a non-wildcard `host` attribute is specified, the scope is the
> host.  The value MUST be equal to the host part of the :authority
> pseudo header

This prevents someone from connecting to an HTTP/2 server that
supports multiple names and making assertions about multiple of those
names.  For instance, this seems perfectly reasonable to send to a
server that has a cert for example.com and foo.example...

GET / HTTP/1.1
Host: example.com
Cache-Digest: CgRSlw, soOIs;host=foo.example

After all, you want to suppress pushes from foo.example.

(Note that the origin frame might help advise what origins you want to
cover here.)