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 12:48 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 E07111296D8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 5 Oct 2016 05:48:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.516
X-Spam-Level:
X-Spam-Status: No, score=-9.516 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-2.996, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, WEIRD_PORT=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 NHwXCel4ce0A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 5 Oct 2016 05:47:59 -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 8156C1296D3 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 5 Oct 2016 05:47:59 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1brlY1-0002eJ-Li for ietf-http-wg-dist@listhub.w3.org; Wed, 05 Oct 2016 12:43:45 +0000
Resent-Date: Wed, 05 Oct 2016 12:43:45 +0000
Resent-Message-Id: <E1brlY1-0002eJ-Li@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 1brlXy-0002d1-8w for ietf-http-wg@listhub.w3.org; Wed, 05 Oct 2016 12:43:42 +0000
Received: from mail-qk0-f177.google.com ([209.85.220.177]) by maggie.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1brlXw-0003FT-5p for ietf-http-wg@w3.org; Wed, 05 Oct 2016 12:43:41 +0000
Received: by mail-qk0-f177.google.com with SMTP id o68so76443833qkf.3 for <ietf-http-wg@w3.org>; Wed, 05 Oct 2016 05:43:19 -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=G4Uf1HrAI/mW63giOamQt/n/OmBH0AHKxgELINshL04=; b=B8excEFyJfDxy4Ir0gnUyw89/rYmeGF92uiHSTlIZ1e65upjs6fZ7/mXcACcHclmud TIy9bwZ83R4PQjiAW6jxgnkfBrM9iv7+/VOYyCYziTcE+xpuDW9BgrF1cScqxY3pwkf3 JiWWRfaDCAIBTIUGwWUoGQnbKGhgshIq8sUsiUS0lK8kWiPEwCM+9NizkxWJQ+AFENj1 KCl/SVcufGR/S2DUJjtaZFY5o/b6GYp4/ebSxIFNk1qIdB9f8ruKppwDjFVcQBpUeAT9 GyL73CzP+LqYcW/yZuodJDR3VS9oEElHWGOGzcavjID93zABU3gHYnouLfOvrPxcgtPB hvug==
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=G4Uf1HrAI/mW63giOamQt/n/OmBH0AHKxgELINshL04=; b=XfPb7/gOYGtykSlfJ6cRLgijkKj5Ktnt5jgJ7/ny/rzOfkqyYvOHxrtjYSaBD265Q2 8WTX/2I6RKZetoW5iKpjKjMnONkw9vVufSfJKk83wWR+dBZ6YooVG7soPnAkO4YzhPZx Ftkj3LoLAnfdziR7z6EQzT8DZgadWzoPau0Gq5h1kHwxcMTCM6nVWw/lwO5ZjG4cWiv8 mIdQPCvKEIJMo9gtAHurXioFPg+CWWkYCIVzha0RjRrB8bu1rRzAYyc0cSEmWKKkTJjE D2n9IWGrEh/qlH2uTbSq7lriNew3Ed4ml8U6lC9o4XlaBru3S+b+RwQRGu6lUKYcT4h2 fgYg==
X-Gm-Message-State: AA6/9RkAerIfOIO0kIg2nooQQO0wHvjxRsMuF9wG1NKjisQKKY3scROnQzk01ClySLr3b0oGOz4nqAZ0i0ApLQ==
X-Received: by 10.55.155.193 with SMTP id d184mr9186395qke.81.1475671394113; Wed, 05 Oct 2016 05:43:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.140.22.146 with HTTP; Wed, 5 Oct 2016 05:43:13 -0700 (PDT)
In-Reply-To: <CAOdDvNpRN_trGi23BpqUxmaLoLvom9+Yiew0GkNkhgwvqw4Bew@mail.gmail.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>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Wed, 05 Oct 2016 23:43:13 +1100
Message-ID: <CABkgnnVKeqnyqhgL=jx1WqtcByqHes25XDJ684J+rNwvQt+znQ@mail.gmail.com>
To: Patrick McManus <mcmanus@ducksong.com>
Cc: Kari Hurtta <khurtta@welho.com>, Mike Bishop <Michael.Bishop@microsoft.com>, Kari hurtta <hurtta-ietf@elmme-mailer.org>, 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.177; envelope-from=martin.thomson@gmail.com; helo=mail-qk0-f177.google.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-0.268, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1, WEIRD_PORT=0.001
X-W3C-Scan-Sig: maggie.w3.org 1brlXw-0003FT-5p dc46f6f6036c259f808f918d229b13eb
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/CABkgnnVKeqnyqhgL=jx1WqtcByqHes25XDJ684J+rNwvQt+znQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32483
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>

And now that I read this thread, I find that the point about origins
over connections is pretty convincing.  I should read all before
committing to mistakes :)

However, perhaps there is some simplification to be salvaged.  I think
that Mike's observation suggests that we can remove "tls-ports".  Once
the TLS-enabled port acknowledges that it understand that it can
receive requests for http://<foo> then maybe that's enough (in
addition to it having a valid certificate, that is).

And, while I'm on the topic, "lifetime" is a bit jarring now that we
don't have a commitment.  To that end, a simpler formulation suggests
itself:

[ "http://example.com", "http://example.com:5602" ]

That should make Mark happy about not having to reconcile "lifetime"
with the cache freshness lifetime.

On 5 October 2016 at 19:53, Patrick McManus <mcmanus@ducksong.com> wrote:
> I think I agree with Kari - this is per origin and not per connection..
> having implemented the .wk thing I found it pretty workable and the server
> side folks liked that this could be done with simply configuration to
> reflect origin policy via headers and .wk rather than a protocol extension.
>
> On Wed, Oct 5, 2016 at 6:51 AM, Kari Hurtta <hurtta-ietf@elmme-mailer.org>
> wrote:
>>
>> Mike Bishop <Michael.Bishop@microsoft.com>: (Tue Oct  4 20:38:45 2016)
>>
>> > Taking a step back, what is the list of ports actually buying us now?
>> > The port can be obtained by the client from the Alt-Svc header.  The fact
>> > that the port is legitimate and not hijacked is verified by finding that it
>> > has a certificate.  What we're actually confirming is that the origin
>> > supports mixed schemes.  The lifetime is already present in the Alt-Svc
>> > advertisement, and I haven't heard a compelling reason to have a separate
>> > lifetime.  Should we just define SETTINGS_MIXED_SCHEME_PERMITTED and call it
>> > a day?
>>
>> Hmm.
>>
>> SETTINGS_MIXED_SCHEME_PERMITTED is per connection. I assume that HTTP/2
>> server sends it on SETTINGS frame to HTTP/2 client (similar than what
>> I contemplated for SETTINGS_WEBSOCKET_CAPABLE at
>> https://lists.w3.org/Archives/Public/ietf-http-wg/2016OctDec/0033.html )
>>
>> http-opportunistic response tells here that given port for that
>> origin handles http -scheme when sent via TLS.
>>
>> connection apply probably for several origins. TLS connection
>> may be terminated by reverse proxy. And different origins
>> are served by different processes or servers behind of
>> reverse proxy.
>>
>> I guess that SETTINGS_MIXED_SCHEME_PERMITTED is too wide.
>>
>> "tls-ports"  should perhaps now be "mixed-scheme-listeners"
>> giving [ "alternative-server:port" ].
>>
>> / Kari Hurtta
>>
>>
>