Re: I-D Action: draft-ietf-httpbis-digest-headers-12.txt

Rob Sayre <sayrer@gmail.com> Sat, 22 April 2023 18:11 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 010A0C13AE59 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 22 Apr 2023 11:11:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.448
X-Spam-Level:
X-Spam-Status: No, score=-3.448 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.25, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m4anbcgmEAVY for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 22 Apr 2023 11:11:46 -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 E2C08C13AE57 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 22 Apr 2023 11:11:45 -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 1pqHfd-005iJ2-LR for ietf-http-wg-dist@listhub.w3.org; Sat, 22 Apr 2023 18:09:13 +0000
Resent-Date: Sat, 22 Apr 2023 18:09:13 +0000
Resent-Message-Id: <E1pqHfd-005iJ2-LR@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 <sayrer@gmail.com>) id 1pqHfa-005iIA-PR for ietf-http-wg@listhub.w3.org; Sat, 22 Apr 2023 18:09:10 +0000
Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by mimas.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <sayrer@gmail.com>) id 1pqHfZ-005FL5-31 for ietf-http-wg@w3.org; Sat, 22 Apr 2023 18:09:10 +0000
Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-50685f1b6e0so5066881a12.0 for <ietf-http-wg@w3.org>; Sat, 22 Apr 2023 11:09:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682186944; x=1684778944; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Je9jmEJd5/Aqc6cylPVY2oSkOA6JxneIruO0KKMkfG0=; b=k2koDQzNaY4mUg1b0jm/k7mDL9jMCF2lPgdEavhEunuPGfvQWX3FkH9Sunz5YK47if TdEIpIUCUJXK+aAArfpunAvSRkwZJ8zx/a3pMzM61xXgv+O9Q9B6ul5NHk8Nwuys29hJ pWv/U5od3mQ5KsNMItQ/TNZrFPJ633euQ7BvVf53rD20UAF9nDKV7I88kP91D26zfCEM NRZGPogOHD1ILwbSlKjkqKO59yU8edhG8enH6+FHE1dUGK1rwtsFL6jiE5WLDdgzXqiD 4btZBzf/SyZOA9uL+VvdSiJfyLd8QO646mdJHdZwAtx7+6y76o+VSqBHhBIsNgy4k5HH xESg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682186944; x=1684778944; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Je9jmEJd5/Aqc6cylPVY2oSkOA6JxneIruO0KKMkfG0=; b=gLkaXK6GWca7yK4voPxpJeJtk0wpuGos77amapAWRd2CSoiy1xVdkIQGnDW6PFfdpZ 7gQwktv5vEQtLQrzTLd79Aokz+pqXgYm9o0RR/ygepGpUEpF23Ad7qDNHLi5CR1yE5wt J3z7SAiL1IVHgmMOuzLUI2H79lYPrsEfjw1JXNVy961Ki++O4B7W6/TexFcO/zGjGDXV cL5K0NAdQEElnRBU+q8X+Vthuw/qM335L9hIyCagYiIH2B6DdTeD7VI6yxHx69mgMkuf gL1Pc61cqWb2/URkbkpwi8vmf/zhyRAdQwUfm2ztULfm9IPuGwrKEeAcmhItCm5MhKoT 9IWQ==
X-Gm-Message-State: AAQBX9dhyWihSAjr1xw1mVs8Wm3BYgMh7n3c2S09LHSwwybIRd4h9n8y 6V5911JaBqVFJK2Fhz25teLrdd0HPkAzjhMqhbJF5vyGDp9sIQ==
X-Google-Smtp-Source: AKy350bM2vthdjmBEpiZ7tjAd6SA9UIyqE5zRHKMJ9jCvdguy9usn5C1P9F+18bvoOIyMMRbEQerrpo9M1AW/vyJqLI=
X-Received: by 2002:a05:6402:1ad1:b0:504:7f60:9f6d with SMTP id ba17-20020a0564021ad100b005047f609f6dmr6763226edb.9.1682186944128; Sat, 22 Apr 2023 11:09:04 -0700 (PDT)
MIME-Version: 1.0
References: <168139763332.47146.15403072366456533196@ietfa.amsl.com>
In-Reply-To: <168139763332.47146.15403072366456533196@ietfa.amsl.com>
From: Rob Sayre <sayrer@gmail.com>
Date: Sat, 22 Apr 2023 11:08:52 -0700
Message-ID: <CAChr6SwFJF_eK=wxUpej_UZA7hK7XO5W9UR_3jBc+idJB+ju3g@mail.gmail.com>
To: ietf-http-wg@w3.org, Roberto Polli <robipolli@gmail.com>, Lucas Pardue <lucaspardue.24.7@gmail.com>
Content-Type: multipart/alternative; boundary="000000000000402aec05f9f0ab70"
Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=sayrer@gmail.com; helo=mail-ed1-x536.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=sayrer@gmail.com domain=gmail.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 1pqHfZ-005FL5-31 d5528f20656efabe509d1876e82009ec
X-Original-To: ietf-http-wg@w3.org
Subject: Re: I-D Action: draft-ietf-httpbis-digest-headers-12.txt
Archived-At: <https://www.w3.org/mid/CAChr6SwFJF_eK=wxUpej_UZA7hK7XO5W9UR_3jBc+idJB+ju3g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/51000
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>

