Re: [Technical Errata Reported] RFC7616 (7005)

Joe Orton <joe@manyfish.co.uk> Fri, 19 August 2022 17:36 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 50837C14CF17 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 19 Aug 2022 10:36:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.659
X-Spam-Level:
X-Spam-Status: No, score=-2.659 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a2OJFbe582xK for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 19 Aug 2022 10:36:45 -0700 (PDT)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 104ADC1522B7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 19 Aug 2022 10:36:44 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1oP5sr-00F4o1-9I for ietf-http-wg-dist@listhub.w3.org; Fri, 19 Aug 2022 17:34:13 +0000
Resent-Date: Fri, 19 Aug 2022 17:34:13 +0000
Resent-Message-Id: <E1oP5sr-00F4o1-9I@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <joe@manyfish.co.uk>) id 1oP5sq-00F4n6-31 for ietf-http-wg@listhub.w3.org; Fri, 19 Aug 2022 17:34:12 +0000
Received: from draba.manyfish.co.uk ([81.187.127.137]) by mimas.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <joe@manyfish.co.uk>) id 1oP5so-00HGZj-Jx for ietf-http-wg@w3.org; Fri, 19 Aug 2022 17:34:11 +0000
Received: from ricotia.manyfish.co.uk ([172.17.3.108] helo=manyfish.co.uk) by draba.manyfish.co.uk with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <joe@manyfish.co.uk>) id 1oP5sT-0057Ix-AV; Fri, 19 Aug 2022 18:33:49 +0100
Date: Fri, 19 Aug 2022 18:33:44 +0100
From: Joe Orton <joe@manyfish.co.uk>
To: ahrensdc@gmail.com, sophie.bremer@netzkonform.de, rdd@cert.org, paul.wouters@aiven.io, ynir.ietf@gmail.com, patrick.ni@redant.ca, ietf-http-wg@w3.org
Message-ID: <Yv/JeHLUYxVH79cv@manyfish.co.uk>
References: <20220623213241.CD95EAEAB@rfcpa.amsl.com> <Yv+RDpxH47JICX22@manyfish.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
In-Reply-To: <Yv+RDpxH47JICX22@manyfish.co.uk>
Received-SPF: pass client-ip=81.187.127.137; envelope-from=joe@manyfish.co.uk; helo=draba.manyfish.co.uk
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1oP5so-00HGZj-Jx 0bf6f6537d77a8492292ac4e9fc3a8bb
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [Technical Errata Reported] RFC7616 (7005)
Archived-At: <https://www.w3.org/mid/Yv/JeHLUYxVH79cv@manyfish.co.uk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40334
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>

On Fri, Aug 19, 2022 at 02:33:02PM +0100, Joe Orton wrote:
> On Thu, Jun 23, 2022 at 02:32:41PM -0700, RFC Errata System wrote:
> > The following errata report has been submitted for RFC7616,
> > "HTTP Digest Access Authentication".
> > 
> > --------------------------------------
> > You may review the report below and at:
> > https://www.rfc-editor.org/errata/eid7005
> 
> I reported this to the list a couple of years ago as well.
> 
> A partial resolution is:
> 
> Section 3.4.  Replace section about "Effective Request URI" here, which 
> is wrong, because the effective request URI is completely different to 
> request-target if the latter is "*".  It should read something like:
> 
>   uri
>      The request-target of the HTTP request, per Section 3.1.1 of [RFC7230].
>      This is duplicated here because proxies may change the request-target.
> 
> Section 3.4.3.  Replace request-uri with request-target
> 
> The examples using an abspath are then all fine.
> 
> This leaves Section 3.5, where "request-uri" is used in the rspauth 
> construction. I think the only way to fix this is to actually require 
> use of the effective request URI here, which is be different behaviour 
> to 2617 (again for the "*" case) and possibly fragile. Is there a better 
> option?

Hmm, in fact you can do the same with rspauth, use uri, not sure what I 
was thinking earlier.

So it really looks like the text from 2617 - using "digest-uri-value" 
everywhere as the uri= parameter value - was better, but it got mangled 
badly when trying to update it for 7230.

If 7616 kept using "digest-uri-value" everywhere and updated it to mean 
request-target instead of request-uri, and dropped references to 
"effective request URI" it would all be fine, I think.

Regards, Joe