Digest Headers
draft-ietf-httpbis-digest-headers-04

Document Type Active Internet-Draft (httpbis WG)
Authors Roberto Polli  , Lucas Pardue 
Last updated 2020-10-17
Stream IETF
Intended RFC status (None)
Formats plain text html xml pdf htmlized (tools) htmlized bibtex
Stream WG state WG Document (wg milestone: - Submit Digest Header... )
Document shepherd No shepherd assigned
IESG IESG state I-D Exists
Consensus Boilerplate Unknown
Telechat date
Responsible AD (None)
Send notices to (None)
HTTP                                                            R. Polli
Internet-Draft                         Team Digitale, Italian Government
Intended status: Standards Track                               L. Pardue
Expires: 20 April 2021                                        Cloudflare
                                                         17 October 2020

                             Digest Headers
                  draft-ietf-httpbis-digest-headers-04

Abstract

   This document defines the HTTP Digest and Want-Digest fields, thus
   allowing client and server to negotiate an integrity checksum of the
   exchanged resource representation data.

   This document obsoletes RFC 3230.  It replaces the term "instance"
   with "representation", which makes it consistent with the HTTP
   Semantic and Context defined in draft-ietf-httpbis-semantics.

Note to Readers

   _RFC EDITOR: please remove this section before publication_

   Discussion of this draft takes place on the HTTP working group
   mailing list (ietf-http-wg@w3.org), which is archived at
   https://lists.w3.org/Archives/Public/ietf-http-wg/
   (https://lists.w3.org/Archives/Public/ietf-http-wg/).

   The source code and issues list for this draft can be found at
   https://github.com/httpwg/http-extensions (https://github.com/httpwg/
   http-extensions).

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at https://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

Polli & Pardue            Expires 20 April 2021                 [Page 1]
Internet-Draft               Digest Headers                 October 2020

   This Internet-Draft will expire on 20 April 2021.

Copyright Notice

   Copyright (c) 2020 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents (https://trustee.ietf.org/
   license-info) in effect on the date of publication of this document.
   Please review these documents carefully, as they describe your rights
   and restrictions with respect to this document.  Code Components
   extracted from this document must include Simplified BSD License text
   as described in Section 4.e of the Trust Legal Provisions and are
   provided without warranty as described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   4
     1.1.  A Brief History of HTTP Integrity Fields  . . . . . . . .   4
     1.2.  This Proposal . . . . . . . . . . . . . . . . . . . . . .   4
     1.3.  Goals . . . . . . . . . . . . . . . . . . . . . . . . . .   5
     1.4.  Notational Conventions  . . . . . . . . . . . . . . . . .   5
   2.  Representation Digest . . . . . . . . . . . . . . . . . . . .   6
   3.  The Digest Field  . . . . . . . . . . . . . . . . . . . . . .   7
   4.  The Want-Digest Field . . . . . . . . . . . . . . . . . . . .   7
   5.  Digest Algorithm Values . . . . . . . . . . . . . . . . . . .   8
   6.  Use of Digest when acting on resources  . . . . . . . . . . .  10
     6.1.  Digest and PATCH  . . . . . . . . . . . . . . . . . . . .  11
   7.  Deprecate Negotiation of Content-MD5  . . . . . . . . . . . .  11
   8.  Obsolete Digest Header Field Parameters . . . . . . . . . . .  11
   9.  Relationship to Subresource Integrity (SRI) . . . . . . . . .  11
     9.1.  Supporting Both SRI and Representation Digest . . . . . .  12
   10. Examples of Unsolicited Digest  . . . . . . . . . . . . . . .  13
     10.1.  Server Returns Full Representation Data  . . . . . . . .  13
     10.2.  Server Returns No Representation Data  . . . . . . . . .  13
     10.3.  Server Returns Partial Representation Data . . . . . . .  14
     10.4.  Client and Server Provide Full Representation Data . . .  14
     10.5.  Client Provides Full Representation Data, Server Provides
             No Representation Data  . . . . . . . . . . . . . . . .  15
     10.6.  Client and Server Provide Full Representation Data, Client
             Uses id-sha-256.  . . . . . . . . . . . . . . . . . . .  15
     10.7.  POST Response does not Reference the Request URI . . . .  16
     10.8.  POST Response Describes the Request Status . . . . . . .  17
     10.9.  Digest with PATCH  . . . . . . . . . . . . . . . . . . .  17
     10.10. Error responses  . . . . . . . . . . . . . . . . . . . .  18
     10.11. Use with trailers and transfer coding  . . . . . . . . .  19
Show full document text