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

Martin Thomson <martin.thomson@gmail.com> Wed, 05 October 2016 14:12 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 70D8F129739 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 5 Oct 2016 07:12:28 -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 fN7AZC-85ass for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 5 Oct 2016 07:12:24 -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 3E485129727 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 5 Oct 2016 07:12:24 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1brmrf-0004ic-KC for ietf-http-wg-dist@listhub.w3.org; Wed, 05 Oct 2016 14:08:07 +0000
Resent-Date: Wed, 05 Oct 2016 14:08:07 +0000
Resent-Message-Id: <E1brmrf-0004ic-KC@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 1brmrc-0004hl-DT for ietf-http-wg@listhub.w3.org; Wed, 05 Oct 2016 14:08:04 +0000
Received: from mail-qk0-f173.google.com ([209.85.220.173]) by maggie.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1brmrG-00043V-DX for ietf-http-wg@w3.org; Wed, 05 Oct 2016 14:08:02 +0000
Received: by mail-qk0-f173.google.com with SMTP id j129so211640153qkd.1 for <ietf-http-wg@w3.org>; Wed, 05 Oct 2016 07:07:22 -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; bh=JKt2Wammn8CfZ/eX1F5vriJJ9sJ9xmdOLi0UVDLxO6U=; b=dn9XkgBihj7Er9gtA82FPagUEnA39fKjnJTC77rAN64uD8CguMhzRsZHQRJx7E8Ki3 cRCXNTH1fNsOcAM0qHW8c+TDvILne5704LuioWyxA5Iy921hgpFeJKWGO/rrmKwQuens v9DZTsZySeort8+NCHKssZOpSWXY4KDi8Ld+dVX2WfEtky+7y+5PnQRdyvjFClnwQUyq nh4X3faacDhXWvl3RyohVCd96YIGmOHG4SRyE4+AxWBHLxs1YpXjEFarEso71io4RcSI D/WVjpMGmkG1dmooh3j6oy3wTI7B1MTUfpf3knAsw52IQAziPUoF6DfjUgh3FZ6d89ED dLhA==
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; bh=JKt2Wammn8CfZ/eX1F5vriJJ9sJ9xmdOLi0UVDLxO6U=; b=B+oNBx00ej7g2yR9LeFOIFLlAO0ghURtGO/bMQ2bdHy3Xc9qgyQfZRvGIaH+t/fmbw HswzF4nM0vzxCpphFuXLEOExiQSX5TcjuxO24AKw21JZe0KIJZhkXRyn6bDFy+CgAlfF DR59AXPpNpArQCBd+CjUrmD2haHcDsZX6UP6cFwvzC67stajewvKWlGx+dpmdr9dxoUq 0kfsi+LVqv7JAkAH4GLnK6o/2UJCpHr0FSYimvnLgQEbCvsouDdP5NTyhKVUvdkXgeyb UuT0XRY5jdN5aSF0LHIDZwqQ8I+1j6yJlPTNjJSMW1VnsMowy5W/aE2lwftBugrUzN+p dO8Q==
X-Gm-Message-State: AA6/9RkGIFvgySNzq6Bjv9T0hAUlCgy2D7CFTKWfE+bkREeNEw0zrkTGYadgtLWp2YE54PnA1UHJOZgkHVYr4w==
X-Received: by 10.55.155.193 with SMTP id d184mr9553239qke.81.1475676436556; Wed, 05 Oct 2016 07:07:16 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.140.22.146 with HTTP; Wed, 5 Oct 2016 07:07:16 -0700 (PDT)
In-Reply-To: <201610051336.u95DaAW2020152@shell.siilo.fmi.fi>
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>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Thu, 6 Oct 2016 01:07:16 +1100
Message-ID: <CABkgnnVaBVE8mUxuGXYe-WeM_OkiNHcA=egnb1-nOxtdujShfw@mail.gmail.com>
To: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
Cc: Patrick McManus <mcmanus@ducksong.com>, Kari Hurtta <khurtta@welho.com>, Mike Bishop <Michael.Bishop@microsoft.com>, HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.220.173; envelope-from=martin.thomson@gmail.com; helo=mail-qk0-f173.google.com
X-W3C-Hub-Spam-Status: No, score=-6.4
X-W3C-Hub-Spam-Report: AWL=0.333, 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 1brmrG-00043V-DX 99621f7ff66ead0959e3c869d95fd19a
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/CABkgnnVaBVE8mUxuGXYe-WeM_OkiNHcA=egnb1-nOxtdujShfw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32486
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 6 October 2016 at 00:36, Kari Hurtta <hurtta-ietf@elmme-mailer.org> wrote:
>> >> "tls-ports"  should perhaps now be "mixed-scheme-listeners"
>> >> giving [ "alternative-server:port" ].
>
> because should we really say that particular alternative server / port
> combination for given origin supports http: -scheme over TLS.

I interpreted that as:

  { "http://example.com": {
      "mixed-scheme-listeners": [ "example.net:767", "example.com:3324" ]
    },
    "http://other.example.com" { ... }
  }

This is saying that "http://example.com" is served (in addition to the
cleartext version) on those alternatives.

Whereas I was suggesting just taking the keys from the top-level object:

  [ "https://example.com", "http://other.example.com" ]

But I realize that this information is better obtained more simply
because you need to make a request for a .wk resource on every origin
you are interested in:

  GET http://example.com/.well-known/http-opportunistic HTTP/1.1
  Host: example.com

  200 OK
  Content-Length: 0
  Cache-Control: max-age=123

> Particular alternative server / port may be reverse proxy
> where behind of it there is several origins on different servers.
>
> But also for particular origin there may be several
> alternative servers which are not equal.

Not sure that I follow: are you suggesting that the .wk resource would
advertise the other origins, or that we need some sort of additional
protection?