<?xml version="1.0" encoding="utf-8"?>
<!-- name="GENERATOR" content="github.com/mmarkdown/mmark Mmark Markdown Processor - mmark.miek.nl" -->
<rfc version="3" ipr="trust200902" docName="draft-ietf-regext-rdap-extensions-04" submissionType="IETF" category="std" xml:lang="en" xmlns:xi="http://www.w3.org/2001/XInclude" updates="7480, 9082, 9083" indexInclude="true">

<front>
<title abbrev="rdap-extensions">RDAP Extensions</title><seriesInfo value="draft-ietf-regext-rdap-extensions-04" stream="IETF" status="standard" name="Internet-Draft"></seriesInfo>
<author initials="A." surname="Newton" fullname="Andy Newton"><organization>ICANN</organization><address><postal><street></street>
</postal><email>andy@hxr.us</email>
</address></author><author initials="J." surname="Singh" fullname="Jasdip Singh"><organization>ARIN</organization><address><postal><street></street>
</postal><email>jasdips@arin.net</email>
</address></author><author initials="T." surname="Harrison" fullname="Tom Harrison"><organization>APNIC</organization><address><postal><street></street>
</postal><email>tomh@apnic.net</email>
</address></author><date/>
<area>Applications and Real-Time Area (ART)</area>
<workgroup>Registration Protocols Extensions (regext)</workgroup>

<abstract>
<t>This document describes and clarifies the usage of extensions in RDAP.</t>
</abstract>

</front>

<middle>

<section anchor="background"><name>Background</name>
<t>The Registration Data Access Protocol (RDAP) defines a uniform means
to access data from Internet operations registries, specifically
Domain Name Registries (DNRs), Regional Internet Registries
(RIRs), and other registries serving Internet Number Resources (INRs).
RDAP queries are defined in <xref target="RFC9082"></xref> and RDAP responses are defined
in <xref target="RFC9083"></xref>.</t>
<t>RDAP contains a means to define extensions for queries not found in
<xref target="RFC9082"></xref> and responses not found in <xref target="RFC9083"></xref>. RDAP extensions
are also described in <xref target="RFC7480"></xref>.  This document describes the
requirements for RDAP extension definition and use, clarifying
ambiguities and defining additional semantics and options that were
previously implicit.</t>

<section anchor="summary-of-updates"><name>Summary of Updates</name>
<t>This document updates <xref target="RFC7480"></xref>, <xref target="RFC9082"></xref>, and <xref target="RFC9083"></xref> in the following
areas:</t>

<ol spacing="compact">
<li><xref target="purpose"></xref> provides additional guidance on the purpose
of RDAP extension identifiers, including their registration for the
purpose of avoiding namespace collisions, as well as for signaling
server policy/behavior.</li>
<li><xref target="usage_in_requests"></xref> clarifies the usage of extension identifiers in RDAP URLs and formally defines
their usage with child path segments and query parameters.</li>
<li><xref target="usage_in_responses"></xref> clarifies the usage of extension identifiers
in responses, including for new object classes and search result arrays.</li>
<li><xref target="extension_implementer_considerations"></xref> documents behavior
considerations for extension implementers.</li>
<li><xref target="extension_author_considerations"></xref> documents behavior
considerations for extension authors, covering
redirects (<xref target="redirects_author"></xref>), referrals (<xref target="referrals"></xref>), and versioning
(<xref target="versioning"></xref>).</li>
<li><xref target="existing_extension_registrations"></xref> documents existing extensions that
were not registered in accordance with the requirements from
the relevant RDAP documents (<xref target="RFC7480"></xref>, <xref target="RFC9082"></xref>, and
<xref target="RFC9083"></xref>).</li>
<li><xref target="rdap_extensions_registry"></xref> and <xref target="rdap_json_values_registry"></xref> provide further
guidance on registrations into the IANA RDAP registries and recommendations
for the expert review processes for these registries.</li>
</ol>
</section>

<section anchor="document-terms"><name>Document Terms</name>
<t>The key words &quot;MUST&quot;, &quot;MUST NOT&quot;, &quot;REQUIRED&quot;, &quot;SHALL&quot;, &quot;SHALL NOT&quot;,
&quot;SHOULD&quot;, &quot;SHOULD NOT&quot;, &quot;RECOMMENDED&quot;, &quot;NOT RECOMMENDED&quot;,
&quot;MAY&quot;, and &quot;OPTIONAL&quot; in this document are to be interpreted as
described in <xref target="BCP14"></xref> when, and only when, they
appear in all capitals, as shown here.</t>
</section>
</section>

<section anchor="identifiers"><name>Identifiers</name>

