RE: last call Feedback for Opportunistic Security for HTTP (Experimental)

Mike Bishop <Michael.Bishop@microsoft.com> Wed, 07 September 2016 18:36 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 4B1AC12B106 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 7 Sep 2016 11:36:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.528
X-Spam-Level:
X-Spam-Status: No, score=-8.528 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.508, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=microsoft.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 8jMtn6fuTG2X for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 7 Sep 2016 11:36:16 -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 E3774127077 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 7 Sep 2016 11:36:15 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bhhdJ-00041g-QZ for ietf-http-wg-dist@listhub.w3.org; Wed, 07 Sep 2016 18:31:37 +0000
Resent-Date: Wed, 07 Sep 2016 18:31:37 +0000
Resent-Message-Id: <E1bhhdJ-00041g-QZ@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 <Michael.Bishop@microsoft.com>) id 1bhhdA-0003yV-Dt for ietf-http-wg@listhub.w3.org; Wed, 07 Sep 2016 18:31:28 +0000
Received: from mail-dm3nam03on0093.outbound.protection.outlook.com ([104.47.41.93] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by maggie.w3.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from <Michael.Bishop@microsoft.com>) id 1bhhd2-00072O-2I for ietf-http-wg@w3.org; Wed, 07 Sep 2016 18:31:27 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Q+3tK6u5yTGYcM6jrG5eDNFMd2120qApt/SDdCF17rg=; b=BVC696+QfrhcSbVJScQQeZJ5LHQYAViFf5lhJ5WR/xnfcI348a5PeQqrQHNEpcbVUbkBE0CPBXuhTCY4p1bQ5yaF9g7G2IB726sMl6ooHDbAuqWQIDbQ6zvqrmVTmL8B1JM5ZiZfWq/cR3XfFcDSufSyKz7c/zrcgaFzNuxlox4=
Received: from BN6PR03MB2708.namprd03.prod.outlook.com (10.173.144.15) by BN6PR03MB2708.namprd03.prod.outlook.com (10.173.144.15) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.9; Wed, 7 Sep 2016 18:30:52 +0000
Received: from BN6PR03MB2708.namprd03.prod.outlook.com ([10.173.144.15]) by BN6PR03MB2708.namprd03.prod.outlook.com ([10.173.144.15]) with mapi id 15.01.0609.016; Wed, 7 Sep 2016 18:30:52 +0000
From: Mike Bishop <Michael.Bishop@microsoft.com>
To: Nick Sullivan <nicholas.sullivan@gmail.com>, Patrick McManus <pmcmanus@mozilla.com>, HTTP Working Group <ietf-http-wg@w3.org>
Thread-Topic: last call Feedback for Opportunistic Security for HTTP (Experimental)
Thread-Index: AQHSCS01uDX4Mfdp7kWqZzpaZAbUrqBuTdgAgAAHU6A=
Date: Wed, 7 Sep 2016 18:30:52 +0000
Message-ID: <BN6PR03MB2708F7FBB93D9FAD79F39DB187F80@BN6PR03MB2708.namprd03.prod.outlook.com>
References: <CAOdDvNpmNB2b56oJJHucv+q_MxSW4POdVMzXXyN2X6bZHJogiw@mail.gmail.com> <CAOjisRwt6WHTFNHfi6YjkcDe5AV=EYrpFGj=Lm4NnCass4kO7A@mail.gmail.com>
In-Reply-To: <CAOjisRwt6WHTFNHfi6YjkcDe5AV=EYrpFGj=Lm4NnCass4kO7A@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.Bishop@microsoft.com;
x-originating-ip: [2001:4898:80e8:c::6b2]
x-ms-office365-filtering-correlation-id: bf72a11a-f544-4ce4-4a74-08d3d74d1905
x-microsoft-exchange-diagnostics: 1; BN6PR03MB2708; 6:kcBLWDBv8Lcp1kVabl0tsbwmZUwNkaNXhQ5NIEGs/deb0uHBoLXvbHieulV3T5Y0u+qo3pMyUbRNk+NB6DmgIRu5yBSrYsdJJkE+njzGkCgchTdGgcRJhCB6fzB5SQ1+kJMNmr4tUglSSXF2pvWRDC3ra1N3WbguvfgpbGhiDKmXzJRqXZ44Nf3g+YGvbr49z3a8g2ovQ280cGgVakXVepzuXHbty0monA53qUYTIfrq9OOyNMBzkloJGGm5BwST4oRnzawIjTuWe654GrB7tYuUg8gotzMIt23FiWWY6TqaNm4shEDfBzAseGGlf7tADq6PBZdH2ehzzM0H5v4MCA==; 5:5dialFmjOwbYblmtUsIDyDZAnmesu1Zk2bIGonvIKqvKpUgP1XYr0XZvwERh8IKglop6yrQFKlPkv21h6eEqZe0hVyX0PC8DNlEHxvuvp1I/7UHOZPlsw/4s89uUwMW8xjxM7jHlRvOb4NJQU/fUyw==; 24:HAwTZQxbt9tKbicgODq9O+gugCkzM1mHwJSFgVvZ76omgGz7BF1Q6TvGY3lBdQvW3htBVxxlRIkDw0uL60nEgexc+cC/RLlzJU+1tuKkz/E=; 7:qZutszMYwwfiJgS7XtzO1qyCrYloFMg0SX2YHmMZJKAold7tWmsw5Aiqmyz5maeOQ0jmHZnO+QvEH+bOE6k+LtXqzmdr/Pv5uns4X5bJzNxGRET2vOdFkeOU2qhAMB4J/WgZKa6bd4RndHLGoknE8xT/WlAp1T0o+8QgMaEWwjVvvpJ4K7FlSRLo/A5+8F0bcqVJAhTl7LpuFCgF/kxvgsDNWM8ERsRgU8ZgiEiFyHNexJvgP3DA/bW/omRNEVkM
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN6PR03MB2708;
x-microsoft-antispam-prvs: <BN6PR03MB270815EC57672E591A7955FE87F80@BN6PR03MB2708.namprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863)(192374486261705)(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(61426038)(61427038); SRVR:BN6PR03MB2708; BCL:0; PCL:0; RULEID:; SRVR:BN6PR03MB2708;
x-forefront-prvs: 0058ABBBC7
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(377454003)(24454002)(189002)(57704003)(76104003)(53754006)(199003)(586003)(87936001)(19625215002)(122556002)(99286002)(105586002)(107886002)(19609705001)(54356999)(76176999)(16236675004)(86612001)(790700001)(6116002)(7906003)(50986999)(81166006)(15975445007)(106356001)(3660700001)(5005710100001)(102836003)(77096005)(8990500004)(5002640100001)(97736004)(189998001)(10400500002)(33656002)(106116001)(11100500001)(10290500002)(7110500001)(7696003)(19300405004)(19580395003)(19580405001)(5001770100001)(15650500001)(7846002)(8936002)(2420400007)(10090500001)(19617315012)(8676002)(86362001)(2906002)(76576001)(74316002)(9686002)(7736002)(3280700002)(15395725005)(2950100001)(101416001)(2900100001)(81156014)(5660300001)(10710500007)(92566002)(68736007)(3826002)(376185003); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR03MB2708; H:BN6PR03MB2708.namprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_BN6PR03MB2708F7FBB93D9FAD79F39DB187F80BN6PR03MB2708namp_"
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2016 18:30:52.0832 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2708
Received-SPF: pass client-ip=104.47.41.93; envelope-from=Michael.Bishop@microsoft.com; helo=NAM03-DM3-obe.outbound.protection.outlook.com
X-W3C-Hub-Spam-Status: No, score=-4.0
X-W3C-Hub-Spam-Report: AWL=-2.457, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_NW=0.5
X-W3C-Scan-Sig: maggie.w3.org 1bhhd2-00072O-2I dfa10fbcd4ff7b360aa1bbf762473459
X-Original-To: ietf-http-wg@w3.org
Subject: RE: last call Feedback for Opportunistic Security for HTTP (Experimental)
Archived-At: <http://www.w3.org/mid/BN6PR03MB2708F7FBB93D9FAD79F39DB187F80@BN6PR03MB2708.namprd03.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32384
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>

I support the theory behind the first change, but I must point out that there’s a substantial procedural hurdle it creates.  If you require strong certificate authentication on the alternate… this is Alt-Svc as already described in an existing Standards-track RFC.  What, precisely, is the experiment this document would describe at that point?  Why do we need an experimental RFC that effectively says “Hey, RFC 7838 – we really meant it!  Try it!”  .wk provides some interesting features we could experiment with, but you can’t require it simply because it’s not in the Alt-Svc spec.  If you’re not doing something different than Alt-Svc, anything you define is inherently an optional extension to it (or a new version).

The reason it’s currently “fuzzy” is actually very deliberate – RFC 7838 requires “reasonable assurances” that the destination is under the same control as the origin, but defines only one way to do that – certs.  Opp-Sec defines a second, the presence of .wk on both origin and alternate.  It’s optional in that you can use either – but if you don’t want to use certificate validation, then .wk is required as your only other (currently-defined) option.  I think the doc already says that, but if it’s not clear, we should make it clearer.

I agree that the commitment option in .wk conflicts with that goal a little bit – enhancing .wk to be a more generalized way to add parameters to Alt-Svc is interesting in itself.  If we have a collection of things we want to put in there, that warrant the new RFC on its own.  But you’re proposing eliminating both purposes that it currently serves, while retaining it, which is… interesting.  ☺

From: Nick Sullivan [mailto:nicholas.sullivan@gmail.com]
Sent: Wednesday, September 7, 2016 10:49 AM
To: Patrick McManus <pmcmanus@mozilla.com>om>; HTTP Working Group <ietf-http-wg@w3.org>
Subject: Re: last call Feedback for Opportunistic Security for HTTP (Experimental)

I support this change. Requiring certificate validation for opportunistic security makes it more robust and simplifies the logic around retroactively applying certificate validation to the .wk if the tls-commit is present.
Nick

On Wed, Sep 7, 2016 at 10:28 AM Patrick McManus <pmcmanus@mozilla.com<mailto:pmcmanus@mozilla.com>> wrote:
Hi all - Firefox Implementer Hat on here.
Nick @cloudflare and I have been working on implementing the httpwg.org/http-extensions/opsec.html<http://httpwg.org/http-extensions/opsec.html> - which is in wg last call on the experimental track.
Based on that experimental work, I'm going to recommend a few changes to the document before sending to IETF LC. I'll open issues on these too when I get a chance.
1] opportunistic security should require TLS authentication. Any other approach undermines the opt-in mechanism of .wk. As the PKI market has matured to allow truly free and automated certs certificate availability is no longer the chief barrier to https, and so opportunistic security should feel comfortable requiring real authentication. (THERE IS NO PROPOSED CHANGE IN THE SECURITY MODEL - HTTP:// IS STILL HTTP:// AND NOT GRANTED HTTPS:// STATUS AT ALL). The biggest barrier to https:// at this point seems to be mixed content.
2] /.well-known/http-opportunistic should always be required. The current doc is actually a little fuzzy on this, I think by accident. It refers to this as an "additional mechanism" in addition to authentication. But .wk does not really play the same role - it allows the server to opt-in to being an alternate for specific origins on specific ports. So if we're going to use it - we should always use it. (This has no bearing on https:// alt-svc, this is just about http:// as that is all this doc governs).
3] get rid of tls-commit (i.e. the latch to opp sec) as this plays very poorly with alt-svc. The notion of alt-svc has always been that it is a shortcut route (or dns name if your prefer) for the same content as supplied at the default origin. If for any reason you cannot get there, you can always go back to the default origin. All of the machinery around this (validating alternates, etc) can happen transparently and asynchronously in the background until they are ready to be used. A mechanism that requires a characteristic of a route (auth'd TLS) but not the route itself doesn't play well - its far too easy to brick your site for an extended period of time and really ceases to be opportunistic in any meaningful sense. If you're up to managing this, then you're probably up to the fight of running https:// and using HSTS which at least has the benefit of not bringing a whole second technology (alt-svc) into play.

Let me know what you think.
-Patrick