Internet-Draft | CoAP Content-Format Registrations Update | February 2025 |
Fossati & Dijk | Expires 11 August 2025 | [Page] |
This document updates RFC7252 regarding the registration procedures for the "CoAP Content-Formats" registry, within the "CoRE Parameters" registry group. The affected registration procedures are specifically those regarding the IETF Review or IESG Approval portion of the registry as well as those regarding the First Come First Served (FCFS) portion of the registry.¶
This note is to be removed before publishing as an RFC.¶
The latest revision of this draft can be found at https://core-wg.github.io/cf-reg-update/draft-ietf-core-cf-reg-update.html. Status information for this document may be found at https://datatracker.ietf.org/doc/draft-ietf-core-cf-reg-update/.¶
Discussion of this document takes place on the Constrained RESTful Environments Working Group mailing list (mailto:[email protected]), which is archived at https://mailarchive.ietf.org/arch/browse/core/. Subscribe at https://www.ietf.org/mailman/listinfo/core/.¶
Source for this draft and an issue tracker can be found at https://github.com/core-wg/cf-reg-update.¶
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 11 August 2025.¶
Copyright (c) 2025 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.¶
Section 12.3 of [RFC7252] describes the registration procedures for the "CoAP Content-Formats" registry within the "CoRE Parameters" registry group [IANA.core-parameters]. (Note that the columns of this registry have been revised according to [Err4954].)¶
In particular, the text defines the rules for obtaining CoAP Content-Format identifiers from the IETF Review or IESG Approval portion of the registry (256-9999) as well as from the First Come First Served (FCFS) portion of the registry (10000-64999). For the (FCFS) portion of the registry, these rules do not involve the Designated Expert (DE) and are managed solely by IANA personnel to finalize the registration.¶
Unfortunately, the instructions do not explicitly require checking that the combination of content-type (i.e., media type with optional parameters) and content coding associated with the requested CoAP Content-Format is semantically valid. This task is generally non-trivial, requiring knowledge from multiple documents and technologies, which is not a task to demand solely from the registrar. This lack of guidance may engender confusion in both the registering party and the registrar, and has already led to erroneous registrations.¶
In Section 5, this document updates [RFC7252] by modifying the registration procedures for the "CoAP Content-Formats" registry regarding its IETF Review or IESG Approval portion as well as its FCFS portion, to mitigate the risk of unintentional or malicious errors.¶
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 [BCP14] (RFC2119) (RFC8174) when, and only when, they appear in all capitals, as shown here.¶
This document uses the terms "media type", "content coding", "content-type" and "content format" as defined in Section 2 of [RFC9193].¶
This section contains a few examples of registration requests for a CoAP Content-Format with identifier 64999 in the FCFS space that must not be allowed to succeed.¶
The following considerations also apply to alternative examples where, for the same combination of content type and content coding, a registration was requested for a CoAP Content-Format with identifier in the IETF Review or IESG Approval space. That is, such registrations must not be allowed to succeed.¶
The registrant requests an FCFS Content-Format ID for an unknown media type:¶
Content Type | Content Coding | ID |
---|---|---|
application/unknown+cbor | - | 64999 |
The registrant requests an FCFS Content-Format ID for an existing media type with an unknown parameter:¶
Content Type | Content Coding | ID |
---|---|---|
application/cose; unknown-parameter=1 | - | 64999 |
The registrant requests an FCFS Content-Format ID for an existing media type with an invalid parameter value:¶
Content Type | Content Coding | ID |
---|---|---|
application/cose; cose-type=invalid | - | 64999 |
The registrant requests an FCFS Content-Format ID for an existing media type with an unknown content coding:¶
Content Type | Content Coding | ID |
---|---|---|
application/senml+cbor | inflate | 64999 |
The registrant requests an FCFS Content-Format ID for a media type that includes a parameter set to its default value, while a (hypothetical) Content-Format ID 64900 is already registered for this media type without that parameter. As a result, this could lead to the creation of two separate Content-Format IDs for the same "logical" entry.¶
Content Type | Content Coding | ID |
---|---|---|
application/my | - | 64900 |
application/my; parameter=default | - | 64999 |
The registrant requests an FCFS Content-Format ID for the "identity" Content Coding, which is the default coding. If accepted, this request would duplicate an entry with (hypothetical) Content-Format ID 64900 where the "Content Coding" field is left empty.¶
Content Type | Content Coding | ID |
---|---|---|
application/my | - | 64900 |
application/my | identity | 64999 |
The registrant requests an FCFS Content-Format ID for a media type that includes a parameter. The value of this parameter appears distinct from that of a previously registered Content-Format that also includes this parameter. However, the semantics of the parameter value are identical to the existing registration.¶
In this example, the eat_profile
parameter value (which can be any URI) is set as a Uniform Resource Name (URN) [RFC8141].
Since for URNs, the Namespace Identifier (foo
in the example) is defined as case insensitive, the two registrations are semantically identical.¶
Content Type | Content Coding | ID |
---|---|---|
application/eat+cwt; eat_profile="urn:foo:1" | - | 64900 |
application/eat+cwt; eat_profile="urn:FOO:1" | - | 64999 |
This document hardens the registration procedures of CoAP Content-Formats in ways that reduce the chances of malicious manipulation of the associated registry.¶
Other than that, it does not change the Security Considerations of [RFC7252].¶
RFC Editor: in this section, please replace RFCthis with the RFC number assigned to this document and remove this note.¶
The CoAP Content-Formats registration procedures defined in Section 12.3 of [RFC7252] are modified as shown in Table 8.¶
Range | Registration Procedures | Note |
---|---|---|
0-255 | Expert Review | Review procedure described in RFCthis, Section 5.3 |
256-9999 | IETF Review with Expert Review or IESG Approval with Expert Review | Review procedure described in RFCthis, Section 5.3 |
10000-64999 (No parameters and empty Content Coding and media type not yet used in this registry) | First Come First Served | The corresponding media type must be registered (or approved for publication) in the "Media Types" registry [IANA.media-types] |
10000-64999 (Includes parameters and/or Content Coding and/or media type appears in this registry) | Expert Review | Review procedure described in RFCthis, Section 5.3 |
65000-65535 | Experimental use (no operational use) |
The 256-9999 range now has registration procedures requiring IETF Review with Expert Review or IESG Approval with Expert Review. In particular:¶
All assignments according to "IETF Review with Expert Review" are made on an "IETF Review" basis per Section 4.8 of [BCP26] with "Expert Review" additionally required per Section 4.5 of [BCP26].¶
The procedure for early IANA allocation of "standards track code points" defined in [RFC7120] also applies. When such a procedure is used, IANA will ask the Designated Expert(s) to approve the early allocation before registration. In addition, working group chairs are encouraged to consult the Expert(s) early during the process outlined in Section 3.1 of [RFC7120].¶
All assignments according to "IESG Approval with Expert Review" are made on an "IESG Approval" basis per Section 4.10 of [BCP26] with "Expert Review" additionally required per Section 4.5 of [BCP26].¶
The 10000-64999 range now has two separate registration procedures. If the registration consists solely of a registered media type name in the "Content Type" field, without any parameter names or "Content Coding", and the media type has not yet been used in this registry, then the policy is FCFS, as before. In all other cases, the policy will be Expert Review, following the checklist described in Section 5.3.¶
A new column with the title "Note" has been added to the registry, which contains information about the expected review procedure.¶
This section clarifies that the CoAP Content-Formats registry allows temporary registrations within the 0-255 and 256-9999 ranges. The range 10000-64999 does not allow temporary registrations.¶
A temporary registration may be created for example by an IANA early allocation action, requested by the authors of an Internet Draft in the IETF stream. Or it may be created because the referenced media type is still provisional (that is, included in the IANA Provisional Standard Media Type Registry).¶
A temporary registration is marked by an IANA note with the label "TEMPORARY" in the corresponding registry entry. Once the required review procedure for the temporary ID has successfully completed, and the referenced media type is included in the IANA Media Types registry, IANA must remove the "TEMPORARY" label so that the entry becomes permanent. If the requested temporary entry does not successfully pass its required review procedure, IANA must remove the entry again and set the Content-Format ID value back to "Unassigned". This may happen for example when an Internet-Draft requesting a Content-Format ID is abandoned, or when the referenced provisional media type is abandoned.¶
To assist users of the CoAP Content-Formats registry in finding detailed information about the media type associated with each CoAP Content-Format, and to ensure that a media type exists before a new entry can be registered, IANA is requested to add a new column "Media Type" to the registry. This new column can be placed directly to the right of the existing "Content Type" column.¶
The "Media Type" field for each entry lists the (base) media type name and provides a hyperlink to registration information for that media type as recorded by IANA. If the media type is provisional, the hyperlink points to the IANA "Provisional Standard Media Type" registry [IANA.provisional-standard-media-types].¶
Note that the registration request procedure remains unchanged. A requester does not need to fill out the "Media Type" field separately, as the necessary information is already provided in the "Content Type" field of the request.¶
The Designated Expert is instructed to perform the Expert Review, as described by the following checklist:¶
The combination of content-type and content coding for which the registration is requested must not be already present in the "CoAP Content-Formats" registry;¶
The media type associated with the requested Content-Format must exist (or must have been approved for registration) in the "Media Types" registry [IANA.media-types];¶
The optional parameter names must have been defined in association with the media type, and any parameter values associated with such parameter names must be as permitted;¶
The Content Type is in the preferred format defined in Section 5.4;¶
If a Content Coding is specified, it must exist (or must have been approved for registration) in the "HTTP Content Coding" registry of the "Hypertext Transfer Protocol (HTTP) Parameters" [IANA.http-parameters].¶
For the 0-255 range, in addition to the checks described above, the DE is instructed to also evaluate the requested codepoint concerning the limited availability of the 1-byte codepoint space. For the 256-9999 range and the 10000-64999 range, a similar criterion may also apply where combinations of media type parameters and content coding choices consume considerable code point space.¶
This section defines the preferred string format for including a requested Content Type into the CoAP Content-Formats registry. During the review process, the Designated Expert(s) or IANA may rewrite a requested Content Type into this preferred string format before approval.¶
The preferred string format is as follows:¶
For any case-insensitive elements, lowercase characters must be used. See Section 8.3.1 of [RFC9110] for a definition of case-insensitive elements and some examples.¶
Parameter values are only quoted if the value is such that it requires use of quoted-string
per Section 5.6.6 of [RFC9110].
Otherwise, a parameter value is included unquoted.¶
A semicolon followed by one space character is used as the separator between media type and parameters.¶
This section is to be removed before publishing as an RFC.¶
The following note has been added to the registry as a temporary fix:¶
"Note: The validity of the combination of Content Coding, Content Type and parameters is checked prior to assignment."¶
IANA is instructed to remove this note from the registry when this document is approved for publication. RFC-Editor: please remove this section once the note has been removed.¶
Thank you Amanda Baber, Carsten Bormann, Francesca Palombini, and Marco Tiloca for your reviews, comments, suggestions and fixes.¶