Return-Path: <bounces+848413-a050-quic-issues=ietf.org@sgmail.github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1])
 by ietfa.amsl.com (Postfix) with ESMTP id E205B120019
 for <quic-issues@ietfa.amsl.com>; Tue, 28 Jan 2020 03:49:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.383
X-Spam-Level: 
X-Spam-Status: No, score=-1.383 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_IMAGE_ONLY_24=1.618,
 HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
 autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key)
 header.d=github.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 aNGCaphSalvH for <quic-issues@ietfa.amsl.com>;
 Tue, 28 Jan 2020 03:49:44 -0800 (PST)
Received: from o5.sgmail.github.com (o5.sgmail.github.com [192.254.113.10])
 (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 72154120013
 for <quic-issues@ietf.org>; Tue, 28 Jan 2020 03:49:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; 
 h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe;
 s=s20150108; bh=IKKxxuRyeRKdGfDHCR4KGRO5xwDWGYBCR4EQxTnP2U0=; b=
 BslQdFUOvsI5vwhJhRVdQ3zs9GcTRnwWOjifdHqChFX9fWx3gyc8LyeleL1VEd2b
 F1uRY1Lao3upsxrPs8N+wUS9R7jG4yDykpwWHOsPoaWY59a+FxzXqQrkwr/j8Tuw
 Oj27RHjEiHJ1f20RzPdcQPr1b5MwQgbfz5lA6bUEUyk=
Received: by filter2128p1mdw1.sendgrid.net with SMTP id
 filter2128p1mdw1-2017-5E30103D-1
 2020-01-28 10:43:09.02783617 +0000 UTC m=+375121.845707548
Received: from out-22.smtp.github.com (out-22.smtp.github.com [192.30.252.205])
 by ismtpd0010p1iad1.sendgrid.net (SG) with ESMTP id f4Wut_JlSmmpHGlomBpSRA
 for <quic-issues@ietf.org>; Tue, 28 Jan 2020 10:43:08.944 +0000 (UTC)
Date: Tue, 28 Jan 2020 10:43:09 +0000 (UTC)
From: Martin Thomson <notifications@github.com>
Reply-To: quicwg/base-drafts
 <reply+AFTOJK5YNPZLMTGI2QCPNO54HVBLPEVBNHHCCIN5SE@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/issues/3396/579185046@github.com>
In-Reply-To: <quicwg/base-drafts/issues/3396@github.com>
References: <quicwg/base-drafts/issues/3396@github.com>
Subject: Re: [quicwg/base-drafts] Server cannot proceed after invalid Retry
 token (#3396)
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="--==_mimepart_5e3010376afd7_791a3f823fccd96c991fe";
 charset=UTF-8
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: martinthomson
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
X-SG-EID: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak1EqYBcUNm+0dl4+MCdzSO/l6xydPGomZ5edc
 GsnOibQb94V2e8vVjMIvwkJmygDoN1zF0DICFZ8GHZ7BV4BkaZvvbFR8m050pDaa8JeCElcL7Lprxv
 ZyUGVKJEevBTqwBC0SuWuyTlhUCwQHJTHtY+Yi9HSpWcwUAFoaYhQXtxm6oZHz0VkkLY4WaA6WxCgv
 w=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/6UWY1WH7Va7WOA5QpIdaT0_3bB0>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.29
List-Id: Notification list for GitHub issues related to the QUIC WG
 <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>,
 <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>,
 <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 28 Jan 2020 11:49:46 -0000

----==_mimepart_5e3010376afd7_791a3f823fccd96c991fe
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

The problem here is that something that is identifiable as a Retry token as distinct from a NEW_TOKEN token will ultimately not be usable.  There's a bit of hedging necessary though as junk that appears to be a Retry token is still ultimately just junk.

To be concrete, let's say that you generate Retry tokens that start with "RETRY!!!" and NEW_TOKEN tokens start with "~~~NEW_TOKEN" The difference between those two is such that it would be unlikely for corruption to cause one to be mistaken for the other, and you have a way to distinguish the two even when all the subsequent bits can't be interpreted after you lose keys or something like that.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/quicwg/base-drafts/issues/3396#issuecomment-579185046
----==_mimepart_5e3010376afd7_791a3f823fccd96c991fe
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

<p>The problem here is that something that is identifiable as a Retry token as distinct from a NEW_TOKEN token will ultimately not be usable.  There's a bit of hedging necessary though as junk that appears to be a Retry token is still ultimately just junk.</p>
<p>To be concrete, let's say that you generate Retry tokens that start with "RETRY!!!" and NEW_TOKEN tokens start with "~~~NEW_TOKEN" The difference between those two is such that it would be unlikely for corruption to cause one to be mistaken for the other, and you have a way to distinguish the two even when all the subsequent bits can't be interpreted after you lose keys or something like that.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/quicwg/base-drafts/issues/3396?email_source=notifications&amp;email_token=AFTOJK5YAE364CS52G7WCC3RAAD3PA5CNFSM4KMIZS3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKC2TFQ#issuecomment-579185046">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AFTOJK7MH7AG3KGTDJFPYATRAAD3PANCNFSM4KMIZS3A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AFTOJK6QSBPPG3SEGDA6OGDRAAD3PA5CNFSM4KMIZS3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKC2TFQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/quicwg/base-drafts/issues/3396?email_source=notifications\u0026email_token=AFTOJK5YAE364CS52G7WCC3RAAD3PA5CNFSM4KMIZS3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKC2TFQ#issuecomment-579185046",
"url": "https://github.com/quicwg/base-drafts/issues/3396?email_source=notifications\u0026email_token=AFTOJK5YAE364CS52G7WCC3RAAD3PA5CNFSM4KMIZS3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKC2TFQ#issuecomment-579185046",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>
----==_mimepart_5e3010376afd7_791a3f823fccd96c991fe--

