idnits 2.17.1 draft-ietf-cbor-date-tag-00.txt: Checking boilerplate required by RFC 5378 and the IETF Trust (see https://trustee.ietf.org/license-info): ---------------------------------------------------------------------------- No issues found here. Checking nits according to https://www.ietf.org/id-info/1id-guidelines.txt: ---------------------------------------------------------------------------- No issues found here. Checking nits according to https://www.ietf.org/id-info/checklist : ---------------------------------------------------------------------------- No issues found here. Miscellaneous warnings: ---------------------------------------------------------------------------- == The copyright year in the IETF Trust and authors Copyright Line does not match the current year == The document doesn't use any RFC 2119 keywords, yet seems to have RFC 2119 boilerplate text. -- The document date (May 7, 2020) is 1422 days in the past. Is this intentional? Checking references for intended status: Proposed Standard ---------------------------------------------------------------------------- (See RFCs 3967 and 4897 for information about using normative references to lower-maturity documents in RFCs) ** Obsolete normative reference: RFC 7049 (Obsoleted by RFC 8949) Summary: 1 error (**), 0 flaws (~~), 2 warnings (==), 1 comment (--). Run idnits with the --verbose option for more detailed information about the items above. -------------------------------------------------------------------------------- 2 CBOR Working Group M. Jones 3 Internet-Draft A. Nadalin 4 Intended status: Standards Track Microsoft 5 Expires: November 8, 2020 J. Richter 6 pdv Financial Software GmbH 7 May 7, 2020 9 Concise Binary Object Representation (CBOR) Tags for Date 10 draft-ietf-cbor-date-tag-00 12 Abstract 14 The Concise Binary Object Representation (CBOR, RFC 7049) is a data 15 format whose design goals include the possibility of extremely small 16 code size, fairly small message size, and extensibility without the 17 need for version negotiation. 19 In CBOR, one point of extensibility is the definition of CBOR tags. 20 RFC 7049 defines two tags for time: CBOR tag 0 (RFC 3339 date/time 21 string) and tag 1 (Posix "seconds since the epoch"). Since then, 22 additional requirements have become known. This specification 23 defines a CBOR tag for an RFC 3339 date text string, for applications 24 needing a textual date representation without a time. It also 25 defines a CBOR tag for days since the Posix epoch, for applicaitons 26 needing a numeric date representation without a time. It is intended 27 as the reference document for the IANA registration of the CBOR tags 28 defined. 30 Status of This Memo 32 This Internet-Draft is submitted in full conformance with the 33 provisions of BCP 78 and BCP 79. 35 Internet-Drafts are working documents of the Internet Engineering 36 Task Force (IETF). Note that other groups may also distribute 37 working documents as Internet-Drafts. The list of current Internet- 38 Drafts is at https://datatracker.ietf.org/drafts/current/. 40 Internet-Drafts are draft documents valid for a maximum of six months 41 and may be updated, replaced, or obsoleted by other documents at any 42 time. It is inappropriate to use Internet-Drafts as reference 43 material or to cite them other than as "work in progress." 45 This Internet-Draft will expire on November 8, 2020. 47 Copyright Notice 49 Copyright (c) 2020 IETF Trust and the persons identified as the 50 document authors. All rights reserved. 52 This document is subject to BCP 78 and the IETF Trust's Legal 53 Provisions Relating to IETF Documents 54 (https://trustee.ietf.org/license-info) in effect on the date of 55 publication of this document. Please review these documents 56 carefully, as they describe your rights and restrictions with respect 57 to this document. Code Components extracted from this document must 58 include Simplified BSD License text as described in Section 4.e of 59 the Trust Legal Provisions and are provided without warranty as 60 described in the Simplified BSD License. 62 Table of Contents 64 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 65 1.1. Requirements Notation and Conventions . . . . . . . . . . 3 66 2. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 3 67 2.1. Concise Binary Object Representation (CBOR) Tags 68 Registrations . . . . . . . . . . . . . . . . . . . . . . 3 69 3. Security Considerations . . . . . . . . . . . . . . . . . . . 3 70 4. References . . . . . . . . . . . . . . . . . . . . . . . . . 3 71 4.1. Normative References . . . . . . . . . . . . . . . . . . 3 72 4.2. Informative References . . . . . . . . . . . . . . . . . 4 73 Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 4 74 Document History . . . . . . . . . . . . . . . . . . . . . . . . 4 75 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 4 77 1. Introduction 79 The Concise Binary Object Representation (CBOR) [RFC7049] provides 80 for the interchange of structured data without a requirement for a 81 pre-agreed schema. RFC 7049 defines a basic set of data types, as 82 well as a tagging mechanism that enables extending the set of data 83 types supported via an IANA registry. 85 This specification defines a CBOR tag for a text string representing 86 a date but not a time. The tagged text string is represented as 87 specified by the RFC 3339 [RFC3339] "full-date" production. 89 This specification also defines a CBOR tag for an integer 90 representing a date but not a time. The tagged integer is a positive 91 or negative value indicating the number of days since the IEEE Std 92 1003.1, 2013 Edition [POSIX.1] epoch date 1970-01-01. 94 1.1. Requirements Notation and Conventions 96 The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", 97 "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and 98 "OPTIONAL" in this document are to be interpreted as described in BCP 99 14 [RFC2119] [RFC8174] when, and only when, they appear in all 100 capitals, as shown here. 102 2. IANA Considerations 104 2.1. Concise Binary Object Representation (CBOR) Tags Registrations 106 This section registers the following values in the IANA "Concise 107 Binary Object Representation (CBOR) Tags" registry [IANA.cbor-tags]. 109 o Tag: 1004 (value requested) 110 o Data Item: UTF-8 text string 111 o Semantics: RFC 3339 full-date string 112 o Reference: [[ this specification ]] 114 o Tag: 100 (ASCII 'd') (value requested) 115 o Data Item: Positive or negative integer 116 o Semantics: Number of days since the epoch date 1970-01-01 117 o Reference: [[ this specification ]] 119 3. Security Considerations 121 The security considerations of RFC 7049 apply; the tags introduced 122 here are not expected to raise security considerations beyond those. 124 A date, of course, has significant security considerations; these 125 include the exploitation of ambiguities where the date is security 126 relevant or where the date is used in access control decisions. 128 4. References 130 4.1. Normative References 132 [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate 133 Requirement Levels", BCP 14, RFC 2119, 134 DOI 10.17487/RFC2119, March 1997, 135 . 137 [RFC3339] Klyne, G. and C. Newman, "Date and Time on the Internet: 138 Timestamps", RFC 3339, DOI 10.17487/RFC3339, July 2002, 139 . 141 [RFC7049] Bormann, C. and P. Hoffman, "Concise Binary Object 142 Representation (CBOR)", RFC 7049, DOI 10.17487/RFC7049, 143 October 2013, . 145 [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 146 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, 147 May 2017, . 149 4.2. Informative References 151 [IANA.cbor-tags] 152 IANA, "Concise Binary Object Representation (CBOR) Tags", 153 . 155 [POSIX.1] IEEE, "The Open Group Base Specifications Issue 7", 156 IEEE Std 1003.1, 2013 Edition, 2013, 157 . 160 Acknowledgements 162 Thanks to Carsten Bormann for supporting creation of this 163 specification. Parts of the explanatory text in this specification 164 come from draft-bormann-cbor-time-tag-02. 166 Document History 168 [[ to be removed by the RFC Editor before publication as an RFC ]] 170 -00 172 o Initial working group version based on draft-jones-cbor-date- 173 tag-01 with no normative changes. 175 Authors' Addresses 177 Michael B. Jones 178 Microsoft 180 Email: mbj@microsoft.com 181 URI: https://self-issued.info/ 183 Anthony Nadalin 184 Microsoft 186 Email: tonynad@microsoft.com 187 Joerg Richter 188 pdv Financial Software GmbH 190 Email: joerg.richter@pdv-fs.de