Re: should we specify HTTP/1.1 now that HTTP2 is out?

Patrick McManus <pmcmanus@mozilla.com> Wed, 04 October 2017 21:03 UTC

Return-Path: <pmcmanus@mozilla.com>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ACD3C133205 for <ietf@ietfa.amsl.com>; Wed, 4 Oct 2017 14:03:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.733
X-Spam-Level:
X-Spam-Status: No, score=-0.733 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
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 MehjdobbaueH for <ietf@ietfa.amsl.com>; Wed, 4 Oct 2017 14:03:24 -0700 (PDT)
Received: from linode64.ducksong.com (linode6only.ducksong.com [IPv6:2600:3c02::f03c:91ff:fe6e:e8da]) by ietfa.amsl.com (Postfix) with ESMTP id 3DF4613307B for <ietf@ietf.org>; Wed, 4 Oct 2017 14:03:24 -0700 (PDT)
Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) by linode64.ducksong.com (Postfix) with ESMTPSA id 9F7B13A0B4 for <ietf@ietf.org>; Wed, 4 Oct 2017 17:03:22 -0400 (EDT)
Received: by mail-lf0-f44.google.com with SMTP id 90so6637043lfs.13 for <ietf@ietf.org>; Wed, 04 Oct 2017 14:03:22 -0700 (PDT)
X-Gm-Message-State: AMCzsaWrFEXvUrpakkqp9EKCb9rP+RG+nFCp2w6nKkrdgrqoOb4WBVNh YaISKFze3ra7XsLiKGLZDQSMLrWvKOa9vg2dih0=
X-Google-Smtp-Source: AOwi7QAy8p3YiXjUxRWMHIMgG4PEKckEKWHtmLZcY+LC4g9bhS9wPkKxkrh3bC+Lt74oS07JAQGUrVWt4mzPP7MeRBI=
X-Received: by 10.46.84.74 with SMTP id y10mr5574561ljd.89.1507151001222; Wed, 04 Oct 2017 14:03:21 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.25.21.22 with HTTP; Wed, 4 Oct 2017 14:03:20 -0700 (PDT)
In-Reply-To: <20171004191523.GE10456@faui40p.informatik.uni-erlangen.de>
References: <561.1507067891@obiwan.sandelman.ca> <CAOdDvNpXss3-BOLNJPb_y8g7HFfEk2KLcqv7jyp7VAu6w51zgQ@mail.gmail.com> <20171004191523.GE10456@faui40p.informatik.uni-erlangen.de>
From: Patrick McManus <pmcmanus@mozilla.com>
Date: Wed, 04 Oct 2017 17:03:20 -0400
X-Gmail-Original-Message-ID: <CAOdDvNoFrLBRhBEJ_uRn6E_zxMX4YHXK-8FDs7ZHfSnJo3c7xA@mail.gmail.com>
Message-ID: <CAOdDvNoFrLBRhBEJ_uRn6E_zxMX4YHXK-8FDs7ZHfSnJo3c7xA@mail.gmail.com>
Subject: Re: should we specify HTTP/1.1 now that HTTP2 is out?
To: Toerless Eckert <tte@cs.fau.de>
Cc: Patrick McManus <pmcmanus@mozilla.com>, Michael Richardson <mcr+ietf@sandelman.ca>, IETF Discussion Mailing List <ietf@ietf.org>
Content-Type: multipart/alternative; boundary="f403045fb4ce0d05c8055abef0bb"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf/qvJls-vYD5kMiJkpWDMg2l_Ydnw>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Oct 2017 21:03:25 -0000

On Wed, Oct 4, 2017 at 3:15 PM, Toerless Eckert <tte@cs.fau.de> wrote:

> On Tue, Oct 03, 2017 at 08:43:37PM -0400, Patrick McManus wrote:
> ...
> > Given all of that, you're much better building a session mechanism at the
> > application level.. as ugly as cookies are, they are the typically way to
> > do that in a consistent manner in both h1 and h2. That's going to be way
> > more robust (and performant) in the long run.
>
> AFAIK, even secure cookies depend on trust in the server certificate for
> the
> TLS connection. And AFAIK common practices like cert pinning still have
> day 0 gaps. BRSKI effectively provides a method to gain trust into a
> server cert without those workarounds. Via the first HTTP transaction.
>

I'm not totally sure we're speaking the same language but I think you're
misunderstanding the suggestion. Use the trust you establish with your
first transaction to build the cypto-verifiable session key that subsequent
transactions can carry as proof they were serialized (i.e. an application
layer session identifier). It will be much more robust than trying to
figure out what the transport properties of what HTTP treats as independent
transactions are (both in future, and I suspect in some corner cases
present and past).