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

Julian Reschke <julian.reschke@gmx.de> Tue, 30 June 2020 09:25 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 71F6E3A1135 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 30 Jun 2020 02:25:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.649
X-Spam-Level:
X-Spam-Status: No, score=-2.649 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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 (1024-bit key) header.d=gmx.net
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 Tz7RZ1qQmtRu for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 30 Jun 2020 02:25:57 -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 EB5503A1137 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 30 Jun 2020 02:25:56 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1jqCTm-0002Wz-Bh for ietf-http-wg-dist@listhub.w3.org; Tue, 30 Jun 2020 09:23:02 +0000
Resent-Date: Tue, 30 Jun 2020 09:23:02 +0000
Resent-Message-Id: <E1jqCTm-0002Wz-Bh@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <julian.reschke@gmx.de>) id 1jqCTi-0002W5-MA for ietf-http-wg@listhub.w3.org; Tue, 30 Jun 2020 09:22:58 +0000
Received: from mout.gmx.net ([212.227.17.22]) by mimas.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <julian.reschke@gmx.de>) id 1jqCTg-00054L-QS for ietf-http-wg@w3.org; Tue, 30 Jun 2020 09:22:58 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1593508964; bh=ZfcBWiR6jHYm9PuqITXX6ho9Momu1r0H74jIsimCsrY=; h=X-UI-Sender-Class:To:From:Subject:Date; b=I9+bzbRqFyyUNkEALNj20B2nLk6YC90dxC0zoWXzUpVQRrKVdBgoMIUqqNF3xwKeE 3CLnE5J7pZLSMeTp8VH1SJp0vKbnYNxKVLKi3JP7oH3h6C01MP1sH68LgnziooAQIe NmV0ju68M7K2LZjPBERHsAe3smSQ3y6gGFzGsgAo=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.220] ([217.91.35.233]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MqJmF-1j3Aff22Rn-00nMLG for <ietf-http-wg@w3.org>; Tue, 30 Jun 2020 11:22:44 +0200
To: HTTP Working Group <ietf-http-wg@w3.org>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <34df5225-0f28-2e17-0439-f51e653580b0@gmx.de>
Date: Tue, 30 Jun 2020 11:22:44 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:GaOf84Bgl0VBKo57RQy6Ha+dZV0u0iaoPtOa+cy7Vf1gpJexuPA 2gHCyKrj5OPzMgC1b362FYN4xYaYg3xvFrH5yKg4c7ULrsogTmrejpdte1SXz3QRyJ6BZgO 4YbjUNgnxNrmXjKoDZXXufkJTtmlDTegFKws2xh6dFleNZQirGQvQQt9HAtMZqUV08osl5t hpClE2JRyFdugVDx4n0mA==
X-UI-Out-Filterresults: notjunk:1;V03:K0:WkmWVT2IjaY=:ch77UQbBcDfbBAEPiC1G4A iwTvvAkNhQapQVyk7AWkpTxHzG/g+Zszs7DVDIfyl5tQcfBXJC9FESD4NzKFTOngrelHXfJed ZR9gOtcGGutm3XDvZf6BOvR61k43IDjphsny894+FS+8GxIQqamugG6Kri/cmCoyhalC5+1p+ Tfa4g+CTEul5MQSRuX6Q24A+b9yUXadGzIVx4BUkxyyeEpZEpTyl6Fc7LcvRUtS4IaA+nk5s5 vMqrl2EDljuXG5Sp3e+RaicGiH4ZVOviB0hwerq/3mS+vSaXI2MBuLbcpJkD0o0d2sb92Zo0c d95Y2li29+zD34ekDPKkvzZWK8AhiAidyysPahKMmT5pFzmovF/RgRqibljN07yrK658kB8dg U4qZgL7q4t+tbUvHvtDOcJj8o0SFKfFaOxzVFQRUfnK9Q7oX0y9OLBXrs5ap+UiqxnlEtrj5z pmJ82hw6/Pz2QfN62OsULjdEelxMZ2npnbDp3h6D+eJn/sJQK9XXwouhhp2YQGRAEbsMSfck/ HU/TvqZOjXnkE2ou/qePSKqXMaTlN91r2VgPepYqrWsSRbKlNw/TkTj10/Jzb5iAKKGanx0Uk hE7Syv3eziXW6MuEHnbha63V+MkuaLlJBGSE1aI05R8XkHiBUMPEtLqKWBeSBaruH/Fv4RpRg Qn7dkgYaL7HB49oQZeDJyqQxto/rlxbDMusljatCm+t+iiMfwO0pwK88CPd4JCgrofsnSGT8z Hm7s7YOLf9S+IrY5lnMxRjYa+w01MGPeWRUw+/sfjUvTgOZocqkGDKFEvI4MYMT4ROu8GyfXD kan1c/Aj7M4CmI8X0lq4P+bw5sSPrsPCqCTb7yozrE+2DiY7wGIfnsXak8/907SK05Mr+ev1/ TqW6esjKIF9MtYN6SPrkV8/OF/XwvuOBAFpJmY5yJopWnqZOCbnPUNnPniwINzyNoNSmTl7sl 8a22jcHTMBUDYwIH2rRQoAc+zBDUqFD0OnofD7xHdJSHaB+Gq/7dA9F/Q4oYpbpJNeeIZe16W pm1hzBkI9jPtUcC1IaQ6ygiLkBY+o65I3UdaDx1CPuITspydk3eQ07JebBHDfvLwa4YvfHraH 8RPWVfIGxmlC6Nk99+Qlrglsv9eAp0ALYfCG8m9LxZVWpA3pPsSwU1llg4ZF9XuthYJUlUeKA 29dTBaYnz/lqQWRf6cIRkoGeDwvTVoAa+rzkqP2qwV12xE9lQYdIjItccTfWMqY0aifLP9bAl daxdhEwjncPJ9EwLc
Received-SPF: pass client-ip=212.227.17.22; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-5.6
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1jqCTg-00054L-QS 9e4d9c64b2135409d9e9e98572124912
X-Original-To: ietf-http-wg@w3.org
Subject: draft-ietf-httpbis-digest-headers: Digests and Conditional Requests
Archived-At: <https://www.w3.org/mid/34df5225-0f28-2e17-0439-f51e653580b0@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37835
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 there,

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