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

Document Type Active Internet-Draft (httpbis WG)
Last updated 2019-11-03
Stream IETF
Intended RFC status (None)
Formats plain text xml pdf htmlized bibtex
Stream WG state WG Document
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: May 6, 2020                                          Cloudflare
                                                       November 03, 2019

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

Abstract

   This document defines the Digest and Want-Digest header fields for
   HTTP, 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 RFC 7231.

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/ [1].

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

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."

   This Internet-Draft will expire on May 6, 2020.

Polli & Pardue             Expires May 6, 2020                  [Page 1]
Internet-Draft               Digest Headers                November 2019

Copyright Notice

   Copyright (c) 2019 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  . . . . . . . . . . . . . . . . . . . . . . . .   3
     1.1.  A Brief History of Integrity Header Fields  . . . . . . .   4
     1.2.  This Proposal . . . . . . . . . . . . . . . . . . . . . .   4
     1.3.  Goals . . . . . . . . . . . . . . . . . . . . . . . . . .   5
     1.4.  Notational Conventions  . . . . . . . . . . . . . . . . .   5
   2.  Resource Representation and Representation-Data . . . . . . .   6
   3.  Digest Algorithm Values . . . . . . . . . . . . . . . . . . .   7
     3.1.  Representation Digest . . . . . . . . . . . . . . . . . .   9
       3.1.1.  digest-algorithm Encoding Examples  . . . . . . . . .  10
   4.  Header Field Specifications . . . . . . . . . . . . . . . . .  10
     4.1.  Want-Digest . . . . . . . . . . . . . . . . . . . . . . .  10
     4.2.  Digest  . . . . . . . . . . . . . . . . . . . . . . . . .  10
   5.  Use of Digest when acting on resources  . . . . . . . . . . .  11
     5.1.  Digest and PATCH  . . . . . . . . . . . . . . . . . . . .  12
   6.  Deprecate Negotiation of Content-MD5  . . . . . . . . . . . .  12
   7.  Broken Cryptographic Algorithms . . . . . . . . . . . . . . .  12
   8.  Relationship to Subresource Integrity (SRI) . . . . . . . . .  13
     8.1.  Supporting Both SRI and Representation Digest . . . . . .  14
   9.  Examples of Unsolicited Digest  . . . . . . . . . . . . . . .  14
     9.1.  Server Returns Full Representation Data . . . . . . . . .  14
     9.2.  Server Returns No Representation Data . . . . . . . . . .  15
     9.3.  Server Returns Partial Representation Data  . . . . . . .  15
     9.4.  Client and Server Provide Full Representation Data  . . .  15
     9.5.  Client Provides Full Representation Data, Server Provides
           No Representation Data  . . . . . . . . . . . . . . . . .  16
     9.6.  Client and Server Provide Full Representation Data,
           Client Uses id-sha-256. . . . . . . . . . . . . . . . . .  17
     9.7.  POST Response does not Reference the Request URI  . . . .  17
     9.8.  POST Response Describes the Request Status  . . . . . . .  18
     9.9.  Digest with PATCH . . . . . . . . . . . . . . . . . . . .  19
Show full document text