RFC 4395
Guidelines and Registration Procedures for New URI Schemes
RFC 4395: Guidelines and Registration Procedures for New URI Schemes π
Okay bestie, let's do the paperwork first πβ¨ This is RFC 4395, filed under the Network Working Group, and it's a Best Current Practice (BCP 115) π . The authors are T. Hansen (AT&T Laboratories), T. Hardie (Qualcomm, Inc.), and L. Masinter (Adobe Systems) π. It's dated February 2006 ποΈ, and it obsoletes RFC 2717 and RFC 2718 π, so those older versions are officially retired.
Status of This Memo π
So this doc is an Internet Best Current Practice for the Internet Community, and they're literally begging for discussion and suggestions for improvements π₯Ί Distribution of this memo is unlimited, so share it with everyone π
Copyright Notice Β©οΈ
Copyright (C) The Internet Society (2006). Legal stuff, but make sure you keep it in your back pocket π«Ά
Abstract β¨
This doc gives you guidelines and recommendations for defining Uniform Resource Identifier (URI) schemes π¦ It also updates the process and IANA registry for URI schemes, and it obsoletes both RFC 2717 and RFC 2718 π
Table of Contents π§
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3
2. Guidelines for Permanent URI Scheme Definitions . . . . . . . 4
2.1. Demonstratable, New, Long-Lived Utility . . . . . . . . . 4
2.2. Syntactic Compatibility . . . . . . . . . . . . . . . . . 5
2.3. Well-Defined . . . . . . . . . . . . . . . . . . . . . . . 5
2.4. Definition of Operations . . . . . . . . . . . . . . . . . 6
2.5. Context of Use . . . . . . . . . . . . . . . . . . . . . . 6
2.6. Internationalization and Character Encoding . . . . . . . 7
2.7. Clear Security Considerations . . . . . . . . . . . . . . 7
2.8. Scheme Name Considerations . . . . . . . . . . . . . . . . 7
3. Guidelines for Provisional URI Scheme Registration . . . . . . 8
4. Guidelines for Historical URI Scheme Registration . . . . . . 8
5. URI Scheme Registration Procedure . . . . . . . . . . . . . . 9
5.1. General . . . . . . . . . . . . . . . . . . . . . . . . . 9
5.2. Registration Procedures . . . . . . . . . . . . . . . . . 9
5.3. Change Control . . . . . . . . . . . . . . . . . . . . . . 10
5.4. URI Scheme Registration Template . . . . . . . . . . . . . 11
6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 11
7. Security Considerations . . . . . . . . . . . . . . . . . . . 12
8. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 12
9. References . . . . . . . . . . . . . . . . . . . . . . . . . . 13
9.1. Normative References . . . . . . . . . . . . . . . . . . . 13
9.2. Informative References . . . . . . . . . . . . . . . . . . 13
1. Introduction πΈ
Okay so the Uniform Resource Identifier (URI) protocol element and generic syntax is defined by RFC 3986 [5]. Every URI starts with a scheme name, as defined by Section 3.1 of RFC 3986, and that name points you to a spec for identifiers within that scheme. The URI syntax gives you a federated and extensible naming system, where each scheme's spec can further restrict the syntax and semantics of identifiers using that scheme π¦ This doc is your guide for defining new URI schemes, whether you're the one defining, registering, or evaluating them. It also covers the process and mechanism for registering URI schemes in the IANA URI scheme registry. The registry has two parts, 'provisional' and 'permanent', with different requirements, and guidelines and requirements for both parts are given π
This document obsoletes both RFCs 2717 [7] and 2718 [8] π RFCs 2717 and 2718 drew a distinction between 'locators' (identifiers used for accessing resources available on the Internet) and 'names' (identifiers used for naming possibly abstract resources, independent of any mechanism for accessing them). The intent was to use the designation "URL" (Uniform Resource Locator) for identifiers that were locators, and "URN" (Uniform Resource Name) for identifiers that were names. In practice though, the line between 'locator' and 'name' has been really hard to draw: locators can be used as names, and names can be used as locators π
So recent documents have used the term "URI" for all resource identifiers, avoiding the term "URL" and reserving the term "URN" explicitly for those URIs using the "urn" scheme name (RFC 2141 [2]). URN "namespaces" (RFC 3406 [9]) are specific to the "urn" scheme and aren't covered explicitly by this document π
RFC 2717 defined a set of registration trees where URI schemes could be registered, and one of them was called the IETF Tree, managed by IANA. RFC 2717 proposed that additional registration trees might be approved by the IESG. However, no such registration trees have been approved π₯²
This document gets rid of RFC 2717's distinction between different 'trees' for URI schemes. Instead, there's a single namespace for registered values π Within that namespace, there are values that are approved as meeting a set of criteria for URI schemes. Other scheme names may also be registered provisionally, without necessarily meeting those criteria. The intent of the registry is to:
- provide a central point of discovery for established URI scheme names, and easy location of their defining documents;
- discourage use of the same URI scheme name for different purposes;
- help those proposing new URI scheme names to discern established trends and conventions, and avoid names that might be confused with existing ones;
- encourage registration by setting a low barrier for provisional registrations.
RFC 3987 [6] introduced a new protocol element, the Internationalized Resource Identifier (IRI), and defined a mapping between URIs and IRIs. There's no separate registry or registration process for IRIs. If you want to describe resource identifiers that are useful as IRIs, define the corresponding URI syntax, and note that IRI usage follows the rules and transformations defined in RFC 3987 π
Within this document, the key words MUST, MAY, SHOULD, REQUIRED, RECOMMENDED, and so forth are used within the general meanings established in RFC 2119 [1], within the context that they are requirements on future registration documents. So these are the official rule words, bestie, so pay attention π«Ά
2. Guidelines for Permanent URI Scheme Definitions π
This section gives considerations for new URI schemes. Meeting these guidelines is REQUIRED for permanent URI scheme registration. Meeting these guidelines is also RECOMMENDED for provisional registration, as described in Section 3 β¨
2.1. Demonstratable, New, Long-Lived Utility π₯
Using and deploying new URI schemes in the Internet infrastructure is costly πΈ Some parts of URI processing may be scheme-dependent, and deployed software already processes URIs of well-known schemes. Introducing a new URI scheme may require additional software, not only for client software and user agents but also for other parts of the network infrastructure (gateways, proxies, caches) [11]. URI schemes make up a single, global namespace, so it's desirable to avoid contention over the use of short, mnemonic scheme names. For these reasons, the unbounded registration of new schemes is harmful π New URI schemes SHOULD have clear utility to the broad Internet community, beyond what's available with already registered URI schemes π
2.2. Syntactic Compatibility π¦
RFC 3986 [5] defines the generic syntax for all URI schemes, along with the syntax of common URI components that many URI schemes use to define hierarchical identifiers. All URI scheme specifications MUST define their own syntax such that all strings matching their scheme-specific syntax will also match the <absolute-URI> grammar described in Section 4.3 of RFC 3986 π
New URI schemes SHOULD reuse the common URI components of RFC 3986 for defining hierarchical naming schemes. However, if there's a strong reason for a URI scheme not to use the hierarchical syntax, then the new scheme definition SHOULD follow the syntax of previously registered schemes π§
URI schemes that aren't intended for use with relative URIs SHOULD avoid the forward slash "/" character, which is used for hierarchical delimiters, and the complete path segments "." and ".." (dot-segments) πΈ
Avoid improper use of "//". Using double slashes in the first part of a URI is not an artistic indicator that what follows is a URI π Double slashes are used ONLY when the syntax of the URI's <scheme-specific-part> contains a hierarchical structure as described in RFC 3986. In URIs from such schemes, double slashes indicate that what follows is the top hierarchical element for a naming authority. (See Section 3.2 of RFC 3986 for more details.) URI schemes that don't contain a conformant hierarchical structure in their <scheme-specific-part> SHOULD NOT use double slashes following the "<scheme>:" string π«
New URI schemes SHOULD clearly define the role of RFC 3986 [5] reserved characters in URIs of the scheme being defined. The syntax of the new scheme should be clear about which of the "reserved" set of characters (as defined in RFC 3986) are used as delimiters within the URIs of the new scheme, and when those characters must be escaped, versus when they may be used without escaping π
2.3. Well-Defined π
While URIs may or may not be useful as locators in practice, a URI scheme definition itself MUST be clear as to how it's expected to function π Schemes that aren't intended to be used as locators SHOULD describe how the resource identified can be determined or accessed by software that obtains a URI of that scheme π
For schemes that function as locators, it's important that the mechanism of resource location is clearly defined. This might mean different things depending on the nature of the URI scheme πΊοΈ
In many cases, new URI schemes are defined as ways to translate between other namespaces or protocols and the general framework of URIs. For example, the ftp URI scheme translates into the FTP protocol, while the mid URI scheme translates into a Message-ID identifier of an email message π§ For such schemes, the description of the mapping must be complete, and in sufficient detail so that the mapping in both directions is clear: how to map from a URI into an identifier or set of protocol actions or name in the target namespace, and how legal values in the base namespace, or legal protocol interactions, might be represented in a valid URI. In particular, the mapping should describe the mechanisms for encoding binary or character strings within valid character sequences in a URI (See Section 2.6 for guidelines). If not all legal values or protocol interactions of the base standard can be represented using the URI scheme, the definition should be clear about which subset is allowed, and why π¦
(Part 1 of 3, more to come, bestie π)
2.4. Definition of Operations π
okay so when a URI scheme defines how a URI identifies a resource, it SHOULD also list the operations you can run on that resource using the URI as its ID π HTTP is the classic example: an HTTP resource can be hit with GET, POST, PUT, and a bunch of other operations from the HTTP protocol β¨ The scheme definition should describe all the well-defined operations on the URI identifier and what each one is supposed to do π«Ά
Some URI schemes don't really fit the "information access" vibe π For example, telnet gives you location info for starting a bi-directional data stream to a remote host, and the only operation it defines is starting that connection π¦ Either way, the operations that make sense for a scheme should be documented π
Note: It is perfectly valid to say that "no operation apart from GET is defined for this URI". It is also valid to say that "there's only one operation defined for this URI, and it's not very GET-like". The important point is that what is defined on this scheme is described. π
2.5. Context of Use πΈ
URIs get used across a broad range of protocols and apps, so it's giving variety π Most commonly, they're used as references to resources inside directories or hypertext documents, like hyperlinks to other resources π Sometimes a scheme is meant for one specific set of protocols or applications π§ If that's the case, the scheme definition SHOULD describe the intended use and include references to the documentation that defines the applications and/or protocols it cites β¨
2.6. Internationalization and Character Encoding π
When a scheme describes URIs where (some of) the elements are actually human-readable text, be careful not to add unnecessary variety in how characters get encoded into octets and then into URI characters π See RFC 3987 [6] and Section 2.5 of RFC 3986 [5] for the guidelines, bestie π If URIs of a scheme contain any text fields, the scheme definition MUST describe the ways characters are encoded, plus any compatibility issues with IRIs of the scheme π₯ No skipping this one!
2.7. Clear Security Considerations π
Definitions of URI schemes MUST come with a clear analysis of the security implications for systems that use the URI scheme π This follows the practice of Security Consideration sections within IANA registrations [3], so it's not a new vibe, just the standard one π€
In particular, Section 7 of RFC 3986 [5] describes general security considerations for URI schemes β¨ The definition of an individual URI scheme should note which of these apply to the specified scheme π«Ά
2.8. Scheme Name Considerations π
Section 3.1 of RFC 3986 defines the syntax of a URI scheme name, so new scheme registrations MUST comply π Scheme names are case insensitive, but scheme names MUST be registered using lowercase letters π€ Keep it consistent, babe π
URI scheme names should be short, but also descriptive and distinct enough to avoid problems π¦
Avoid names or other symbols that might cause problems with rights to use the name in IETF specifications and Internet protocols π ββοΈ For example, be careful with trademark and service mark names (See Section 7.4 of RFC 3978 [4].) π
Also avoid names that are either very general purpose or already associated in the community with some other application or protocol π Skip scheme names that are overly general or grandiose in scope, like ones that allude to their "universal" or "standard" nature when the namespace described is not π (that's giving clout with zero receipts π)
Organizations that want a private namespace for URI scheme names are encouraged to use a prefix based on their domain name, written in reverse order π‘ For example, a URI scheme name of com-example-info might be registered by the vendor that owns the example.com domain name π
3. Guidelines for Provisional URI Scheme Registration π§
While the guidelines in Section 2 are REQUIRED for permanent registration, they are RECOMMENDED for provisional registration β¨ For a provisional registration, the following are REQUIRED:
- The scheme name meets the syntactic requirements of Section 2.8.
- There is not already an entry with the same URI scheme name. (In the unfortunate case that there are multiple, different uses of the same scheme name, the IESG may approve a request to modify an existing entry to note the separate use.)
- Contact information identifying the person supplying the registration is included. Previously unregistered URI schemes discovered in use may be registered by third parties on behalf of those who created the URI scheme; in this case, both the registering party and the scheme creator SHOULD be identified.
- If no permanent, citable specification for the URI scheme definition is included, credible reasons for not providing it should be given.
- A valid Security Considerations section, as required by Section 6 of [3].
- If the scheme definition does not meet the guidelines laid out in Section 2, the differences and reasons SHOULD be noted.
4. Guidelines for Historical URI Scheme Registration π°οΈ
Sometimes it's appropriate to note a URI scheme that was once in use or registered but, for whatever reason, is no longer in common use or its use is not recommended π₯ In this case, an individual can request that the URI scheme be registered (newly, or as an update to an existing registration) as 'historical' π Any scheme that is no longer in common use MAY be designated as historical, and the registration should contain some indication of where the scheme was previously defined or documented ποΈ
5. URI Scheme Registration Procedure π¬
5.1. General π
The URI registration process is described in the terminology of [3] β¨ It's an optional mailing list review, followed by "Expert Review" π§ The registration request should note the desired status, and the Designated Expert will evaluate the request against the criteria of that status π For a permanent registration request, the Designated Expert may:
- Accept the URI scheme name for permanent registration.
- Suggest provisional registration instead.
- Request IETF review and IESG approval; in the meanwhile, suggest provisional registration.
URI scheme definitions contained within other IETF documents (Informational, Experimental, or Standards-Track RFCs) must also undergo Expert Review; in the case of Standards-Track documents, permanent registration status approval is required π
5.2. Registration Procedures πΊοΈ
Someone wishing to register a URI scheme SHOULD:
- Check the IANA URI scheme registry to see whether or not there is already an entry for the desired name. If there is already an entry under the name, choose a different URI scheme name. π
- Prepare a URI scheme registration template, as specified in Section 5.4. The URI scheme registration template may be contained in an Internet Draft, alone or as part of some other protocol specification. The template may also be submitted in some other form (as part of another document or as a stand-alone document), but the contents will be treated as an "IETF Contribution" under the guidelines of RFC 3978 [4]. π
- Send a copy of the template or a pointer to the containing document (with specific reference to the section with the template) to the mailing list
uri-review@ietf.org, requesting review. In addition, request review on other mailing lists as appropriate. For example, general discussion of URI syntactical issues could be discussed onuri@w3.org; schemes for a network protocol could be discussed on a mailing list for that protocol. Allow a reasonable time for discussion and comments. Four weeks is reasonable for a permanent registration requests. β³ - Respond to review comments and make revisions to the proposed registration as needed to bring it into line with the guidelines given in this document. π οΈ
- Submit the (possibly updated) registration template (or pointer to document containing it) to IANA at
iana@iana.org, specifying whether 'permanent' or 'provisional' registration is requested. π
Upon receipt of a URI scheme registration request:
- IANA checks the submission for completeness; if sections are missing or citations are not correct, IANA rejects the registration request. β
- IANA checks the current registry for a entry with the same name; if such a registry exists, IANA rejects the registration request. π ββοΈ
- IANA requests Expert Review of the registration request against the corresponding guidelines. π§βπΌ
- The Designated Expert may request additional review or discussion, as necessary. π£οΈ
- If Expert Review recommends registration 'provisional' or 'permanent' registration, IANA adds the registration to the appropriate registry. β
- Unless Expert Review has explicitly rejected the registration request within two weeks, IANA should automatically add the registration in the 'provisional' registry. β‘
Either based on an explicit request or independently initiated, the Designated Expert or IESG may request the upgrade of a 'provisional' registration to a 'permanent' one. In such cases, IANA should move the corresponding entry from the provisional registry. π¦
5.3. Change Control π
Registrations may be updated in each registry by the same mechanism as required for an initial registration. In cases where the original definition of the scheme is contained in an IESG-approved document, updating the specification also requires IESG approval π
Provisional registrations may be updated by the original registrant or anyone designated by the original registrant. In addition, the IESG may reassign responsibility for a provisional registration scheme, or may request specific changes to a scheme registration. This enables changes to be made to schemes where the original registrant is out of contact, or unwilling or unable to make changes π§βπ€βπ§
Transition from 'provisional' to 'permanent' status may be requested and approved in the same manner as a new 'permanent' registration. Transition from 'permanent' to 'historical' status requires IESG approval. Transition from 'provisional' to 'historical' may be requested by anyone authorized to update the provisional registration π
5.4. URI Scheme Registration Template π
okay bestie, this is the cheat sheet for everything you have to fill in when you request a URI scheme π every one of these fields must be supplied in a URI scheme registration request:
URI scheme name.
See Section 2.8 for guidelines.
Status.
This reflects the status requested, and should be one of
'permanent', 'provisional', or 'historical'.
URI scheme syntax.
See Section 2.2 for guidelines.
URI scheme semantics.
See Section 2.3 and Section 2.4 for guidelines.
Encoding considerations.
See Section 2.3 and Section 2.6 for guidelines.
Applications/protocols that use this URI scheme name.
Applications and/or protocols that use this URI scheme name; see
Section 2.5.
Interoperability considerations.
If you are aware of any details regarding your scheme that might
impact interoperability, please identify them here. For example:
proprietary or uncommon encoding method; inability to support
multibyte character sets; incompatibility with types or versions
of any underlying protocol.
Security considerations.
See Section 2.7 for guidelines.
Contact.
Person (including contact information) to contact for further
information.
Author/Change controller.
Person (including contact information) authorized to change this,
if a provisional registration.
References.
Include full citations for all referenced documents. Registration
templates for provisional registration may be included in an
Internet Draft; when the documents expire or are approved for
publication as an RFC, the registration will be updated.
6. IANA Considerations β¨
okay so this document basically retires the old "URL Scheme" registry and replaces it with a brand new Uniform Resource Identifier scheme registry π¦ it also gives us a new registration template and a new process for signing up. The process is based on [3] "Expert Review" with an initial (optional) mailing list review, which is giving very organised energy π
The template now has an extra field for the status of the URI scheme name, and the procedures for entering new scheme names got a glow-up π Section 5 is where the new registration process lives.
To transition to the new registry, all URL scheme names in the existing table should be entered as URI schemes, with 'permanent' status. Think of it as a big move-in day π¦πΈ
7. Security Considerations π
this section is serious, bestie, so pay attention π all registered values are expected to contain accurate security consideration sections, and 'permanent' registered scheme names are expected to contain complete definitions. no half-finished paperwork allowed π
Security claims are not a one-and-done thing. Information about the security of a protocol can change over time, so the security claims about a registered URI scheme can change too.
Here's the tea π΅ information concerning possible security vulnerabilities of a protocol may change over time. Consequently, claims as to the security properties of a registered URI scheme may change as well. As new vulnerabilities are discovered, information about such vulnerabilities may need to be attached to existing documentation, so that users are not misled as to the true security properties of a registered URI scheme. Nobody should get catfished by an outdated security story ππ₯
8. Acknowledgements π«Ά
huge thanks to Paul Hoffmann, Ira McDonald, Roy Fielding, Stu Weibel, Tony Hammond, Charles Lindsey, Mark Baker, and the other members of the uri@w3.org mailing list for their comments on earlier versions π these people are literally the reason this is good π
Parts of this document are based on [7], [8] and [10]. Some of the ideas about use of URIs were taken from the "Architecture of the World Wide Web" [11] β¨
9. References π
9.1. Normative References
[1] Bradner, S., "Key words for use in RFCs to Indicate Requirement
Levels", BCP 14, RFC 2119, March 1997.
[2] Moats, R., "URN Syntax", RFC 2141, May 1997.
[3] Narten, T. and H. Alvestrand, "Guidelines for Writing an IANA
Considerations Section in RFCs", BCP 26, RFC 2434, October 1998.
[4] Bradner, S., "IETF Rights in Contributions", BCP 78, RFC 3978,
March 2005.
[5] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform
Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986,
January 2005.
[6] Duerst, M. and M. Suignard, "Internationalized Resource
Identifiers (IRIs)", RFC 3987, January 2005.
9.2. Informative References
[7] Petke, R. and I. King, "Registration Procedures for URL Scheme
Names", BCP 35, RFC 2717, November 1999.
[8] Masinter, L., Alvestrand, H., Zigmond, D., and R. Petke,
"Guidelines for new URL Schemes", RFC 2718, November 1999.
[9] Daigle, L., van Gulik, D., Iannella, R., and P. Faltstrom,
"Uniform Resource Names (URN) Namespace Definition Mechanisms",
BCP 66, RFC 3406, October 2002.
[10] Klyne, G., Nottingham, M., and J. Mogul, "Registration
Procedures for Message Header Fields", BCP 90, RFC 3864,
September 2004.
[11] W3C Technical Architecture Group, "Architecture of the World
Wide Web, Volume One", December 2004,
<http://www.w3.org/TR/webarch/>.
Authors' Addresses ποΈ
Tony Hansen
AT&T Laboratories
200 Laurel Ave.
Middletown, NJ 07748
USA
EMail: tony+urireg@maillennium.att.com
Ted Hardie
Qualcomm, Inc.
675 Campbell Technology Parkway
Campbell, CA
USA
EMail: hardie@qualcomm.com
Larry Masinter
Adobe Systems
345 Park Ave
San Jose, CA 95110
US
Phone: +1 408 536 3024
EMail: LMM@acm.org
URI: http://larry.masinter.net
Full Copyright Statement Β©οΈ
Copyright (C) The Internet Society (2006).
This document is subject to the rights, licenses and restrictions
contained in BCP 78, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property π§Ύ
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in BCP 78 and BCP 79.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
http://www.ietf.org/ipr.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at
ietf-ipr@ietf.org.
Acknowledgement π
Funding for the RFC Editor function is provided by the IETF
Administrative Support Activity (IASA).
π¦ where this page comes from
- ietf: rfc4395 2006-02
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms