Re: New Version Notification for draft-thomson-http-replay-00.txt

Kazuho Oku <kazuhooku@gmail.com> Wed, 26 July 2017 01:33 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 85FE51288B8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 25 Jul 2017 18:33:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.002
X-Spam-Level:
X-Spam-Status: No, score=-7.002 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham 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 4JK_HE4ntnQN for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 25 Jul 2017 18:33:31 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9FEDE124B0A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 25 Jul 2017 18:33:31 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1daBAA-0005sM-T3 for ietf-http-wg-dist@listhub.w3.org; Wed, 26 Jul 2017 01:30:58 +0000
Resent-Date: Wed, 26 Jul 2017 01:30:58 +0000
Resent-Message-Id: <E1daBAA-0005sM-T3@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <kazuhooku@gmail.com>) id 1daBA1-0005ra-Ev for ietf-http-wg@listhub.w3.org; Wed, 26 Jul 2017 01:30:49 +0000
Received: from mail-pg0-f50.google.com ([74.125.83.50]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <kazuhooku@gmail.com>) id 1daB9y-0007ne-EC for ietf-http-wg@w3.org; Wed, 26 Jul 2017 01:30:48 +0000
Received: by mail-pg0-f50.google.com with SMTP id 125so77258391pgi.3 for <ietf-http-wg@w3.org>; Tue, 25 Jul 2017 18:30:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HuLX2jTSz+/3KMDf8WXiZAoIKu79vR5bU8/BpHXFQsE=; b=siur1JMNZAWaqavomOmVZMpKQCucsBRW+0XwcQYjjNhvpj9HKXW9sSgJRGVasyzJBV kPG8JutuxqBTUxiveJ5UpWIcWzc+MF5P0Uqnpq363robvy1+OKkx364jcDmpgu9tLHLc CoL4q9mheKUb3pTJH7KSMbi3kZZ0hvHRfP0oEYBNsZTWJbnOoTbE7yZpPF/JtUxc+7G2 8i4/C75rMdJm5Gn6EbNpWTQjGLbsCiTWYwigiN2Cz4ATli+MiJ6OnCmAZR6K2s9eEsYg Vd900bfX+sTBo4mIwBIJnQKf66yZUsMyeZOlZ9x7dzV/g5dYOkV2UcLfjyRBaD2EyeeW SY0w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=HuLX2jTSz+/3KMDf8WXiZAoIKu79vR5bU8/BpHXFQsE=; b=PgberDL7wiav/ZnzqcXJQ1t+vyWR7FXt82MKA1q/wnSe2qUobqc4frJSra3MrWQI57 e+C2QIaEdSFCFY3UkjXOf7lg08cZA1Mawedh/8yZTI7DCM09qbWKxTq+3fDtmAb2i2rm sFyqj/mYMMa2avVceFzb8iVWHGOEdnyFg/SRHnr4jquyOzdBCy/s5LubZAyCwwji9U5l bstnedkxPU7EoqQqoMrYY2dqqSKravvF7L9bz7Td2GM+mosnvNhXXPYBWoCwLVUXe7LT 80s7baYib6tJdfIQJzDVrjBfkAUWRTWQUQdWk+1KYgl1oukEkj+NJzLN+ID2hD4blTIk mvYQ==
X-Gm-Message-State: AIVw110mMZbHmgTmDrpQ9NND0cig18v5B3iScIsSs3xnXykIL7dHnc8Q Kzw7hDhlLLQ/3RChqrbW+GBASy7Kpw==
X-Received: by 10.99.126.85 with SMTP id o21mr20863359pgn.262.1501032624856; Tue, 25 Jul 2017 18:30:24 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.100.151.207 with HTTP; Tue, 25 Jul 2017 18:30:23 -0700 (PDT)
In-Reply-To: <aecbb68c-6fb1-52af-032d-fbd4997776b1@akamai.com>
References: <149811425736.30341.16596521802774811431.idtracker@ietfa.amsl.com> <CABkgnnX6CUnMYU8OzLuq+XmeQuocpGm+zntEkJ71xb_Mh670eQ@mail.gmail.com> <MWHPR21MB014129FFB934EB1275A0639387DB0@MWHPR21MB0141.namprd21.prod.outlook.com> <MWHPR15MB14559FC79A1208E87B7714DDB6A60@MWHPR15MB1455.namprd15.prod.outlook.com> <CANatvzxX9wQKqOQZ81O45psWAR7+eg+2cP9i3qQ3XoOxbf=BPg@mail.gmail.com> <MWHPR15MB145573BAA3E2821EDAE3B67BB6A60@MWHPR15MB1455.namprd15.prod.outlook.com> <20170721162620.w4pux4q7h3ebn3kt@LK-Perkele-VII> <MWHPR15MB1455B7B5826FD620A907E8C9B6A40@MWHPR15MB1455.namprd15.prod.outlook.com> <CANatvzxmeYd--vJn2V+frA2Niq4LRuo9ct=pMsAa689+a8_iOA@mail.gmail.com> <CABkgnnU8X+K-K4Dkwo271Wm1ZmbQtxzhM7bR7PuKXOvBiaUS-w@mail.gmail.com> <CANatvzzEJMsHM2_yk7ON3u0bDoqrEHcwDd0Y+tZW_BWz3wkzbA@mail.gmail.com> <CANatvzw64WwksUnyzMWyF9LoPvYMdZP-THUb9NnsoxHCbeku+Q@mail.gmail.com> <b3c87af0-2ec6-eedf-864a-30f04dd21d14@akamai.com> <CANatvzyByFbmcEdw=aZc3v_rRvX6Fyq4q2Wiov=O0FkNQAYpog@mail.gmail.com> <aecbb68c-6fb1-52af-032d-fbd4997776b1@akamai.com>
From: Kazuho Oku <kazuhooku@gmail.com>
Date: Wed, 26 Jul 2017 10:30:23 +0900
Message-ID: <CANatvzynhSvYQ7UaN09rhR2C8tkBB0QrCV2niptAuYR=nHokMw@mail.gmail.com>
To: Benjamin Kaduk <bkaduk@akamai.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, Subodh Iyengar <subodh@fb.com>, Ilari Liusvaara <ilariliusvaara@welho.com>, Mike Bishop <Michael.Bishop@microsoft.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=74.125.83.50; envelope-from=kazuhooku@gmail.com; helo=mail-pg0-f50.google.com
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-0.175, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1daB9y-0007ne-EC 552ba451e3014fc3d9279be6b84470b6
X-Original-To: ietf-http-wg@w3.org
Subject: Re: New Version Notification for draft-thomson-http-replay-00.txt
Archived-At: <http://www.w3.org/mid/CANatvzynhSvYQ7UaN09rhR2C8tkBB0QrCV2niptAuYR=nHokMw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/34163
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi Benjamin,