Hi,

I'm a little confused by the last paragraph of Section 6.4: Usage in
Trailer Fields.

> Not every hashing algorithm is suitable for use in the trailer section,
some may
> require to preprocess the whole content before sending a message (e.g.,
see [I-D.thomson-http-mice]).

Firstly, there's a small grammar problem with "require to...". But that's
not my main concern.

Isn't the point of using a trailer to work around those algorithms that
require processing all of the content?

For example, the code samples for Python's "hashlib" show SHA-256:
https://docs.python.org/3/library/hashlib.html

Presumably, you'd call the update() method as you put bits on the wire, and
then put the result of digest() in the trailer.

draft-thomson-http-mice-02 would seem to address issues with "eager
processing" that the document covered in the previous paragraph.

Anyway, I think there's something to fix here, even if I am confused about
the technical issue.

thanks,
Rob




On Thu, Apr 13, 2023 at 7:54 AM <internet-drafts@ietf.org> wrote:

>
> A New Internet-Draft is available from the on-line Internet-Drafts
> directories. This Internet-Draft is a work item of the HTTP (HTTPBIS) WG of
> the IETF.
>
>    Title           : Digest Fields
>    Authors         : Roberto Polli
>                      Lucas Pardue
>    Filename        : draft-ietf-httpbis-digest-headers-12.txt
>    Pages           : 41
>    Date            : 2023-04-13
>
> Abstract:
>    This document defines HTTP fields that support integrity digests.
>    The Content-Digest field can be used for the integrity of HTTP
>    message content.  The Repr-Digest field can be used for the integrity
>    of HTTP representations.  Want-Content-Digest and Want-Repr-Digest
>    can be used to indicate a sender's interest and preferences for
>    receiving the respective Integrity fields.
>
>    This document obsoletes RFC 3230 and the Digest and Want-Digest HTTP
>    fields.
>
> The IETF datatracker status page for this Internet-Draft is:
> https://datatracker.ietf.org/doc/draft-ietf-httpbis-digest-headers/
>
> There is also an HTML version available at:
> https://www.ietf.org/archive/id/draft-ietf-httpbis-digest-headers-12.html
>
> A diff from the previous version is available at:
>
> https://author-tools.ietf.org/iddiff?url2=draft-ietf-httpbis-digest-headers-12
>
> Internet-Drafts are also available by rsync at rsync.ietf.org:
> :internet-drafts
>
>
> _______________________________________________
> I-D-Announce mailing list
> I-D-Announce@ietf.org
> https://www.ietf.org/mailman/listinfo/i-d-announce
> Internet-Draft directories: http://www.ietf.org/shadow.html
> or ftp://ftp.ietf.org/ietf/1shadow-sites.txt
>