Re: I-D Action: draft-ietf-quic-version-aliasing-00.txt

Martin Duke <martin.h.duke@gmail.com> Tue, 07 April 2020 17:49 UTC

Return-Path: <martin.h.duke@gmail.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 8DE553A0B08 for <quic@ietfa.amsl.com>; Tue, 7 Apr 2020 10:49:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.597
X-Spam-Level:
X-Spam-Status: No, score=-1.597 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, GB_ABOUTYOU=0.5, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no 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 fE5Uhuqk61gb for <quic@ietfa.amsl.com>; Tue, 7 Apr 2020 10:49:37 -0700 (PDT)
Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) (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 5F1053A0B04 for <quic@ietf.org>; Tue, 7 Apr 2020 10:49:37 -0700 (PDT)
Received: by mail-io1-xd36.google.com with SMTP id u2so4276678iop.10 for <quic@ietf.org>; Tue, 07 Apr 2020 10:49:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2nNccA9KmMHhHf+LHN8/u3ExGk6JffWfZIEfViruTQo=; b=XYKlD3hLG9+sA+f3Whe7pQl0Y6e9+zICsPIVZ0z2sdAbHB493FWI+oIfPMb0ZsVzvo 62WwQDqhFqTJW1oIJAol+W/sMfH6Btz+i7/esJPKdGqq05MD1wUkcB5sh6u9Wfq+6BVs kbvh93Q9TpU49cGJq8Rlt73ISEtF94ktdg3rO6sHDMXy8MD0fqpwlxyOYhtugMU/i/7G yRmkYF5y6Hrt3cuUm2EWUvIxJlHWyXo1U/6MnyLWqcBfQ8AykZAOaiN8tt63Mx4lJuFN zl6Up4FUTkIU7TUEefeDKrlJiHxdprjtC7iSh7NJUON30wyWZPIkOfgZz8KvS2W03a3l jEEw==
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; bh=2nNccA9KmMHhHf+LHN8/u3ExGk6JffWfZIEfViruTQo=; b=P7le07PjdN9Npz5WHg8Ag2Jv2uL455ka3Q42dGKjrUUdpl6acqgTTcgM8O98CjRUz6 q1mgoCnxIq/Afo8u8VMzc72CFMpytJWQEeMcNIAXBQUK+D01bOv2YllxVLiDYPjXw3Ks P63lRcD76SSmn34FYJZRbUS/6v/Ilf3kwSLgTxquMbDgWQOXc8AmW80xsrg/pEwe9VnC iw1fUvmjSei+40wWPqtvpnoOnqy6f2bMY7y/P/qRJl4XG1/SUOGh6PsRCfqBceP6oDpN 66/5PSwSiQ6kh1I1h0NOCHb9Ab0uHV3gfGBTr3iIvn1U3VhF6R6eWdCVTddfbE028T68 0e+g==
X-Gm-Message-State: AGi0PuYvHOREUklDqXpVpnGbK5NdPRQVAYhWB/QYUtAaAcgz2FR1kVxm 00Jsge0iYd9k12Ga37IxDZiUQM3yr8Ys+qYa0taGT1JB
X-Google-Smtp-Source: APiQypI5LZ9xogDiFhUG/6Cyr3SGPJXCzfqXQrp/dGkMd/ePEV8Qi6ge3G2WLanUfbHwC6v12hyzQOiqyc+M3ddfWIs=
X-Received: by 2002:a02:bb81:: with SMTP id g1mr3252544jan.38.1586281776153; Tue, 07 Apr 2020 10:49:36 -0700 (PDT)
MIME-Version: 1.0
References: <158621802049.21764.15350192840287514712@ietfa.amsl.com> <47349901-93a5-4b98-a07d-b22e6fd76416@www.fastmail.com>
In-Reply-To: <47349901-93a5-4b98-a07d-b22e6fd76416@www.fastmail.com>
From: Martin Duke <martin.h.duke@gmail.com>
Date: Tue, 07 Apr 2020 10:49:24 -0700
Message-ID: <CAM4esxQJPZhSJ+Dffnwk4s-eO36oh6kssibnMuC+ptdwC4kaUw@mail.gmail.com>
Subject: Re: I-D Action: draft-ietf-quic-version-aliasing-00.txt
To: Martin Thomson <mt@lowentropy.net>
Cc: IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000c8076905a2b7018e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/IL2aTwDnhVHOZYGVPoxmyVfZDfY>
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: Tue, 07 Apr 2020 17:49:40 -0000

Thanks Martin,

Replies inline.

On Mon, Apr 6, 2020 at 5:34 PM Martin Thomson <mt@lowentropy.net> wrote:

> <snip>
>
> This document doesn't appear to address the case where a server has
> aliased X and now discovers that they want to deploy a version that uses
> that value.  Concretely, this allows you do alias version 2, but we might
> define a real version 2 at some point that the server wants to deploy.  I
> think that the basic design strongly discourages deployment of a version
> that might be covered by an alias that was previously advertised, unless
> you love trial decryption of maybe-Initial packets.  That means carving out
> space for the new version (and maybe its aliases) and not issuing aliases
> for those.  Then you have to wait for expiration of the aliases that cover
> the overlap.
>

I envision expiration times as being quite short, but I added some language
about this in the working draft. If a client gets a VN packet or TP that
later advertises that version, you should discard the aliased one.


>
> Your text on linkability really needs to treat an alias like resumption
> ticket or a path validation token.  That avoids a bunch of problems with
> replicating recommendations and the like.  It also opens a bunch of options
> with respect to the token.
>
> There's a version of this design that I particularly like that uses the
> token more.  If you have a token, then if you are prepared to read from
> that, the version field can contain almost anything.  You only need to
> ensure that you need to avoid deploying a version that doesn't have a token.
>

I wouldn't mind more specifics about your preference here, but the token is
a bit overloaded. The resumption token includes some IP address data that
we expressly don't want. The existing Retry token is actually important in
resolving a few security issues related to this proposal, as you can see in
the section on Retry.


>
>
> The mandates on using a RNG for the version and a cryptographic function
> for the salt are a little strong.  There is no inherent problem with
> randomly generating and remembering mappings.  And versions might be
> ignored entirely if you encode the real version into the token field as
> above.
>

This is a great suggestion and I have added it to the working draft.


>
> The Initial salt is 20 octets in this version of QUIC.  It might be a
> different length in the final version.  And it can be up to 64 octets
> without costing any more time in generating keys.  Maybe you don't need to
> be so precise.
>
>
I do need at least 16 octets because I've repurposed the salt for some
Retry mechanics. I agree that we *could* allow more flexibility here, but
unless we're prepared to offer some considerations for salt length I'd
rather keep it simple for now.

Martin