Re: digest-headers-04: which digest is in the trailer?

Dmitri Tikhonov <dtikhonov@litespeedtech.com> Mon, 15 February 2021 13:49 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 D1CF73A0A3B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 15 Feb 2021 05:49:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.748
X-Spam-Level:
X-Spam-Status: No, score=-0.748 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=litespeedtech-com.20150623.gappssmtp.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 7nyHtQoHJElb for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 15 Feb 2021 05:49:03 -0800 (PST)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (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 0BE7D3A0A34 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 15 Feb 2021 05:49:02 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1lBeD2-0006Kq-Uw for ietf-http-wg-dist@listhub.w3.org; Mon, 15 Feb 2021 13:46:40 +0000
Resent-Date: Mon, 15 Feb 2021 13:46:40 +0000
Resent-Message-Id: <E1lBeD2-0006Kq-Uw@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <dtikhonov@litespeedtech.com>) id 1lBeD0-0006K5-VU for ietf-http-wg@listhub.w3.org; Mon, 15 Feb 2021 13:46:38 +0000
Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by titan.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <dtikhonov@litespeedtech.com>) id 1lBeCy-0005Wb-La for ietf-http-wg@w3.org; Mon, 15 Feb 2021 13:46:38 +0000
Received: by mail-qt1-x82c.google.com with SMTP id d3so4803143qtr.10 for <ietf-http-wg@w3.org>; Mon, 15 Feb 2021 05:46:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=litespeedtech-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=/8A2xxfeoEnuSkZ9ZWm0+x1Zrt6R3jmGX58YLldPqJ4=; b=RgHBPl63uJ+0TWQnFU0XEX/Z3cFD+hdb+RhikTVnChvRBD46N+TD2EtAG5T0hlm+jb 1pUpR5HKbkXZ1WOtY9yOD7OlB0loDsRujd/yfMYPBx+cydGW6FuaCkNCGW/EJVl1hlTq CcvBZtsPRp5C3spIg0gyiQ/1syF7+B4TvIBXx+CVCEQ6Kh+9+umuWeXoBShjZAoscrVR H5paWKR3J1Ao5yCyWdnQCv02opepx/2O+otnwwt0cQx9456yK3AomJTmBN3ClZt8QPxA GRiwChEWmo94c/7NnikPiAZbTZSRUH+1zwMnfbOnG0B2DRIhtB7v5GVtHkPgDtI9aKp0 27Jg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to; bh=/8A2xxfeoEnuSkZ9ZWm0+x1Zrt6R3jmGX58YLldPqJ4=; b=fY/dux48qnU5X7lSVHxZD1RP1z/sCdzGy1LP7uVX1j7tAq5ioJrngkRLKJoHG4ig8p GUec+rGmGJ9cWdDRfqskRm5Zym+JohfXn4vPOSKsLczp5xjsqALPugy3mdMGUyTGnpwA 8/xA7MFSMsE/A0ZN2bx8hrDjChZR+cIokQrda4/uH6vicj46YUNCZuSAz+r1TrZ1tyYW PEc1Zr/Sal7DQ+Fq4oG9BcU/0qsk34T2lWPEHKzJWEz5JWe6Wp/xhBpZkGC4Yz52Tyt/ ypL49q+OHhUzHC2TdoCJ6zO5qFkPPFk+Ixqj/TnUwOXjau6fyrbeK8l77dPkx/e6ObZL BS8g==
X-Gm-Message-State: AOAM533YRfyFSe+ej4mGyuUkpjsgsPYLqzGZPltN9NCDRbl+6Om0gx9v LAW1v8yEDyKvO58nNcrOGsRJUqknvAN64w==
X-Google-Smtp-Source: ABdhPJyU7JwHZs6apXX1F1HD+XAA+ic2rvSqbtIdRpE3v8w11gelOCL0Sck/NzDLyTiNJxS9E7aHVw==
X-Received: by 2002:ac8:72d7:: with SMTP id o23mr14345853qtp.74.1613396784149; Mon, 15 Feb 2021 05:46:24 -0800 (PST)
Received: from okhta (ool-44c1d219.dyn.optonline.net. [68.193.210.25]) by smtp.gmail.com with ESMTPSA id t129sm3143785qkh.33.2021.02.15.05.46.23 for <ietf-http-wg@w3.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 05:46:23 -0800 (PST)
Date: Mon, 15 Feb 2021 08:46:21 -0500
From: Dmitri Tikhonov <dtikhonov@litespeedtech.com>
To: ietf-http-wg@w3.org
Message-ID: <20210215134621.GB21429@okhta>
Mail-Followup-To: ietf-http-wg@w3.org
References: <20210208220246.GB1046058@okhta> <CALGR9oZR=8r5xrVE9OaE=t+ocyCykpjrsCLnRzgQaLKDE5kGWA@mail.gmail.com> <CAP9qbHURYy4M7g5auaF6rCQSYJMuC1vCRN+nU5CwJdG6ekcn2A@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <CAP9qbHURYy4M7g5auaF6rCQSYJMuC1vCRN+nU5CwJdG6ekcn2A@mail.gmail.com>
Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=dtikhonov@litespeedtech.com; helo=mail-qt1-x82c.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=dtikhonov@litespeedtech.com domain=litespeedtech-com.20150623.gappssmtp.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1lBeCy-0005Wb-La 4d2c387bd50833ec7103bb2d80f7bbc2
X-Original-To: ietf-http-wg@w3.org
Subject: Re: digest-headers-04: which digest is in the trailer?
Archived-At: <https://www.w3.org/mid/20210215134621.GB21429@okhta>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/38595
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 Lucas, Roberto,

I do not have a proposal, nor -- Lucas is right here -- do we at
LiteSpeed Tech intend to implement this (or at least not at the
moment).  My question was theoretical, as it looked to me that that
part was missing once I had read the draft.

  - Dmitri.

On Sat, Feb 13, 2021 at 10:41:20AM +0100, Roberto Polli wrote:
> Thanks Dimitri, good catch.
> 
> I agree with Lucas: a new header can work like
> 
> Has-Digest: sha-256, id-sha-256
> 
> If there's consensus it could be reasonable to include it into this spec.
> 
> Wdyt?
> R
> 
> Il lun 8 feb 2021, 23:41 Lucas Pardue <lucaspardue.24.7@gmail.com> ha
> scritto:
> 
> > Hey Dmitri,
> >
> > On Mon, Feb 8, 2021 at 10:06 PM Dmitri Tikhonov <
> > dtikhonov@litespeedtech.com> wrote:
> >
> >> Hello,
> >>
> >> In the case where the digest is included in the trailer (Section 10.11
> >> [1]), it may be beneficial for the client to know *which* digest the
> >> server plans to include in the trailer.  This way, the client, too, can
> >> calculate it in the streaming manner.  I wonder whether this use case
> >> has been considered.
> >>
> >
> > The use case probably has been considered but I'm not sure there is a
> > simple solution that can already solve it. If someone knows HTTP-fu and
> > wants to propose a valid way to do it with existing mechanisms, we could
> > incorporate it into the example. Failing that, I think a new header,
> > defined in a standalone document would be path forward.
> >
> > FWIW draft-thomson-http-mice-03 seems like it was part way to a solution
> > [1]
> >
> > Cheers
> > Lucas
> >
> > [1] https://tools.ietf.org/html/draft-thomson-http-mice-03#section-4.1
> >
> >