Internet-Draft | RATS CMW | October 2022 |
Birkolz, et al. | Expires 23 April 2023 | [Page] |
This document defines two encapsulation formats for RATS conceptual messages (i.e., evidence, attestation results, endorsements and reference values.)¶
The first format uses a CBOR or JSON array with two members: one for the type, another for the value. The other format wraps the value in a CBOR byte string and prepends a CBOR tag to convey the type information.¶
This note is to be removed before publishing as an RFC.¶
Discussion of this document takes place on the Remote ATtestation ProcedureS Working Group mailing list (rats@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/rats/.¶
Source for this draft and an issue tracker can be found at https://github.com/thomas-fossati/draft-ftbs-rats-msg-wrap.¶
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 23 April 2023.¶
Copyright (c) 2022 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 Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
The RATS architecture defines a handful of conceptual messages (see Section 8 of [I-D.ietf-rats-architecture]), such as evidence and attestation results. Each conceptual message can have multiple claims encoding and serialization formats (Section 9 of [I-D.ietf-rats-architecture]). Such serialized message may have to be transported via different protocols - for example, evidence using an EAT [I-D.ietf-rats-eat] encoding serialized as a CBOR payload in a "background check" topological arrangement, or attestation results as Attestation Results for Secure Interactions (AR4SI) [I-D.ietf-rats-ar4si] payloads in "passport" mode.¶
In order to minimize the cost associated with registration and maximize interoperability, it is desirable to reuse their typing information across such boundaries.¶
This document defines two encapsulation formats for RATS conceptual messages that aim to achieve the goals stated above.¶
These encapsulation formats are designed to be:¶
A protocol designer could use these formats, for example, to convey evidence, endorsements or reference values in certificates and CRLs extensions ([DICE-arch]), to embed attestation results or evidence as first class authentication credentials in TLS handshake messages [I-D.fossati-tls-attestation], to transport attestation-related payloads in RESTful APIs, or for stable storage of attestation results in form of file system objects.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
In this document, CDDL [RFC8610] [RFC9165] is used to describe the data formats.¶
The reader is assumed to be familiar with the vocabulary and concepts defined in [I-D.ietf-rats-architecture].¶
Two types of RATS Conceptual Message Wrapper (CMW) are specified in this document:¶
The CMW array illustrated in Figure 1 is composed of two members:¶
A CMW array can be encoded as CBOR [STD94] or JSON [RFC8259].¶
When using JSON, the value field is encoded as Base64 using the URL and filename safe alphabet (Section 5 of [RFC4648]) without padding.¶
When using CBOR, the value field is encoded as a CBOR byte string.¶
cmw = [ type, value ] type = coap-content-format / media-type coap-content-format = uint .size 2 media-type = text .abnf ("media-type" .cat RFC6838) value = cbor-bytes / base64-string cbor-bytes = bytes base64-string = text .regexp "[A-Za-z0-9_-]+" RFC6838 = ' media-type = type-name "/" subtype-name *1("+" suffix) parameters type-name = restricted-name subtype-name = restricted-name ; see https://www.iana.org/assignments/media-type-structured-suffix/ suffix = "xml" / "json" / "ber" / "cbor" / "der" / "fastinfoset" / "wbxml" / "zip" / "tlv" / "json-seq" / "sqlite3" / "jwt" / "gzip" / "cbor-seq" / "zstd" parameters = *(";" parameter-name "=" parameter-value) parameter-name = restricted-name parameter-value = *VCHAR restricted-name = restricted-name-first *126restricted-name-chars restricted-name-first = ALPHA / DIGIT restricted-name-chars = ALPHA / DIGIT / "!" / "#" / "$" / "&" / "-" / "^" / "_" restricted-name-chars =/ "." ; Characters before first dot always ; specify a facet name restricted-name-chars =/ "+" ; Characters after last plus always ; specify a structured syntax suffix VCHAR = %x21-7E ; Visible (printing) characters ALPHA = %x41-5A / %x61-7A ; A-Z / a-z DIGIT = %x30-39 ; 0-9 '
CBOR Tags used as CMW are derived from CoAP Content Format values. If a CoAP Content Format exists for a RATS conceptual message, the TN() transform defined in Appendix B of [RFC9277] can be used to derive a corresponding CBOR tag in range [1668546817, 1668612095].¶
The RATS conceptual message is first serialized according to the Content Format associated with the tag and then encoded as a CBOR byte string, to which the tag is prepended.¶
The (equivalent) examples below assume the media-type
application/vnd.example.rats-conceptual-msg
has been registered
alongside a corresponding CoAP content format 30001
. The CBOR tag
1668576818
is derived applying the TN transform as described in
Section 3.2.¶
[ 30001, h'abcdabcd' ]
[ "application/vnd.example.rats-conceptual-msg", "q82rzQ" ]
This document defines two encapsulation formats for RATS conceptual messages. The messages themselves and their encoding ensure security protection. For this reason there are no further security requirements raised by the introduction of this encapsulation.¶
Changing the encapsulation of a payload by an adversary will result in incorrect processing of the encapsulated messages and this will subsequently lead to a processing error.¶
When registering a new media type for evidence, in addition to its syntactical description, the author SHOULD provide a public and stable description of the signing and appraisal procedures associated with the data format.¶
TODO acknowledge.¶