Re: SETTINGS_MIXED_SCHEME_PERMITTED | Re: I-D Action: draft-ietf-httpbis-http2-encryption-07.txt

Martin Thomson <martin.thomson@gmail.com> Fri, 07 October 2016 00:43 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 BD5631294A9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 6 Oct 2016 17:43:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.017
X-Spam-Level:
X-Spam-Status: No, score=-10.017 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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=-2.996, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 JFdcFJesa59p for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 6 Oct 2016 17:43:31 -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 58D8612947F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 6 Oct 2016 17:43:31 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bsJCD-00021T-D8 for ietf-http-wg-dist@listhub.w3.org; Fri, 07 Oct 2016 00:39:29 +0000
Resent-Date: Fri, 07 Oct 2016 00:39:29 +0000
Resent-Message-Id: <E1bsJCD-00021T-D8@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 <martin.thomson@gmail.com>) id 1bsJC9-00020L-IN for ietf-http-wg@listhub.w3.org; Fri, 07 Oct 2016 00:39:25 +0000
Received: from mail-qt0-f179.google.com ([209.85.216.179]) by maggie.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1bsJC4-0001dj-Ns for ietf-http-wg@w3.org; Fri, 07 Oct 2016 00:39:24 +0000
Received: by mail-qt0-f179.google.com with SMTP id f6so15278748qtd.2 for <ietf-http-wg@w3.org>; Thu, 06 Oct 2016 17:39:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=qlP7LPW1NuKcFM2VGH9KBr2iUPAFa0Cz6+15zGXHM+4=; b=FQWv+xyTviKpbykynQzfO8dBmvI9cfn7hbv0BamGBWeuY2ryQQKFuyKDuQawqn8grk oVlK2TNUzc9TuOnQl7jTabPNKZIJ0RlEj4dtnj08MYtMcs8Nj9ThZDEDmVTQoiIOMkKn g5gXkCqlSPfVuZuG/hhZWSmjW6CxmyoojwNPOAOQiRLNuJgYGO4QNpH+5Z9IisxWQulC 5gF2NBCyrlqHYh35x7CzuRGLdDuRiSNXSnKcXd3wEyWPHmOGxdev36lUAh7ElyEHPDgR xjVp+rCYB6KXSZVSh+EDeWC31PLxLAfU6Aqy5Jbb33FdSFBi7CSCAmuUFPct1McRFaJZ 01PQ==
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:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=qlP7LPW1NuKcFM2VGH9KBr2iUPAFa0Cz6+15zGXHM+4=; b=YnjvuKoitNzXbv2GejgTL8Fo6SUAM1cmFBcPybCC007t28jWqm1cWl7CNbAB7f4hJH E0ommgv2BnvQb0RTc4K4ifOFSvvw6AuVKrXlL0Bx05/QXVX3elqnKTiUfURQwF8luOvU 2lMbxTEwdrHkMqztDNJBhUaoEkxSFy0DidXSpFzlEi1LDFVu1iRy+yE82MAqwkSPl05c ZtjnRucHJ5lHyZcQmSUcj56kk7j7Pt3GP/hIAzat8Oj3dpmtoqU03wE5GmT0u7YuVkAF Z6QqT55MxiSDelW1z4kfXbN0TXL5cyGRlca2xVPT7oOCUsw1OgiiDomQd8bPGoFGEt45 u2nQ==
X-Gm-Message-State: AA6/9Rk51qAkYfE1WUneCBNIClDu3D84cbrba/jnuz89v5KKpCJ9y8HrE/hP77Ih5FdXdvcApHO87gPPtIMACg==
X-Received: by 10.200.54.144 with SMTP id a16mr16328658qtc.126.1475800734354; Thu, 06 Oct 2016 17:38:54 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.140.85.7 with HTTP; Thu, 6 Oct 2016 17:38:53 -0700 (PDT)
In-Reply-To: <BN6PR03MB27081C5CF95FB443BB4C155B87C70@BN6PR03MB2708.namprd03.prod.outlook.com>
References: <20161004160321.DFB4C111E5@welho-filter1.welho.com> <BN6PR03MB27082C2CF4DC3F8F82354FDE87C50@BN6PR03MB2708.namprd03.prod.outlook.com> <201610050451.u954pomK003643@shell.siilo.fmi.fi> <CAOdDvNpRN_trGi23BpqUxmaLoLvom9+Yiew0GkNkhgwvqw4Bew@mail.gmail.com> <CABkgnnVKeqnyqhgL=jx1WqtcByqHes25XDJ684J+rNwvQt+znQ@mail.gmail.com> <201610051336.u95DaAW2020152@shell.siilo.fmi.fi> <CABkgnnVaBVE8mUxuGXYe-WeM_OkiNHcA=egnb1-nOxtdujShfw@mail.gmail.com> <201610051616.u95GGWcI031833@shell.siilo.fmi.fi> <BN6PR03MB2708B42C6964AA22AF8FFDC487C40@BN6PR03MB2708.namprd03.prod.outlook.com> <CABkgnnVJ7VRBH4VeGODkSUXdW9XHs8AjB_M0mm8Kt=nv3djvEg@mail.gmail.com> <BN6PR03MB27081C5CF95FB443BB4C155B87C70@BN6PR03MB2708.namprd03.prod.outlook.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 07 Oct 2016 11:38:53 +1100
Message-ID: <CABkgnnW1apAyVqxPMi+_i-WH07Pe13JZ+eNNbUpGvFOyHpq7HQ@mail.gmail.com>
To: Mike Bishop <Michael.Bishop@microsoft.com>
Cc: Kari Hurtta <hurtta-ietf@elmme-mailer.org>, Patrick McManus <mcmanus@ducksong.com>, HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.216.179; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f179.google.com
X-W3C-Hub-Spam-Status: No, score=-6.4
X-W3C-Hub-Spam-Report: AWL=0.332, 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_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1bsJC4-0001dj-Ns c3c512f12e819c5dc847dc5e8b8c22d7
X-Original-To: ietf-http-wg@w3.org
Subject: Re: SETTINGS_MIXED_SCHEME_PERMITTED | Re: I-D Action: draft-ietf-httpbis-http2-encryption-07.txt
Archived-At: <http://www.w3.org/mid/CABkgnnW1apAyVqxPMi+_i-WH07Pe13JZ+eNNbUpGvFOyHpq7HQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32508
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 7 October 2016 at 05:12, Mike Bishop <Michael.Bishop@microsoft.com> wrote:
> Okay, so we are basically trying to backfill a possible administrative mistake by verifying that the server processes scheme as part of origin.  So an administrator MUST BUT WE KNOW YOU WON'T only put this resource in place if their server is properly configured to handle a scheme inconsistent with the port.  After they already have to opt in by sending the Alt-Svc header on the origin in the first place.  I'm lacking confidence that this check actually assures anything except that the administrator wants it to work, and we already know that from the Alt-Svc header.

There's one very important difference: the .well-known response is
authenticated.  An attacker can forge an Alt-Svc header.

And in any case, if the administrator lies, they are at least taking
responsibility for the error, that's important too.

The MUST NOT exist for the https:// variant is a neat trick, and it
would increase confidence, but I don't think that it proves anything
other than the fact that THAT specific resource is handled correctly
(as you know, much of this can hinge not on the generic code in the
server, but on code specific to a resource).