Re: Add application parameters to QUIC handshake and use it for H3 SETTINGS

Nick Harper <nharper@google.com> Fri, 27 September 2019 18:50 UTC

Return-Path: <nharper@google.com>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 277E91200E5 for <quic@ietfa.amsl.com>; Fri, 27 Sep 2019 11:50:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.5
X-Spam-Level:
X-Spam-Status: No, score=-17.5 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 pYuDLVPoajVr for <quic@ietfa.amsl.com>; Fri, 27 Sep 2019 11:50:24 -0700 (PDT)
Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0BA7B1200E3 for <quic@ietf.org>; Fri, 27 Sep 2019 11:50:24 -0700 (PDT)
Received: by mail-ot1-x333.google.com with SMTP id e11so3138618otl.5 for <quic@ietf.org>; Fri, 27 Sep 2019 11:50:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=UFVLU/wnqJx+7bj+lwFuz8b4HAcfhiL5nMHBqobegr0=; b=pre9iRV2fsnkQBUqmg6tkXaam8x3gSUoQ51djg/a6E70ggdCt1X8o0dhn74JYqqQcE IF3w6SASxVdNbYoIUwTf8pghqY5y0c8ATjzLf2EeP17hQGsEl+m7VEo+3XmVKxvRFbMV KQhvNtyzFMoaf+XLAWU0p3QZm/P9VTs3ifoWbPeXwSGnFegpb6bfHdKICB91Rb4jQQ0L 5nUX7WcjEJ9IZZe+ixKtgkd/g1O/m6duoYAlr+Ovc5pXvgrb+v1jwbPcyds+HW1SKk/f 6RidqhsPNElyOahXTz+hmU9MHRR+ErwYduo2Ny0dzW9uMQQdV79NHbd10YzcgQNkW6g5 2L+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=UFVLU/wnqJx+7bj+lwFuz8b4HAcfhiL5nMHBqobegr0=; b=BwO1jaL4qqr0wWBGeVE5ur40uMCDGA7Jd6rbd+J8LZ0meZi7wtRiBVdkoYuOdwM5PL 9UGlfpnhGtYHSqGm7k2BQA6VyuREO/RrF7prdTOlxjTpKbq30iV76PsIctPUJlcwqwhI ZKBxapAkEw/3xs3HBRoIMKITcHBpG1wTHhQ4ayTEPPbBtsvo4D8zd/3h+htUfqxmVEhO mvriYc+FMtOr+s9Jy77SkvdA469n7RXuMHHObwJ/XRzkSqPdSz5a+y3Jz2neI0P9bdeZ i6JHrDbINMy9mt3bL7KR1BAYRgYJhxZAG9lCjZAi+lUMn69j2CbR4hXfWWcI4K8giMBL sHJg==
X-Gm-Message-State: APjAAAWct6LJ813ekiEf7npKyt1+uJMJr7l5na74du2/TDvVMy0gW19/ PzaYzoYHzQPXIsEnN3/Qh8G70sHU8VeRYLrm3f05nA==
X-Google-Smtp-Source: APXvYqyoUsqNFr2KA0uk0IWwpEVCD3aJZCR+OiS1nDDzgVKbDF8wfFI6HshzegK0tVgjfSpL7nP85+cvVuF9HUN/7VI=
X-Received: by 2002:a05:6830:443:: with SMTP id d3mr4425552otc.93.1569610222813; Fri, 27 Sep 2019 11:50:22 -0700 (PDT)
MIME-Version: 1.0
References: <CACdeXiLEnvmqmxSgXbvAwEo0rgm-F59RL2sk0Ugu6PNuiDkfsw@mail.gmail.com> <c22f8e1d-887e-1bef-799f-47e4f3151966@huitema.net> <CACdeXiJhC+gOKKj49CTh7JfOPFsy0=6fG69Fy=GH=280+aGdOw@mail.gmail.com> <CAN1APdc-qTH-E+GMhvGbamYMJhfg7UYpoBWqAVEvrSy2hfzAkg@mail.gmail.com> <B99CB7BB-44A4-430C-B8D8-0F399C1BA2C1@fb.com>
In-Reply-To: <B99CB7BB-44A4-430C-B8D8-0F399C1BA2C1@fb.com>
From: Nick Harper <nharper@google.com>
Date: Fri, 27 Sep 2019 11:50:11 -0700
Message-ID: <CACdeXiLxW4joivvL_RVszTy3XwQb=HS21kdCU=nmv3NVzHvvyw@mail.gmail.com>
Subject: Re: Add application parameters to QUIC handshake and use it for H3 SETTINGS
To: Roberto Peon <fenix@fb.com>
Cc: Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com>, Christian Huitema <huitema@huitema.net>, IETF QUIC WG <quic@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/MisE6En7-N3nQ4r0qaayQ-BCJS0>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Sep 2019 18:50:26 -0000

On Fri, Sep 27, 2019 at 10:12 AM Roberto Peon <fenix@fb.com> wrote:
>
> My preference would be to have a facility that would allow an application to ensure that some limited/constant-size data is in every packet that it sends until it gets an ACK.
>
>
> This would allow control messages to be sent reliably, but avoid the HoL blocking issues.
> The real issue that, I believe, we’re trying to solve here is to ensure that the first packet has everything in it that is needed for interpretation/settings, etc.
>
That sounds like a good way to phrase the problem. I'd clarify it by
saying the problem we're trying to solve is to ensure that when we
send the first application data packet (i.e. 0- or 1-RTT encrypted) we
have everything negotiated that we need.

> I also believe that this could be of use in a number of other HoL-prevention things.
>
> It is my opinion that this is a QUICv2 feature, if it becomes something we’d want at all.
>
> -=R
>
>
>
> From: QUIC <quic-bounces@ietf.org> on behalf of Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com>
> Date: Thursday, September 26, 2019 at 10:55 PM
> To: Christian Huitema <huitema@huitema.net>, Nick Harper <nharper=40google.com@dmarc.ietf.org>
> Cc: IETF QUIC WG <quic@ietf.org>
> Subject: Re: Add application parameters to QUIC handshake and use it for H3 SETTINGS
>
> It seems to be possible to facilitate a man-in-the-middle attack on application parameters unless the application takes counter-measures which would complicate matters and likely introduce delays anyway.
>
A man in the middle wouldn't be able to tamper with application
parameters without causing the handshake to fail - this is the same as
transport parameters. (If they are tampered with, the two endpoints
will have different TLS handshake transcripts, thus derive different
keys and Finished messages.)

> I also wonder how this would work with 0-RTT since it cannot be assumed that application parameters would be remembered across connenctions.
>
Each application would still need to define how it handles 0-RTT
(likely to remember the server's previous application parameters, like
we currently do for transport parameters and H3 settings), with the
default assumption being that an application does not support 0-RTT.