2017-07-26 1:06 GMT+09:00 Benjamin Kaduk <bkaduk@akamai.com>:
> On 07/25/2017 10:30 AM, Kazuho Oku wrote:
>
> Hi Benjamin,
>
> Thank you for your response.
>
> 2017-07-25 21:27 GMT+09:00 Benjamin Kaduk <bkaduk@akamai.com>:
>
> This part I do not agree with, in particular the intermediary making the
> decision to re-send the request without the early-data header.  I believe
> that this decision must be left in the hands of the original client, and do
> not think the latency concern justifies deviating from that.
>
> Could you please clarify the reason that an intermediary should not be
> allowed to retry a request (that has once been rejected by 4NN) when
> receiving an 1-RTT confirmation from client, without setting the
> early-data header?
>
> To me, the behavior is identical to a server that postpones a request
> (that was received as 0-RTT data) until it sees a ClientFinished.
> Which is a behavior you state as permissible.
>
>
>
> In the general case, the request can be different when generated for the
> retry versus the initial request.  This is quite obvious for the token
> binding draft proposal in
> https://tools.ietf.org/html/draft-ietf-tokbind-tls13-0rtt-02 but I doubt
> that's the only possible case.  Granted, the token binding case is not
> especially applicable to the proxy case being discussed here since the proxy
> would need to be involved in handling token binding for that to work.  But I
> hope it helps to illustrate that the client should retain control over how
> the request is retried and that the proxy may not have all the information
> necessary to automatically retry.

Thank you for the example.

I can understand that the request transmitted in 0-RTT and 1-RTT can
be different. However I do not understand why the fact leads to a
conclusion that the client should be the one to resend the request.

My understanding is that in Token Binding either a secret derived from
early_exporter_master_secret or exporter_master_secret is used. It is
true that there is no replay resistance when the server receives 0-RTT
data with Token Binding. However, replay resistance is gained at the
moment the server receives (and successfully validates) a
ClientFinished. By using ClientFinished as a confirmation, there is no
need to request the client to resend the request, even if Token
Binding was used.

I believe that all data that are protected using early secrets gain
replay resistance at the moment the TLS handshake completes. Hence no
need to require the client to resend data.

>
> -Ben



-- 
Kazuho Oku