Re: draft-ietf-httpbis-digest-headers: Digests and Conditional Requests

Roberto Polli <robipolli@gmail.com> Tue, 30 June 2020 16:07 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 456B73A0AD7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 30 Jun 2020 09:07:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.749
X-Spam-Level:
X-Spam-Status: No, score=-2.749 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_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=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 R-zXLpKZhxr7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 30 Jun 2020 09:07:32 -0700 (PDT)
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 C740C3A0033 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 30 Jun 2020 09:07:31 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1jqIkB-0003ep-QC for ietf-http-wg-dist@listhub.w3.org; Tue, 30 Jun 2020 16:04:24 +0000
Resent-Date: Tue, 30 Jun 2020 16:04:23 +0000
Resent-Message-Id: <E1jqIkB-0003ep-QC@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 <robipolli@gmail.com>) id 1jqIk4-0003Yt-Fj for ietf-http-wg@listhub.w3.org; Tue, 30 Jun 2020 16:04:20 +0000
Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]) by titan.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <robipolli@gmail.com>) id 1jqIjb-0004U0-La for ietf-http-wg@w3.org; Tue, 30 Jun 2020 16:03:57 +0000
Received: by mail-il1-x129.google.com with SMTP id e18so7518025ilr.7 for <ietf-http-wg@w3.org>; Tue, 30 Jun 2020 09:03:47 -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; bh=NymbyiMYZZ4AiCp/4DoOFjUNJ++5/vAHtefJcXcmc54=; b=jd2OwwFVcH9tycl4qS8Egt5sefABHW7xtECzgO4+Q+vDiv/HI2V1dbtScEXtOZXzD/ voRhzicnLmIa8grvbqPcsRX6E9iHQxQGcvQMSfe+z3nNCAjb2g31l/LfJPfcXfhJSQBH ZJeFd2ba8rRr60B0Mr/AOsDDzHAL+0Knv3fpPpg0PuIs0pCtnHDL/xcPn/hcSTTqKJat OUo/tEl/PNblWA592F9XQO3nTkmcC8ZrGqQe9Vv1k6o9OC2mgYpSyD3d9osYzYVnYjQS CbqnlxCiVPjN9anbr+iHWGY567GHPeE6O/sC2bJAI5pn3Vbw+Qnv4OXKM+cHsAhMBKpH 4CHg==
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; bh=NymbyiMYZZ4AiCp/4DoOFjUNJ++5/vAHtefJcXcmc54=; b=g4lIKQ74E9jftggvSpLzvkyDLDyn5w+EagVV+83p/pGb046TQkWgTPVmeJ3vN5aFeC tKPIoXn5WCkNzXXRe5AJxCoD0nNSQde4hR00hcE6kwbCNM4NTPMGuZdawKQNBZunR1VI ankv6vL1+/btkABgL8Ezq9DrIRIY5auvOjbX9ehPc7G/7oLi8N1o5i1Q++MkaKWrCKxL 3jth/js156cafQtiymqeodI4CxfExSdC1g22E/2MCzM3hEK/76iGctcxrCx2IW7pCnq2 DX1DvUsnANWe20/qRMomssUSvQurBQmRDc6g2lep1IR8mFQNBMOwuiscjV5iA6X1Fqe1 ldvw==
X-Gm-Message-State: AOAM53019Ic7ss37+vSALaYRejnQSGQMP/oS/m0vvDHlOl+vxJjIFagD zZhUUJQrI11YCbu+Udk287cGGQdQxArs/TQaSo4=
X-Google-Smtp-Source: ABdhPJxWGkyXu7OIIzOxGWDaBh5Ye/+qez0YU1snYrSCr94s+8C3zu4b09VJSJSs3Eq3SXex0VBnuo9LCcLil7sMSZ0=
X-Received: by 2002:a92:1805:: with SMTP id 5mr3094552ily.127.1593533016501; Tue, 30 Jun 2020 09:03:36 -0700 (PDT)
MIME-Version: 1.0
References: <34df5225-0f28-2e17-0439-f51e653580b0@gmx.de>
In-Reply-To: <34df5225-0f28-2e17-0439-f51e653580b0@gmx.de>
From: Roberto Polli <robipolli@gmail.com>
Date: Tue, 30 Jun 2020 18:03:25 +0200
Message-ID: <CAP9qbHVniG0KhUEY2_kkKwGs2dcbhtMEhOnNct3kpeSYM14FcQ@mail.gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::129; envelope-from=robipolli@gmail.com; helo=mail-il1-x129.google.com
X-W3C-Hub-Spam-Status: No, score=-5.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1jqIjb-0004U0-La 2e41cae6715219a0b8937ca3b041a1bd
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-digest-headers: Digests and Conditional Requests
Archived-At: <https://www.w3.org/mid/CAP9qbHVniG0KhUEY2_kkKwGs2dcbhtMEhOnNct3kpeSYM14FcQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37836
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 Julian,

thanks for this feedback!
I am reading RFC 6920 but I don't find many details on representation
metadata and partial representation
(only `ct` - content-type is defined).

It would be interesting to understand how to tie "ni:///$HASH" with
the other digest-algorithms in a way that it is respectful of RFC3230,
eg. see https://github.com/httpwg/http-extensions/pull/1213

When  I finish reading rfc 6920 I'll provide more feedback.

Thanks again,
R.

Il giorno mar 30 giu 2020 alle ore 11:26 Julian Reschke
<julian.reschke@gmx.de> ha scritto:
> I just noticed that RFC 4918 (WebDAV) and RFC 6920 (Naming Things with
> Hashes) give us the machinery to make request conditional on hashes.
>
> Example (based on
> <https://greenbytes.de/tech/webdav/draft-ietf-httpbis-digest-headers-02.html#server-returns-full-representation-data>)
>
>    PUT /x HTTP/1.1
>    Host: foo
>    If: <ni:///sha-256;X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=>
>    Content-Type: application/json
>
>    {"hello": "world2"}
>
> All that would be needed is s statement that servers that support both
> the Digest field and the If header field SHOULD consider the ni: URIs
> built from the hashes as "state tokens" as defined in RFC 4918, Section 3.
>
> Best regards, Julian
>