Re: [quicwg/base-drafts] Move stateless reset token to the end (#842)

ekr <notifications@github.com> Mon, 09 October 2017 03:17 UTC

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 011B81332D5 for <quic-issues@ietfa.amsl.com>; Sun, 8 Oct 2017 20:17:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.02
X-Spam-Level:
X-Spam-Status: No, score=-2.02 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham 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 NSALaeL1uOZn for <quic-issues@ietfa.amsl.com>; Sun, 8 Oct 2017 20:17:10 -0700 (PDT)
Received: from o11.sgmail.github.com (o11.sgmail.github.com [167.89.101.202]) (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 36C431332C8 for <quic-issues@ietf.org>; Sun, 8 Oct 2017 20:17:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; 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=a36aOvt0GHVDvXswfon3LFcLTdo=; b=NkT2PE67/CU+nPlw tOd184MqWztRTv8QL6DnicFWV3Wup0Vbat/OarJH/NxHTaW3scZBCuQ/J4zgO8Tr yARjtDlrO5Vr/Xvu+3LrbTxJLmR3QCayDGcBzpUN8CipS03iX6qHPJnWEbHtxdWk hBOlkv5PTCncO5AOiiYjX1ZVQ1U=
Received: by filter0929p1mdw1.sendgrid.net with SMTP id filter0929p1mdw1-15353-59DAEA35-7 2017-10-09 03:17:09.369088675 +0000 UTC
Received: from github-smtp2a-ext-cp1-prd.iad.github.net (github-smtp2a-ext-cp1-prd.iad.github.net [192.30.253.16]) by ismtpd0008p1iad1.sendgrid.net (SG) with ESMTP id FsjWYJY8S3-OjD8RPmU7PA for <quic-issues@ietf.org>; Mon, 09 Oct 2017 03:17:09.334 +0000 (UTC)
Date: Mon, 09 Oct 2017 03:17:09 +0000
From: ekr <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab2e43e8ad6e939c57c9e92fb4e129714be7b2cc3792cf0000000115f2ac3592a169ce0fb8c6e7@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/842/review/67883034@github.com>
In-Reply-To: <quicwg/base-drafts/pull/842@github.com>
References: <quicwg/base-drafts/pull/842@github.com>
Subject: Re: [quicwg/base-drafts] Move stateless reset token to the end (#842)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_59daea3532d68_7ea53ffa09f6cf2868949"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: ekr
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: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak0L58OA2PCnB4MgItsJY/EvyXWnDseMvYYNL0 V8U2bIV6jZmthsxNlkd/JXq4qL6bUUVE+BQS5KVBWf3SXJhUCei+Wg1KIaCky59kvbBmdI9qu/eUKX jPRTI2THWhllnxa9T2PYdcexRvyNoxcyyY0SK7SIsxBEmkEgbRwvehuvzA==
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/UsLGwokLcd8UuljjQyCtu3x6d1g>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.22
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: Mon, 09 Oct 2017 03:17:12 -0000

ekr approved this pull request.

This seems generally fine. comments below

>  A server copies the connection ID field from the packet that triggers the
 stateless reset.  A server omits the connection ID if explicitly configured to
 do so, or if the client packet did not include a connection ID.
 
+The Packet Number field is set to a randomized value.  This packet SHOULD use

Nit: I would say "The server SHOULD use..."

>  A server copies the connection ID field from the packet that triggers the
 stateless reset.  A server omits the connection ID if explicitly configured to
 do so, or if the client packet did not include a connection ID.
 
+The Packet Number field is set to a randomized value.  This packet SHOULD use
+the short header form with the shortest possible packet number encoding.  This

I think I would phrase this as "the packet type should be X, which represents the shortest packet encoding", because you aren't allowed to use long format under any conditions.

> @@ -1595,11 +1600,11 @@ CONNECTION_CLOSE or APPLICATION_CLOSE frame if it has sufficient state to do so.
 #### Detecting a Stateless Reset
 
 A client detects a potential stateless reset when a packet with a short header
-cannot be decrypted.  The client then performs a constant-time comparison of the
-16 octets that follow the Connection ID with the Stateless Reset Token provided
-by the server in its transport parameters.  If this comparison is successful,
-the connection MUST be terminated immediately.  Otherwise, the packet can be
-discarded.
+either cannot be decrypted or is marked as a potential duplicate.  The client
+then performs a constant-time comparison of the last 16 octets of the packet
+with the Stateless Reset Token provided by the server in its transport
+parameters.  If this comparison is successful, the connection MUST be terminated

Can you say what "terminated" means? Is it the same as having received CONNECTION_CLOSE?

-- 
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/pull/842#pullrequestreview-67883034