<section anchor="purpose"><name>Purpose</name>
<t><xref target="RFC7480" sectionFormat="of" section="6"></xref> describes the identifier used to signify RDAP
extensions and the IANA registry into which RDAP extensions are to be
registered.</t>
<t>When in use in RDAP, extension identifiers are prepended to URL path
segments, URL query parameters, and JSON object member names (herein
further referred to as &quot;JSON names&quot;).  They are also included in the
&quot;rdapConformance&quot; member of each response that relies on the
extension, so that clients can determine the extensions being used by
the server for that response.  The &quot;/help&quot; response returns an
&quot;rdapConformance&quot; member containing the identifiers for all extensions
used by the server.</t>
<t>The main purpose of the extension identifier is to act as a namespace,
preventing collisions between elements from different extensions.
Additionally, implementers and operators can use the extension
identifiers to find extension definitions via an IANA registry.</t>

<section anchor="profiles_and_markers"><name>Profile and Marker Extensions</name>
<t>While the RDAP extension mechanism was created to extend RDAP queries
and/or responses, extensions can also be used to signal server policy
(for example, specifying the conditions of use for existing response
structures). Extensions that are primarily about signaling server
policy are often called &quot;profiles&quot;.</t>
<t>Some extensions exist to denote the usage of values placed into an
IANA registry, such as the IANA RDAP registries, or the usage of
extensions for specifications used in RDAP responses, such as extended
vCard/jCard properties.  Such extensions exist to &quot;mark&quot; these usages
and are often called &quot;marker&quot; extensions.</t>
<t>For example, an extension may be used to signal desired processing of
a &quot;rel&quot; attribute in a &quot;links&quot; array, where the &quot;rel&quot; value is
registered in the Link Relations Registry
(<eref target="https://www.iana.org/assignments/link-relations/link-relations.xhtml">https://www.iana.org/assignments/link-relations/link-relations.xhtml</eref>):</t>

<artwork><![CDATA[{
  "rdapConformance": [
    "rdap_level_0",
    "lunarNIC"
  ],
  "objectClassName": "domain",
  "ldhName": "example.com",
  "links": [
    {
      "value": "https://example.com/domain/example.com",
      "href": "https://example.com/sideways_href",
      "rel": "sideways",
      "type": "application/rdap+json"
    }
  ]
}
]]></artwork>
<t>When defining the usage of link relations, extensions should specify
the media types expected to be used with those link relations.</t>
<t>Regardless of the category of the extension, its usage may also
leverage the appearance of its identifier in the &quot;rdapConformance&quot;
array.  Clients may use the &quot;/help&quot; query as defined in <xref target="RFC9082"></xref> to
discover the extensions in use by the server.</t>
</section>

<section anchor="multiple-identifiers-in-single-extension"><name>Multiple Identifiers in Single Extension</name>
<t>Extension specifications have customarily defined only one extension
identifier.  However, there is no explicit limit on the number of
extension identifiers that may be defined in a single extension
specification.  The main reason for defining multiple identifiers is
to reserve multiple namespaces in URLs or responses: see e.g.
<xref target="I-D.ietf-regext-rdap-rir-search"></xref>.</t>
</section>
</section>

<section anchor="syntax"><name>Syntax</name>
<t>In brief, RDAP extension identifiers start with an alphabetic
character and may contain alphanumeric characters and &quot;_&quot; (underscore)
characters. This formulation was explicitly chosen to allow
compatibility with variable names in programming languages and
transliteration with XML.</t>
<t>RDAP extension identifiers have no explicit structure, and are opaque
insofar as no inner-meaning can be &quot;seen&quot; in them.</t>
<t>RDAP extensions MUST NOT define an extension identifier that when
prepended to an underscore character may collide with an existing
extension identifier.  For example, if there were a pre-existing
identifier of &quot;foo_bar&quot;, another extension could not define the
identifier &quot;foo&quot;. Likewise, if there were a pre-existing identifier of
&quot;foo_bar&quot;, another extension could not define the identifier
&quot;foo_bar_buzz&quot;.  However, an extension could define &quot;foo&quot; if there
were a pre-existing definition of &quot;foobar&quot;, and vice versa.</t>
<t>For this reason, usage of an underscore character in RDAP extension
identifiers is NOT RECOMMENDED. Implementers should be aware that many
existing extension identifiers do contain underscore characters.</t>
<t><xref target="RFC7480"></xref> does not explicitly state that extension identifiers are
case-sensitive.  This document updates the formulation in <xref target="RFC7480"></xref>
to explicitly note that extension identifiers are case-sensitive, and
extension identifiers MUST NOT be registered where a new identifier is
a mixed-case version of an existing identifier. For example, if
&quot;lunarNIC&quot; is already registered as an identifier, a new registration
with &quot;lunarNic&quot; (note the lowercase if &quot;ic&quot; in &quot;Nic&quot;) would not be
allowed.</t>
</section>

<section anchor="usage_in_requests"><name>Usage in Requests</name>

<section anchor="usage_in_paths"><name>Usage in Paths</name>
<t><xref target="RFC9082" sectionFormat="of" section="5"></xref> describes the use of extension identifiers in
formulating URLs to query RDAP servers. The extension identifiers are
to be prepended to the path segments they use. For example, if an
extension uses the identifier &quot;foobar&quot;, then the path segments used in
that extension are prepended with &quot;foobar_&quot;.  If the &quot;foobar&quot;
extension defines paths &quot;fizz&quot; and &quot;fazz&quot;, the URLs for this extension
would be like so:</t>

<artwork><![CDATA[https://base.example/foobar_fizz
https://base.example/foobar_fazz
]]></artwork>
<t>While <xref target="RFC9082"></xref> describes the extension identifier as a prepended
string to a path segment, it does not describe the usage of the
extension identifier as a path segment which may have child path
segments. This document updates <xref target="RFC9082"></xref> to allow the usage of
extension identifiers as path segments which may have child path
segments. For example, if the &quot;foobar&quot; extension defines the child
paths &quot;fizz&quot; and &quot;fazz&quot;, the URLs for this extension would be like so:</t>

<artwork><![CDATA[https://base.example/foobar/fizz
https://base.example/foobar/fazz
]]></artwork>
<t>Extensions defining new URL paths MUST explicitly define the expected
responses for each new URL path. New URL paths may return existing
object classes or search results as defined in <xref target="RFC9083"></xref>, object
classes or search results defined by the extension (see
<xref target="object_classes_in_extensions"></xref> and <xref target="search_results_in_extensions"></xref>
below), or object classes or search results from other extensions.</t>
</section>

<section anchor="usage_in_query_parameters"><name>Usage in Query Parameters</name>
<t>Although <xref target="RFC9082"></xref> describes the use of URL query strings, it does
not define their use with extensions. <xref target="RFC7480"></xref> instructs servers to
ignore unknown query parameters. Therefore, the use of query
parameters, whether prefixed with an extension identifier or not, is
not supported by <xref target="RFC9082"></xref> and <xref target="RFC7480"></xref>.</t>
<t>Despite this, there are several extensions that do specify query
parameters.  This document updates <xref target="RFC9082"></xref> with regard to the use
of RDAP extension identifiers in URL query parameters.</t>
<t>When an RDAP extension defines query parameters to be used with a URL
path that is not defined by that RDAP extension, those query parameter
names SHOULD be constructed in the same manner as URL path segments
(that is, extension identifier + '_' + parameter name).  (See section
<xref target="identifier_omission"></xref> regarding when an extension identifier may be
omitted.)</t>
<t>When an RDAP extension defines query parameters to be used with a URL
path defined by that RDAP extension, prefixing of query parameters is
not required.  In this situation, the URL path operates as a namespace
for the query parameters, so there is no risk of collision with
parameters defined elsewhere.</t>
<t>See <xref target="redirects_author"></xref> and <xref target="referrals"></xref> for other guidance on the use of
query parameters, and see <xref target="security_considerations"></xref> and
<xref target="privacy_considerations"></xref> regarding constraints on the usage of query
parameters.</t>
</section>
</section>

<section anchor="usage_in_responses"><name>Usage in Responses</name>

<section anchor="usage_in_responses-1"><name>Basic Requirements</name>
<t><xref target="RFC9083" sectionFormat="of" section="2"></xref> describes the use of extension identifiers in
the JSON returned by RDAP servers. Just as in URLs, the extension
identifier is prepended to JSON names to create a namespace so that
the JSON name from one extension will not collide with the JSON name
from another extension. Just as with unknown query parameters in URLs,
clients are to ignore unknown JSON names.</t>
<t>The example given in <xref target="RFC9083"></xref> is as follows:</t>

<artwork><![CDATA[{
  "handle": "ABC123",
  "lunarNIC_beforeOneSmallStep": "TRUE THAT!",
  "remarks":
  [
    {
      "description":
      [
        "She sells sea shells down by the sea shore.",
        "Originally written by Terry Sullivan."
      ]
    }
  ],
  "lunarNIC_harshMistressNotes":
  [
    "In space,",
    "nobody can hear you scream."
  ]
}
]]></artwork>
<t>In this example, the extension identified by &quot;lunarNIC&quot; is prepended
to the member names of both a JSON string and a JSON array.</t>
<t>As <xref target="RFC9083" sectionFormat="of" section="4.1"></xref> requires the use of the &quot;rdapConformance&quot;
data structure, and the &quot;objectClassName&quot; string is required of all
object class instances, the complete example from above would be:</t>

<artwork><![CDATA[{
  "rdapConformance": [
    "rdap_level_0",
    "lunarNIC"
  ],
  "objectClassName": "domain",
  "handle": "ABC123",
  "ldhName": "example.com",
  "lunarNIC_beforeOneSmallStep": "TRUE THAT!",
  "remarks":
  [
    {
      "description":
      [
        "She sells sea shells down by the sea shore.",
        "Originally written by Terry Sullivan."
      ]
    }
  ],
  "lunarNIC_harshMistressNotes":
  [
    "In space,",
    "nobody can hear you scream."
  ]
}
]]></artwork>
</section>

<section anchor="child_json_values"><name>Child JSON Values</name>
<t>Prefixing of the extension identifier is not required for children of
a prefixed JSON object defined by an RDAP extension.</t>
<t>The following example shows this use with a JSON object:</t>

<artwork><![CDATA[{
  "rdapConformance": [
    "rdap_level_0",
    "lunarNIC"
  ],
  "objectClassName": "domain",
  "ldhName": "example.com",
  "remarks":
  [
    {
      "description":
      [
        "She sells sea shells down by the sea shore.",
        "Originally written by Terry Sullivan."
      ]
    }
  ],
  "lunarNIC_author":
  {
    "firstInitial": "R",
    "lastName": "Heinlein"
  }
}
]]></artwork>
<t>Here the JSON name &quot;lunarNIC_author&quot; will separate the JSON from other
extensions that may have an &quot;author&quot; structure. But the JSON contained
within &quot;lunarNIC_author&quot; need not be prepended, as collision is
avoided by the use of &quot;lunarNIC_author&quot;.</t>
</section>

<section anchor="object_classes_in_extensions"><name>Object Classes in Extensions</name>
<t>As described in <xref target="RFC9082"></xref> and <xref target="usage_in_requests"></xref>, an extension may
define new paths in URLs.  If the extension describes the behavior of
an RDAP query using that path to return an instance of a new class of
RDAP object, the JSON names are not required to be prepended with the
extension identifier as described in <xref target="child_json_values"></xref>. However,
the extension MUST define the value for the &quot;objectClassName&quot; string
which is used by clients to evaluate the type of the response.  To
avoid collisions with object classes defined in other extensions, the
value for the &quot;objectClassName&quot; MUST be prepended with the extension
identifier, in the same way as for URL paths, query parameters, and
JSON names:</t>

<artwork><![CDATA[{
  "rdapConformance": [
    "rdap_level_0",
    "lunarNIC"
  ],
  "objectClassName": "lunarNIC_author",
  "author":
  {
    "firstInitial": "R",
    "lastName": "Heinlein"
  }
}
]]></artwork>
<t>It is RECOMMENDED that object class names comprise lowercase ASCII
characters, and that the &quot;_&quot; (underscore) character be used as a word
separator.  Though &quot;objectClassName&quot; is a string and <xref target="RFC9083"></xref> does
define one object class name with a space separator (i.e. &quot;ip
network&quot;), usage of the space character or any other character that
requires URL-encoding is NOT RECOMMENDED.  When object class names are
also used in URLs, extensions MUST specify that the names are to be
URL-encoded as defined in <xref target="RFC3986"></xref> if the object class names
contain any characters requiring URL-encoding.</t>
</section>

<section anchor="search_results_in_extensions"><name>Search Results in Extensions</name>
<t>As described in <xref target="RFC9082"></xref> and <xref target="usage_in_requests"></xref>, an extension may
define new paths in URLs.  If the extension describes the behavior of
an RDAP query using the path to return a new RDAP search result, the
JSON name of the search result MUST be prepended with the extension
identifier (to avoid collision with search results defined in other
extensions).  If the search result contains object class instances
defined by the extension, each instance MUST have an &quot;objectClassName&quot;
string as defined in <xref target="object_classes_in_extensions"></xref>.  For example:</t>

<artwork><![CDATA[{
  "rdapConformance": [
    "rdap_level_0",
    "lunarNIC"
  ],
  "lunarNIC_authorSearchResult": [
    {
      "objectClassName": "lunarNIC_author",
      "author":
      {
        "firstInitial": "R",
        "lastName": "Heinlein"
      }
    },
    {
      "objectClassName": "lunarNIC_author",
      "author":
      {
        "firstInitial": "J",
        "lastName": "Pournelle"
      }
    },
  ]
}
]]></artwork>
</section>

<section anchor="bare_extension"><name>Bare Extension Identifiers</name>
<t>Some RDAP extensions define only one JSON value and do not prefix it
with their RDAP extension identifier, instead using the extension
identifier as the JSON name for that JSON value. That is, the
extension identifier is used &quot;bare&quot; and not appended with an
underscore character and subsequent names.</t>
<t>Consider the example in <xref target="child_json_values"></xref>. Using the bare extension
identifier pattern, that example could be written as:</t>

<artwork><![CDATA[{
  "rdapConformance": [
    "rdap_level_0",
    "lunarNIC"
  ],
  "objectClassName": "domain",
  "ldhName": "example.com",
  "remarks":
  [
    {
      "description":
      [
        "She sells sea shells down by the sea shore.",
        "Originally written by Terry Sullivan."
      ]
    }
  ],
  "lunarNIC":
  {
    "firstInitial": "R",
    "lastName": "Heinlein"
  }
}
]]></artwork>
<t>Usage of a bare extension identifier contravenes the guidance in
<xref target="RFC9083"></xref>.  This document updates <xref target="RFC9083"></xref> to explicitly allow
this pattern.</t>
<t>Along similar lines, an extension may define a single new object
class, and use the extension's identifier as the object class name.</t>
</section>

<section anchor="rdapconformance-population"><name>rdapConformance Population</name>
<t><xref target="RFC9083" sectionFormat="of" section="4.1"></xref> offers the following guidance on including
extension identifiers in the &quot;rdapConformance&quot; member of an RDAP
response:</t>

<artwork><![CDATA[A response to a "help" request will include identifiers for all of
the specifications supported by the server. A response to any
other request will include only identifiers for the specifications
used in the construction of the response.
]]></artwork>
<t>A strict interpretation of this wording where &quot;construction of the
response&quot; refers to the JSON structure only would rule out the use of
<xref target="profiles_and_markers"></xref> extension identifiers, which are in common use
in RDAP.  This document updates the guidance. For responses to queries
other than &quot;/help&quot;, a response MUST include in the &quot;rdapConformance&quot;
array only those extension identifiers necessary for a client to
deserialize the JSON and understand the semantic meaning of the
content within the JSON, and each extension identifier MUST be free
from conflict with the other identifiers with respect to their syntax
and semantics.</t>
<t>Note that this document does not update the guidance from <xref target="RFC9083" sectionFormat="of" section="4.1"></xref>
regarding &quot;/help&quot; responses and the &quot;rdapConformance&quot; array.</t>
<t>When a server implementation supports multiple extensions, it is
RECOMMENDED that the server also support and return versioning
information such as that defined by
<xref target="I-D.gould-regext-rdap-versioning"></xref>.</t>
</section>

<section anchor="camel_casing"><name>Camel Casing</name>
<t>The styling convention used in <xref target="RFC9083"></xref> for JSON names is often
called &quot;camel casing&quot;, in reference to the hump of a camel. In this
style, the first letter of every word, except the first word,
composing a name is capitalized.  This convention was adopted to
visually separate the namespace from the name, with an underscore
between them.  Extension authors SHOULD use camel casing for JSON
names defined in extensions.</t>
</section>
</section>

<section anchor="identifier_omission"><name>Identifier Omission</name>
<t>Though all RDAP extensions are to be registered in the IANA RDAP
Extensions Registry, there is an implicit two-class system of
extensions that comes from the ownership of the RDAP specifications by
the IETF: extensions created by the IETF and extensions not created by
the IETF.</t>
<t>In the perspective of how extension identifiers are used as namespace
separators, extensions created by the IETF are not required to use the
extension identifier as a prefix in requests and responses, as the
IETF can coordinate its own activities to avoid name collisions. In
practice, most extensions owned by the IETF do use extension
identifiers as prefixes in their requests and responses.</t>
<t>RDAP extensions not defined by the IETF MUST use the extension
identifier as a prefix in accordance with this document, <xref target="RFC7480"></xref>,
<xref target="RFC9082"></xref>, and <xref target="RFC9083"></xref>.  RDAP extensions defined by the IETF
SHOULD use the extension identifier as a prefix or as a bare extension
identifier (see <xref target="bare_extension"></xref>).  IETF-defined RDAP extensions that
do not follow this guidance MUST describe why it is not being
followed.</t>
</section>
</section>

<section anchor="extension_implementer_considerations"><name>Extension Implementer Considerations</name>

<section anchor="redirects_implementer"><name>Redirects</name>
<t><xref target="RFC7480"></xref> describes the use of redirects in RDAP. Redirects are prominent
in the discovery of authoritative RIR servers, as the process outlined in
<xref target="RFC9224"></xref>, which uses IANA allocations, does not account for transfers of
resources between RIRs. <xref target="RFC7480" sectionFormat="of" section="4.3"></xref> instructs servers to ignore
unknown query parameters. As it relates to issuing URLs for redirects, servers
MUST NOT blindly copy query parameters from a request to a redirect URL as
query parameters may contain sensitive information, such as security credentials,
not relevant to the target server of the URL. Following the advice in <xref target="RFC7480"></xref>,
servers SHOULD only place query parameters in redirect URLs when it is known
by the origin server (the server issuing the redirect) that the target server
(the server referenced by the redirect) can process the query parameter and the
contents of the query parameter are appropriate to be received by the target.</t>
</section>
</section>

<section anchor="extension_author_considerations"><name>Extension Author Considerations</name>

<section anchor="redirects_author"><name>Redirects</name>
<t>As it is unlikely that every server in a cross-authority, redirect
scenario will be upgraded to process every new extension, extensions
should not rely on query parameters alone to convey information about
a resource, as query parameters are not guaranteed to survive a
redirect.</t>
<t>This does not mean extensions are prohibited from using query
parameters, but rather that the use of query parameters must be
applied for the scenarios appropriate for the use of the extension.
Therefore, extensions SHOULD NOT rely on query parameters when the
extension is to be used in scenarios requiring clients to find
authoritative servers, or other scenarios using redirects among
servers of differing authorities.</t>
<t>Extensions MAY use query parameters in scenarios where the client has
a priori knowledge of the authoritative server to which queries are to
be sent, and will be sending queries to that server directly.
Searches (<xref target="RFC9083" sectionFormat="of" section="8"></xref>) are an example scenario where a
client will be operating in this way.</t>
<t>In general, extension authors should be mindful of situations
requiring clients to directly handle redirects at the RDAP layer. Some
clients may not be utilizing HTTP libraries that provide such an
option, and many HTTP client libraries that do provide the option do
not provide it as a default behavior. Additionally, requiring clients
to handle redirects at the RDAP layer adds complexity to the client in
that additional logic must be implemented to handle redirect loops,
parameter deconfliction, and URL encoding. The guidance given in
<xref target="RFC7480" sectionFormat="of" section="5.2"></xref> exists to simplify clients, especially those
constructed with shell scripts and HTTP command-line utilities.</t>
</section>

<section anchor="referrals"><name>Referrals</name>
<t>It is common in the RDAP ecosystem to link from one RDAP resource to
another, such as can be found in domain registrations in gTLD DNRs.
These are typically conveyed in the link structure defined in
<xref target="RFC9083" sectionFormat="of" section="4.2"></xref> and use the &quot;application/rdap+json&quot; media
type.  For example:</t>

<artwork><![CDATA[{
  "value": "https://regy.example/domain/foo.example",
  "rel": "related",
  "href": "https://regr.example/domain/foo.example",
  "type": "application/rdap+json"
}
]]></artwork>
<t>Extensions MUST explicitly define any required behavioral changes to
the processing of referrals.  If an extension does not make any
provision in this respect, clients MUST assume the information
provided by referrals requires no additional processing or
modification to use in the dereferencing of the referral.</t>
</section>

<section anchor="versioning"><name>Extension Versioning</name>
<t>As stated in <xref target="purpose"></xref>, RDAP extensions are opaque, and
they possess no explicit version despite the fact that some extension
identifiers include trailing numbers. That is, RDAP extensions without
an explicitly-defined versioning scheme are opaquely versioned.</t>
<t>For example, &quot;fizzbuzz_1&quot; may be the successor to &quot;fizzbuzz_0&quot;, but it
may also be an extension for a completely separate purpose. Only
consultation of the definition of &quot;fizzbuzz_1&quot; will determine its
relationship with &quot;fizzbuzz_0&quot;. Additionally, &quot;fizzbuzz_99&quot; may be the
predecessor of &quot;fizzbuzz_0&quot;.</t>
<t>If a future RFC defines a versioning scheme, an RDAP extension
definition MUST explicitly denote its compliance with that scheme.</t>

<section anchor="backwards_compatible_changes"><name>Backwards-Compatible Changes</name>
<t>If an RDAP extension author wants to publish a new version of an
extension that is backwards-compatible with the previous version, then
one option is for the new version of the extension to define a new
identifier, as well as requiring that both the previous identifier
and the new identifier be included in the &quot;rdapConformance&quot; array of
responses.  That way, clients relying on the previous version of the
extension will continue to function as intended, while clients wanting
to make use of the newer version of the extension can check for the new
identifier in the response.</t>
<t>This approach can be used for an arbitrary number of new
backwards-compatible versions of a given extension.  For an extension
with a large number of backwards-compatible successor versions, this
may lead to a large number of identifiers being included in responses.
An extension author may consider excluding older identifiers from the
set required by new successor versions, based on data about client
use/support or similar.</t>
</section>

<section anchor="backwards_incompatible_changes"><name>Backwards-Incompatible Changes</name>
<t>With the current extension model, an extension with a
backwards-incompatible change is indistinguishable from a new,
unrelated extension.  Implementers of such changes should consider the
following:</t>

<ul spacing="compact">
<li>whether the new version of the extension can be provided alongside
the old version of the extension, so that a service can simply
support both during a transition period;</li>
<li>whether some sort of client signaling should be supported, so that
clients can opt for the old or new version of the extension in
responses that they receive (see
<xref target="I-D.newton-regext-rdap-x-media-type"></xref> for an example of how this
might work); and</li>
<li>whether the extension itself should define how versioning is
handled within the extension documentation.</li>
</ul>
</section>
</section>

<section anchor="extension-specification-content"><name>Extension Specification Content</name>
<t>The primary purpose of an RDAP extension specification is to aid in
the implementation of RDAP clients. Extension authors should consider
the following content guidelines:</t>

<ol spacing="compact">
<li>Examples of RDAP JSON should be generously given, especially in
areas of the specification which may be complex or difficult to describe
with prose.</li>
<li>Normative references, i.e. references to materials that are
required for the interoperability of the extension, should be stable
and non-changing.</li>
<li>Extension specifications should strongly consider making the use
of HTTPS with RDAP mandatory if appropriate.</li>
</ol>
</section>

<section anchor="extension-definitions"><name>Extension Definitions</name>
<t>Extensions must be documented in an RFC or in some other permanent and
readily available reference, in sufficient detail that
interoperability between independent implementations is possible.</t>
<t>Though RDAP gives each extension its own namespace, the definition of
an extension may reuse definitions found in the base RDAP
specification or in any other registered extension.</t>
<t><xref target="RFC9083"></xref> notes that the extension identifiers provide a &quot;hint&quot; to
the client as to how to interpret the response. This wording does not
intentionally restrict the extension to defining only JSON values
within the extension's namespace.  Therefore, an extension may define
the use of its own JSON values together with the use of JSON values
from other extensions or RDAP specifications. As with the
<xref target="icann-profile"></xref>
and <xref target="nro-profile"></xref> extensions, the extension may simply signal
policy applied to previously-defined RDAP structures.</t>
</section>
</section>

<section anchor="existing_extension_registrations"><name>Existing Extension Registrations</name>
<t>The following extensions have been registered with IANA, but do not
comply with the requirements set out in the base specifications, as
clarified by this document:</t>

<ul>
<li><t>Extension identifier: fred</t>

<ul spacing="compact">
<li>RDAP conformance value: fred_version_0</li>
<li>Field/path prefix: fred</li>
</ul></li>
<li><t>Extension identifier: artRecord</t>

<ul spacing="compact">
<li>RDAP conformance value: artRecord_level_0</li>
<li>Field/path prefix: artRecord</li>
</ul></li>
<li><t>Extension identifier: platformNS</t>

<ul spacing="compact">
<li>RDAP conformance value: platformNS_level_0</li>
<li>Field/path prefix: platformNS</li>
</ul></li>
<li><t>Extension identifier: regType</t>

<ul spacing="compact">
<li>RDAP conformance value: regType_level_0</li>
<li>Field/path prefix: regType</li>
</ul></li>
</ul>
<t>Client authors should be aware that responses that make use of these
extensions may require special handling on the part of the client.
Also, while these extensions will be retained in the registry, future
extensions that are similarly non-compliant will not be registered.</t>
<t>To avoid any confusion with the operation of the existing entries, an
extension registration that attempts to use one of the RDAP
conformance values given in this section as an extension identifier
(and so as an RDAP conformance value also) will be rejected.</t>
</section>

<section anchor="iana-considerations"><name>IANA Considerations</name>

<section anchor="rdap_extensions_registry"><name>RDAP Extensions Registry</name>
<t><xref target="RFC7480"></xref> defines the RDAP Extensions Registry (<eref target="https://www.iana.org/assignments/rdap-extensions/rdap-extensions.xhtml">https://www.iana.org/assignments/rdap-extensions/rdap-extensions.xhtml</eref>).
This document does not change the RDAP Extensions Registry nor its purpose. However, this
document does update the procedures to be used by its expert reviewers.</t>
<t>The RDAP Extensions Registry should have as a minimum three expert reviewers
and ideally four or five. An expert reviewer assigned to the review of an RDAP
extension registration must have another expert reviewer double-check any
submitted registration.</t>
<t>Expert reviewers are to use the following criteria for extensions
defined in this document, <xref target="RFC7480"></xref>, <xref target="RFC9082"></xref>, and <xref target="RFC9083"></xref>.
The following is a summary checklist:</t>

<ol spacing="compact">
<li>Does the extension define an extension identifier following the naming
conventions described in <xref target="purpose"></xref> and <xref target="camel_casing"></xref>? For
any recommendations regarding naming conventions (guidance given using
RECOMMENDED, SHOULD, etc.), does the extension describe the need for
departing from the established convention?</li>
<li>If the extension defines new queries, does it clearly describe the
expected results of each new query?</li>
<li>Does the extension follow the JSON naming requirements as described in <xref target="usage_in_responses"></xref>?</li>
<li>If the extension is a newer version of an older extension, does
the extension specification clearly describe if it is backwards-compatible
(see <xref target="backwards_compatible_changes"></xref>) or backwards-incompatible
(see <xref target="backwards_incompatible_changes"></xref>)?</li>
<li>If the extension registers new values in an IANA registry used by RDAP,
does it describe how a client is to use those values?</li>
</ol>
<t>As noted in <xref target="syntax"></xref>, any new registration that is a case variant of
an existing registration MUST be rejected.</t>
<t>RDAP clients SHOULD match values in this registry using
case-insensitive matching.</t>
<t>Extension authors are encouraged but not required to seek an informal review
of their extension by sending a request for review to regext@ietf.org.</t>
</section>

<section anchor="rdap_json_values_registry"><name>RDAP JSON Values Registry</name>
<t><xref target="RFC9083" sectionFormat="of" section="10.2"></xref> defines the <eref target="https://www.iana.org/assignments/rdap-json-values/rdap-json-values.xhtml">RDAP JSON Values Registry in IANA</eref>.
This registry contains values to be used in the JSON values of RDAP responses.
Registrations into this registry may occur in IETF-defined RDAP extensions
or via requests to the IANA. Authors of RDAP extensions not defined by the
IETF MAY register values in this registry via requests to the IANA.</t>
<t>This document does not change the RDAP JSON Values Registry nor its purpose.
However, this document does update the procedures for registrations and the
processes to be used by its expert reviewers.</t>
<t>In addition to the registration of values, RDAP extensions defined by
the IETF and other IETF specifications MAY define additional value
types (the &quot;type&quot; field).  These specifications MUST describe the
specific JSON field to be used for each new value type.</t>
<t><xref target="RFC9083" sectionFormat="of" section="10.2"></xref> defines the criteria for the values. Of these, criteria two
states:</t>
<blockquote><t>Values must be strings. They should be multiple words separated by single
space characters. Every character should be lowercased. If possible, every
word should be given in English and each character should be US-ASCII.</t>
</blockquote><t>All registrations SHOULD meet these requirements. However, there may be scenarios
in which it is more appropriate for the values to follow other
requirements, such as for values also used in other specifications or documents. In all cases,
it should be understood that additional registrations of RDAP JSON values occurring
after the specification of the value's type in the registry may not be
recognized by clients, and therefore either ignored or passed on to users
without processing.</t>
<t>Designated experts MUST reject any registration that is a duplicate of an
existing registration, and all registrations are to be considered case-insensitive.
That is, any new registration that is a case variant of an existing registration
should be rejected.</t>
<t>RDAP clients SHOULD match values in this registry using case-insensitive matching.</t>
<t>Definitions of new types (see above) MAY additionally constrain the format of
values for those new types beyond the specification of this document and <xref target="RFC9083"></xref>.
Designated experts MUST evaluate registrations with those criteria.</t>
<t>The RDAP JSON Values Registry should have as a minimum three expert reviewers
and ideally four or five. An expert reviewer assigned to the review of an RDAP
JSON values registration must have another expert reviewer double-check any
submitted registration.</t>
<t>Expert reviewers are to use the criteria defined in <xref target="RFC9083" sectionFormat="of" section="10.2"></xref>.</t>
</section>
</section>

<section anchor="security_considerations"><name>Security Considerations</name>
<t><xref target="usage_in_query_parameters"></xref> describes the usage of query parameters and <xref target="redirects_author"></xref> describes
the restrictions extensions must follow to use them.
<xref target="RFC7480" sectionFormat="of" section="4.3"></xref> instructs servers to ignore
unknown query parameters. As it relates to issuing URLs for redirects, servers
MUST NOT blindly copy query parameters from a request to a redirect URL as
query parameters may contain sensitive information, such as security credentials
or tracking information, not relevant to the target server of the URL. Following the advice in <xref target="RFC7480"></xref>,
servers SHOULD only place query parameters in redirect URLs when it is known
by the origin server (the server issuing the redirect) that the target server
(the server referenced by the redirect) can process the query parameter and the
contents of the query parameter are appropriate to be received by the target.</t>
</section>

<section anchor="privacy_considerations"><name>Privacy Considerations</name>
<t><xref target="usage_in_query_parameters"></xref> describes the usage of query parameters
and <xref target="redirects_author"></xref> describes the restrictions extensions must follow to
use them. As query parameters have been known to be used to subvert
the privacy preferences of users in HTTP-based protocols, server MUST
NOT blindly copy query parameters from a request to a redirect URL as
described in <xref target="security_considerations"></xref> and extensions MUST follow the
constraints of query parameter usage as defined in <xref target="redirects_author"></xref>.</t>
</section>

<section anchor="acknowledgments"><name>Acknowledgments</name>
<t>The following individuals have provided feedback and contributions to the
content and direction of this document: James Gould, Daniel Keathley, and
Ties de Kock.</t>
</section>

</middle>

<back>
<references><name>References</name>
<references><name>Normative References</name>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml9/reference.BCP.14.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3986.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7480.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9082.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9083.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9224.xml"/>
</references>
<references><name>Informative References</name>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.gould-regext-rdap-versioning.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-regext-rdap-rir-search.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.newton-regext-rdap-x-media-type.xml"/>
<reference anchor="icann-profile" target="https://www.icann.org/gtld-rdap-profile">
  <front>
    <title>gTLD RDAP Profile</title>
    <author>
      <organization>ICANN</organization>
    </author>
    <date year="2024"></date>
  </front>
</reference>
<reference anchor="nro-profile" target="https://bitbucket.org/nroecg/nro-rdap-profile/raw/v1/nro-rdap-profile.txt">
  <front>
    <title>NRO RDAP Profile</title>
    <author>
      <organization>NRO</organization>
    </author>
    <date year="2021"></date>
  </front>
</reference>
</references>
</references>

</back>

</rfc>
