Re: Adam Roach's Yes on draft-ietf-httpbis-replay-03: (with COMMENT)

Martin Thomson <martin.thomson@gmail.com> Thu, 07 June 2018 07:44 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 3FEA2130E8F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 7 Jun 2018 00:44:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.761
X-Spam-Level:
X-Spam-Status: No, score=-7.761 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.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=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 MASnotdXfF3d for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 7 Jun 2018 00:44:43 -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 C1F5D12426A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 7 Jun 2018 00:44:43 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1fQpTA-00005f-93 for ietf-http-wg-dist@listhub.w3.org; Thu, 07 Jun 2018 07:36:28 +0000
Resent-Date: Thu, 07 Jun 2018 07:36:28 +0000
Resent-Message-Id: <E1fQpTA-00005f-93@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <martin.thomson@gmail.com>) id 1fQpSy-0008WT-6k for ietf-http-wg@listhub.w3.org; Thu, 07 Jun 2018 07:36:16 +0000
Received: from mail-oi0-f44.google.com ([209.85.218.44]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <martin.thomson@gmail.com>) id 1fQpSk-0008L5-8s for ietf-http-wg@w3.org; Thu, 07 Jun 2018 07:36:05 +0000
Received: by mail-oi0-f44.google.com with SMTP id i205-v6so7726079oib.1 for <ietf-http-wg@w3.org>; Thu, 07 Jun 2018 00:35:42 -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:content-transfer-encoding; bh=eRR4Sh02NjF0lkCOBwYNSz0IOlp1YSzzJM7PYVjubAE=; b=K0D8WHFOW6ODSOu7PQSujTK0tcrMPdryzYPtPO1gStKNbJ/BBaxoVMLPTAfvrF7ARE PktI/uOCLGI5z2Ypd+K3VtMDyvBWuLrknZBS+f1pO6UIjZdcB+9Ay7g2xYptshv5M72o /j1ON0TVhR/Rdaw+cw1YMtaVJOKO9Uyf/RXyK/BVWL7ti4bDY7eEwsrekdPzqI/uZNlF miCT8YdV5fbYRbXxBb/6P3+S+M2FQ68FeLg33iPIvSSwQBNP1fXhYKYrC/pgXDbsm/0v 8bmwSVRJ+N9hCpfUYy2DEoP579TK7IB1oPp1jlC/byKYG3FU2IRpLU8vTBLS4NmI1qVj fZ5Q==
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=eRR4Sh02NjF0lkCOBwYNSz0IOlp1YSzzJM7PYVjubAE=; b=HPCw3HWSEVZEiu3885onfrfwURgqZjr1KpXZpvGRS8BavhEKhONjk1nzq58ury9RN4 xIVJdVO26xKqjRqxFiJ7akHJc6RwVhcXExD8LS+TLNhwV3aYhWnrwzQ9UcyRrcycWFnf sPgEkKkKNGLnIRwDKvzOBRyB+56p//MU2CG/pQWtcf1HczmCYJlSfWyA6+XC8fEsKIhg ANI8qrg9JissBiamBEXBspasQ65j5RcvkyKRvWDOJkYDsTAUA+D/dWJPCgEV0yg0aqCu mcSPnkdqIi2XJfrnaWcqZoGK1djR1k08oxQmvdtZeuNPsb+ftB5a2Y/4iYXawVAa7zJy eyOw==
X-Gm-Message-State: APt69E2Ke9TDdVjWtFXCF7BfrxyEx3/YZSKEZhfnV1LN4wSxgmYCTGQG 5lih7APdEvJmuutODRfGmFIe9Bn8dSba/hzItEI=
X-Google-Smtp-Source: ADUXVKJiS3RbGaV2IrhMmnyTRQOGs0G6E7KD3+buLOvG5dKXMo+NxsWFMImXtByzXp8UX+zCXmPqjQB+ZKxhrmgGsSg=
X-Received: by 2002:aca:4ed6:: with SMTP id c205-v6mr299611oib.254.1528356940761; Thu, 07 Jun 2018 00:35:40 -0700 (PDT)
MIME-Version: 1.0
References: <152826435826.19241.12786566199717196532.idtracker@ietfa.amsl.com>
In-Reply-To: <152826435826.19241.12786566199717196532.idtracker@ietfa.amsl.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Thu, 07 Jun 2018 09:35:28 +0200
Message-ID: <CABkgnnUkBpJeug0R2fsHJtw6XTqztp-ymJ97dcdB3EAhG=gF0w@mail.gmail.com>
To: Adam Roach <adam@nostrum.com>
Cc: The IESG <iesg@ietf.org>, draft-ietf-httpbis-replay@ietf.org, Patrick McManus <mcmanus@ducksong.com>, httpbis-chairs@ietf.org, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-W3C-Hub-Spam-Status: No, score=-6.3
X-W3C-Hub-Spam-Report: AWL=0.454, 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_H2=-0.79, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1fQpSk-0008L5-8s 60b34df50b94e2cb265b71c3be9d291b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Adam Roach's Yes on draft-ietf-httpbis-replay-03: (with COMMENT)
Archived-At: <https://www.w3.org/mid/CABkgnnUkBpJeug0R2fsHJtw6XTqztp-ymJ97dcdB3EAhG=gF0w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/35497
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: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Thanks Adam,

PR here: https://github.com/httpwg/http-extensions/pull/646

I think that this is just a misunderstanding, but I'm happy to explore
ways to make this clearer.

> §5.2:
>
> >  In all cases, an intermediary can forward a 425 (Too Early) status
> >  code.  Intermediaries MUST forward a 425 (Too Early) status code if
> >  the request that it received and forwarded contained an "Early-Data"
> >  header field.  Otherwise, an intermediary that receives a request in
> >  early data MAY automatically retry that request in response to a 425
> >  (Too Early) status code, but it MUST wait for the TLS handshake to
> >  complete on the connection where it received the request.
>
> This seems correct but incomplete.
>
> I believe that we also want to (MUST-level) require the forwarding of the 425
> in the case in which an intermediary receives a request from a client in early
> data (i.e., no "Early-Data" header field), forwards it towards the origin
> (with an "Early-Data" header field), and then receives a 425 response. I
> suspect the intention here was to cover that case in the "MUST" above, but
> it's not what the text actually says.

It's the opposite, as Willy says.  Let me restate Willy's response
more concisely.:

425 can be forwarded always.
425 is always forwarded if the inbound request contains Early-Data.
425 doesn't need to be forwarded if the request didn't contain
Early-Data; the intermediary can instead absorb the 425 and retry the
request after the inbound connection handshake completes.

That's complete as near as I can tell.