<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rfc SYSTEM "http://xml.resource.org/authoring/rfc2629.dtd"
[
  <!ENTITY RFC2119 PUBLIC ''
   'http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml'>
  <!ENTITY RFC3912 PUBLIC ''
   'http://xml.resource.org/public/rfc/bibxml/reference.RFC.3912.xml'>
  <!ENTITY RFC5730 PUBLIC ''
   'http://xml.resource.org/public/rfc/bibxml/reference.RFC.5730.xml'>
  <!ENTITY RFC6350 PUBLIC ''
   'http://xml.resource.org/public/rfc/bibxml/reference.RFC.6350.xml'>
  <!ENTITY RFC6973 PUBLIC ''
   'http://xml.resource.org/public/rfc/bibxml/reference.RFC.6973.xml'>
  <!ENTITY RFC7095 PUBLIC ''
   'http://xml.resource.org/public/rfc/bibxml/reference.RFC.7095.xml'>
  <!ENTITY RFC7481 PUBLIC ''
   'http://xml.resource.org/public/rfc/bibxml/reference.RFC.7481.xml'>
  <!ENTITY RFC7942 PUBLIC ''
   'http://xml.resource.org/public/rfc/bibxml/reference.RFC.7942.xml'>
  <!ENTITY RFC8126 PUBLIC ''
   'http://xml.resource.org/public/rfc/bibxml/reference.RFC.8126.xml'>
  <!ENTITY RFC8174 PUBLIC ''
   'http://xml.resource.org/public/rfc/bibxml/reference.RFC.8174.xml'>
  <!ENTITY RFC8977 PUBLIC ''
   'http://xml.resource.org/public/rfc/bibxml/reference.RFC.8977.xml'>
  <!ENTITY RFC8982 PUBLIC ''
   'http://xml.resource.org/public/rfc/bibxml/reference.RFC.8982.xml'>
  <!ENTITY RFC9082 PUBLIC ''
   'http://xml.resource.org/public/rfc/bibxml/reference.RFC.9082.xml'>
  <!ENTITY RFC9083 PUBLIC ''
   'http://xml.resource.org/public/rfc/bibxml/reference.RFC.9083.xml'>
  <!ENTITY RFC9110 PUBLIC ''
    'http://xml.resource.org/public/rfc/bibxml/reference.RFC.9110.xml'>
  <!ENTITY I-D.ietf-jsonpath-base PUBLIC ''
   
'https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-jsonpath-base.xml'>
]>
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt"?>

<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="4"?>
<?rfc compact="yes"?>
<?rfc subcompact="yes"?>
<?rfc sortrefs="yes"?>
<?rfc symrefs="yes"?>
<?rfc iprnotified="no"?>

<rfc category="std" docName="draft-ietf-regext-rdap-reverse-search-26" ipr="trust200902" submissionType="IETF" consensus="true">
  <front>
    <title abbrev="RDAP Reverse search">Registration Data Access Protocol (RDAP) Reverse Search</title>
       
    <author fullname="Mario Loffredo" initials="M." surname="Loffredo">
      <organization>IIT-CNR/Registro.it</organization>
      <address>
        <postal>
          <street>Via Moruzzi,1</street>
          <city>Pisa</city>
          <country>IT</country>
          <code>56124</code>
        </postal>
        <email>mario.loffredo@iit.cnr.it</email>
        <uri>http://www.iit.cnr.it</uri>
      </address>
    </author>

    <author fullname="Maurizio Martinelli" initials="M." surname="Martinelli">
      <organization>IIT-CNR/Registro.it</organization>
      <address>
        <postal>
          <street>Via Moruzzi,1</street>
          <city>Pisa</city>
          <country>IT</country>
          <code>56124</code>
        </postal>
        <email>maurizio.martinelli@iit.cnr.it</email>
        <uri>http://www.iit.cnr.it</uri>
      </address>
    </author>

    <date/>
    <area>Applications and Real-Time</area>
    <workgroup>Registration Protocols Extensions</workgroup>
    <keyword>RDAP</keyword>
    <keyword>Reverse search</keyword>

      <abstract>
          <t>The Registration Data Access Protocol (RDAP) does not include query capabilities for finding the list of domains related to a set of entities matching a given search pattern.  Considering that an RDAP entity can be associated with any defined object class and other relationships between RDAP object classes exist, a reverse search can be applied to other use cases besides the classic domain-entity scenario.  This document describes an RDAP extension that allows servers to provide a reverse search feature based on the relationship defined in RDAP between an object class for search and any related object class.  The reverse search based on the domain-entity relationship is treated as a particular case.</t>
      </abstract>
  </front>

  <middle>
    <section anchor="introduction" title="Introduction">

        <t>The protocol described in this specification aims to extend the RDAP query capabilities and response to enable reverse search based on the relationships defined in RDAP between an object class for search and a related object class.  The reverse search based on the domain-entity relationship is treated as a particular case of such a generic model.</t>

        <t>RDAP providers willing to implement this specification should carefully consider its implications on the efficiency (see <xref target="impl-considerations"/>), the security (see <xref target="security-considerations"/>) and the compliance with privacy regulations (see <xref target="privacy-considerations"/>) of their RDAP service.</t>

        <section anchor="background" title="Background">
        <t>Reverse Whois is a service provided by many web applications that allows users to find domain names owned by an individual or a company starting from the owner's details, such as name and email.  Even if it has been considered useful for some legal purposes (e.g. uncovering trademark infringements, detecting cybercrimes), its availability as a standardized Whois <xref target="RFC3912"/> capability has been objected to for two main reasons, which now don't seem to conflict with an RDAP implementation.</t>
      
      <t>The first objection concerns the potential risks of privacy violation.  However, the domain name community is considering a new generation of Registration Directory Services <xref target="ICANN-RDS1"/> <xref target="ICANN-RDS2"/> <xref target="ICANN-RA"/>, which provide access to sensitive data under some permissible purposes and in accordance with appropriate policies for requestor accreditation, authentication and authorization.  RDAP's reliance on HTTP means that it can make use of common HTTP-based approaches to authentication and authorization, making it more useful than Whois in the context of such directory services.  Since RDAP consequently permits a reverse search implementation complying with privacy protection principles, this first objection is not well-founded.</t>

      <t>The second objection to the implementation of a reverse search capability has been connected with its impact on server processing.  However, the core RDAP specifications already define search queries, with similar processing requirements, so the basis of this objection is not clear.</t>

      <t>Reverse searches, such as finding the list of domain names associated with contacts or nameservers, may be useful to registrars as well.  Usually, registries adopt out-of-band solutions to provide results to registrars asking for reverse searches on their domains.  Possible reasons for such requests are:</t>

        <t><list style="symbols">
	  <t>the loss of synchronization between the registrar database and the registry database;<vspace blankLines='1' /></t>
	  <t>the need for such data to perform bulk Extensible Provisioning Protocol (EPP) <xref target="RFC5730"/> updates (e.g. changing the contacts of a set of domains, etc.).</t>
	</list></t>

      <t>Currently, RDAP does not provide any means for a client to search for the collection of domains associated with an entity <xref target="RFC9082"/>.  A query (lookup or search) on domains can return the array of entities related to a domain with different roles (registrant, registrar, administrative, technical, reseller, etc.), but the reverse operation is not allowed.  Only reverse searches to find the collection of domains related to a nameserver (ldhName or ip) can be requested.  Since an entity can be in relationship with any RDAP object <xref target="RFC9083"/>, the availability of a reverse search as largely intended can be common to all the object classes allowed for search.  Through a further step of generalization, the meaning of reverse search in the RDAP context can be extended to include any query for retrieving all the objects in relationship with another matching a given search pattern.</t>
      </section>

        <section title="Conventions Used in This Document">
            <t>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 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all capitals, as shown here.</t>
        </section>
   </section>

      <section anchor="reverse-search-path-segment-specification" title="Reverse Search Path Segment Specification">

        <t>A generic reverse search path is described by the syntax:</t>

	       <t>{searchable-resource-type}/reverse_search/{related-resource-type}?&lt;search-condition&gt;</t>

        <t>The path segments are defined as in the following:</t>
          <t>
            <list style="hanging">
                <t hangText="&quot;searchable-resource-type&quot;:">it MUST be one of the resource types for search defined in Section 3.2 of <xref target="RFC9082"/> (i.e. &quot;domains&quot;, &quot;nameservers&quot; and &quot;entities&quot;) or a resource type extension;<vspace blankLines='1'/></t>
            </list>
          </t>
          <t>
              <list style="hanging">
                <t hangText="&quot;related-resource-type&quot;:">it MUST be one of the resource types for lookup defined in Section 3.1 of <xref target="RFC9082"/> (i.e. &quot;domain&quot;, &quot;nameserver&quot;, &quot;entity&quot;, &quot;ip&quot; and &quot;autnum&quot;) or a resource type extension;<vspace blankLines='1'/></t>
              </list>
          </t>
          <t>
              <list style="hanging">
                <t hangText="&quot;search-condition&quot;:">a sequence of &quot;property=search pattern&quot; predicates separated by the ampersand character ('&amp;', US-ASCII value 0x0026).</t>
              </list>
          </t>

          <t>While related-resource-type is defined as having one of a number of different values, the only reverse searches defined in this document are for a related-resource-type of &quot;entity&quot;.  Reverse searches for the other resource types specified in <xref target="RFC9082"/> and resource type extensions may be defined by future documents.</t>

      </section>

      <section anchor="reverse-search-definition" title="Reverse Search Definition">

       <t>Based on the content of <xref target="reverse-search-path-segment-specification"/>, defining a reverse search means to define the triple &lt;searchable resource type, related resource type, property&gt; and the mapping with the corresponding RDAP object member.  The mapping is done through the use of a JSONPath expression <xref target="I-D.ietf-jsonpath-base"/>.  Reverse searches are registered in the Reverse Search registry (see <xref target="rdap-reverse-search-registry" />), whereas reverse search mappings are registered in the Reverse Search Mapping registry (see <xref target="rdap-reverse-search-mapping-registry"/>).  The reason for having two registries is that it may be possible for a single type of reverse search to rely on different members, depending on the server's configuration (see <xref target="reverse-search-properties-mapping" />).</t>

       <t>All of the reverse searches defined by this document (see <xref target="reverse-search-on-entities"/>) have property names that are the same as the name of the RDAP object member that is the subject of the search.  For example, the reverse search with the property name &quot;fn&quot; relies on the value of the &quot;fn&quot; member inside the jCard of an entity object.  However, it is not necessary that these two names be the same.  In particular, remapping of searches as part of the deprecation of an existing member (see <xref target="reverse-search-properties-mapping"/>) will typically lead to a member with a different name being used for the search.</t>

        <t>Servers MUST NOT provide or implement reverse searches or reverse search mappings that are not registered with IANA.</t>

      </section>

      <section anchor="reverse-search-properties-discovery" title="Reverse Search Properties Discovery">
          <t>Servers complying with this specification MUST extend the help response <xref target="RFC9083"/> with the &quot;reverse_search_properties&quot; member which contains an array of objects with the following mandatory child members:</t>
          <t>
              <list style="hanging">
                  <t hangText="&quot;searchableResourceType&quot;:">the searchable resource type of the reverse search query as defined in <xref target="reverse-search-path-segment-specification"/>;</t>
              </list>
                  </t>
                  <t>
              <list style="hanging">
                  <t hangText="&quot;relatedResourceType&quot;:">the related resource type of the reverse search query as defined in <xref target="reverse-search-path-segment-specification"/>;</t>
              </list>
                  </t>
                  <t>
              <list style="hanging">
                  <t hangText="&quot;property&quot;:">the reverse search property used in the predicate of the reverse search query as defined in <xref target="reverse-search-path-segment-specification"/>;</t>
              </list>
          </t>

          <t>An example of the help response including the &quot;reverse_search_properties&quot; member is shown in <xref target="reverse-search-properties-example"/>.</t>
      </section>

      <section anchor="reverse-search-properties-mapping" title="Reverse Search Properties Mapping">
          <t>To permit clients to determine the member used by the server for a reverse search, servers MUST detail the mapping that is occurring by adding the &quot;reverse_search_properties_mapping&quot; member to the topmost object of a reverse search response.  This data is included in the search response, rather
than in the help response, because it may differ depending on the query that is sent to the server.</t>

          <t>Documents that deprecate or restructure RDAP responses such that a registered reverse search is no longer able to be used MUST either note that the relevant reverse search is no longer available (in the case of deprecation) or describe how to continue supporting the relevant search by adding another mapping for the reverse search property (in the case of restructuring).</t>

          <t>The "reverse_search_properties_mapping" member contains an array of objects with the following mandatory child members:</t>
          <t>
              <list style="hanging">
                  <t hangText="&quot;property&quot;:">the reverse search property used in the predicate of the current query as defined in <xref target="reverse-search-path-segment-specification"/>;</t>
              </list>
          </t>
          <t>
              <list style="hanging">
                  <t hangText="&quot;propertyPath&quot;:">the JSONPath expression of the object member (or members) corresponding to the reverse search property.</t>
              </list>
          </t>

          <t>The searchable and the related resource types are derived from the query, so there is no need to include them in addition to the property in this member.</t>

          <t>This member MUST be included for all properties used in the search, regardless of whether that property has multiple registered mappings as at the time of the search, because new mappings may be registered at any time.</t>

          <t>When applied to an object, the JSONPath expression MUST produce a list of values, each of which is a JSON number or string.</t>

          <t>An example of a reverse search response including the &quot;reverse_search_properties_mapping&quot; member is shown in <xref target="reverse-search-properties-mapping-example"/>.</t>
      </section>

      <section anchor="reverse-search-response-specification" title="Reverse Search Response Specification">
        <t>Reverse search responses use the formats defined in section 8 of <xref target="RFC9083"/>, which correspond to the searchable resource types defined in <xref target="reverse-search-path-segment-specification"/>.</t>
      </section>

      <section anchor="reverse-search-query-processing" title="Reverse Search Query Processing">
        <t>To process a reverse search, the server returns the objects from its data store that are of type searchable-resource-type and that match each of the predicates from the search conditions.  To determine whether an object matches a predicate, the server:</t>
            <list style="symbols">
                <t>applies the mapping it uses for the reverse search property to the object in order to generate a list of values, each of which MUST be a JSON number or string; and</t>
                <t>checks whether the search pattern matches one or more of those values.</t>
            </list>

        <t>A search pattern matches a value where it equals the string representation of the value, or where it is a match for the value in accordance with the partial string matching behaviour defined in section 4.1 of <xref target="RFC9082" />.</t>

        <t>Objects are only included in the search results if they satisfy all included predicates.  This includes predicates that are for the same property: it is necessary in such a case for the related object to match against each of those predicates.</t>

        <t>Servers MUST return an HTTP 501 (Not Implemented) <xref target="RFC9110"/> response to inform clients of unsupported reverse searches.</t>

        <t>Based on their policy, servers MAY restrict how predicates are used to make a valid search condition, by returning a 400 (Bad Request) response when a problematic request is received.</t>

        <t>A given reverse search or reverse search mapping MAY define additional or alternative search behaviour past that set out in this section.</t>
      </section>

      <section anchor="reverse-search-on-entities" title="Reverse Searches Based on Entity Details">

        <t>Since in RDAP, an entity can be associated with any other object class, the most common kind of reverse search is one based on an entity's details.  Such reverse searches arise from the query model by setting the related resource type to &quot;entity&quot;.</t>
        <t>By selecting a specific searchable resource type, the resulting reverse search aims at retrieving all the objects (e.g. all the domains) that are related to any entity object matching the search conditions.</t>
        <t>This section defines the reverse search properties servers SHOULD support for the domain, nameserver, and entity searchable resource types and the entity related resource type:</t>

        <t>
            <list style="hanging">
                <t hangText="Reverse search property:">role</t>
                <t hangText="RDAP member path:">$.entities[*].roles</t>
                <t hangText="Reference:">Section 10.2.4 of <xref target="RFC9083"/></t>
            </list>
        </t>
        <t>
            <list style="hanging">
                <t hangText="Reverse search property:">handle</t>
                <t hangText="RDAP member path:">$.entities[*].handle</t>
                <t hangText="Reference:">Section 5.1 of <xref target="RFC9083"/></t>
            </list>
        </t>
        <t>
            <list style="hanging">
                <t hangText="Reverse search property:">fn</t>
                <t hangText="RDAP member path:">$.entities[*].vcardArray[1][?(@[0]=='fn')][3]</t>
                <t hangText="Reference:">Section 6.2.1 of <xref target="RFC6350"/></t>
            </list>
        </t>
        <t>
            <list style="hanging">
                <t hangText="Reverse search property:">email</t>
                <t hangText="RDAP member path:">$.entities[*].vcardArray[1][?(@[0]=='email')][3]</t>
                <t hangText="Reference:">Section 6.4.2 of <xref target="RFC6350"/></t>
            </list>
        </t>

        <t>The presence of a predicate on the reverse search property &quot;role&quot; means that the RDAP response property &quot;roles&quot; MUST contain at least the specified role.</t>

        <t>The last two properties are related to jCard elements <xref target="RFC7095"/>, but the field references are to vCard <xref target="RFC6350"/>, since jCard is the JSON format for vCard.</t>

        <t>Examples of reverse search paths based on the domain-entity relationship are presented in <xref target="reverse-search-request"/>.</t>
          <figure anchor="reverse-search-request" title="Examples of reverse search queries">
              <artwork xml:space="preserve"><![CDATA[
 /domains/reverse_search/entity?handle=CID-40*&role=technical

 /domains/reverse_search/entity?fn=Bobby*&role=registrant

 /domains/reverse_search/entity?handle=RegistrarX&role=registrar
        ]]></artwork>
          </figure>

          <t>An example of the help response including the reverse search properties supported is shown below.</t>
          <figure anchor="reverse-search-properties-example" title="An example of help response including the &quot;reverse_search_properties_mapping&quot; member">
              <artwork xml:space="preserve"><![CDATA[
   {
     "rdapConformance": [
       "rdap_level_0",
       "reverse_search"
     ],
     ...
     "reverse_search_properties": [
       {
         "searchableResourceType": "domains",
         "relatedResourceType": "entity",
         "property": "fn"
       },
       {
         "searchableResourceType": "domains",
         "relatedResourceType": "entity",
         "property": "handle"
       },
       {
         "searchableResourceType": "domains",
         "relatedResourceType": "entity",
         "property": "email"
       },
       {
         "searchableResourceType": "domains",
         "relatedResourceType": "entity",
         "property": "role"
       }
     ],
     ...
   }

   ]]></artwork>
          </figure>

          <t>An example of a response including the mapping that is occurring for the first reverse search in <xref target="reverse-search-request"/> is shown below.</t>
          <figure anchor="reverse-search-properties-mapping-example" title="An example of an RDAP response including the &quot;reverse_search_properties&quot; member">
              <artwork xml:space="preserve"><![CDATA[

   {
     "rdapConformance": [
       "rdap_level_0",
       "reverse_search"
     ],
     ...
     "reverse_search_properties_mapping": [
       {
         "property": "handle",
         "propertyPath": "$.entities[*].handle"
       },
       {
         "property": "role",
         "propertyPath": "$.entities[*].roles"
       }
     ],
     ...
   }

   ]]></artwork>
          </figure>

      </section>

      <section anchor="rdap-conformance" title="RDAP Conformance">
          <t>Servers complying with this specification MUST include the value &quot;reverse_search&quot; in the rdapConformance property of the help response <xref target="RFC9083"/> and any other response including the &quot;reverse_search_properties_mapping&quot; member.  The information needed to register this value in the &quot;RDAP Extensions&quot; registry is described in <xref target="rdap-extensions-registry"/>.</t>
      </section>

      <section anchor="impl-considerations" title="Implementation Considerations">
          <t>To limit the impact of processing the search predicates, servers are RECOMMENDED to make use of techniques to speed up the data retrieval in their underlying data store such as indexes or similar.  In addition, risks with respect to performance degradation or result set generation can be mitigated by adopting practices used for standard searches, e.g. restricting the search functionality, limiting the rate of search requests according to the user's authorization, truncating and paging the results <xref target="RFC8977"/>, and returning partial responses <xref target="RFC8982"/>.</t>
      </section>

      <section title="IANA Considerations">

      <section anchor="rdap-extensions-registry" title="RDAP Extensions Registry">

          <t>IANA is requested to register the following value in the &quot;RDAP Extensions&quot; registry:</t>

          <t><list style="none">
              <t>Extension identifier: reverse_search<vspace blankLines='1' /></t>
              <t>Registry operator: Any<vspace blankLines='1' /></t>
              <t>Published specification: This document.<vspace blankLines='1' /></t>
              <t>Contact: IETF &lt;iesg@ietf.org&gt;<vspace blankLines='1' /></t>
              <t>Intended usage: This extension identifier is used for both URI path segments and response extensions related to the reverse search in RDAP.</t>
          </list></t>
      </section>

      <section anchor="rdap-reverse-search-registries"  title="RDAP Reverse Search Registries">

          <section anchor="rdap-reverse-search-registries-creation" title="Creation of the RDAP Reverse Search Registries">

          <t>IANA is requested to create the &quot;RDAP Reverse Search&quot; and &quot;RDAP Reverse Search Mapping&quot; registries within the group &quot;Registration Data Access Protocol (RDAP)&quot;.</t>

          <t>These registries follow the Specification Required process as defined in Section 4.5 of <xref target="RFC8126"/>.</t>

          <t>The designated expert should prevent collisions and confirm that suitable documentation, as described in Section 4.6 of <xref target="RFC8126"/>, is available to ensure interoperability.</t>

          <t>Creators of either new RDAP reverse searches or new mappings for registered reverse searches SHOULD NOT replicate functionality already available by way of other documents referenced in these registries.  Creators MAY register additional reverse search mappings for existing properties, but they SHOULD NOT map a registered reverse search property to a response field with a meaning other than that of the response fields referenced by the mappings already registered for that property.  In other words, all the mappings for a reverse search property MUST point to response fields with the same meaning.</t>
      </section>

      <section title="Submit Request to IANA">
          <t>Registration requests can be sent to &lt;iana@iana.org&gt;.</t>
      </section>

        <section anchor="rdap-reverse-search-registry" title="RDAP Reverse Search Registry">

          <section anchor="rdap-reverse-search-registry-template" title="Template">

          <t>
              <list style="hanging">
                  <t hangText="&quot;Searchable Resource Type&quot;:">The searchable resource type of the reverse search query (<xref target="reverse-search-path-segment-specification"/>) including the reverse search property.  Multiple reverse search properties differing only by this field can be grouped together by listing all the searchable resource types separated by comma (see <xref target="rdap-reverse-search-registry-initial-content"/>).</t>
              </list>
                  </t>
                  <t>
              <list style="hanging">
                  <t hangText="&quot;Related Resource Type&quot;:">The related resource type of the reverse search query (<xref target="reverse-search-path-segment-specification"/>) including the reverse search property.</t>
              </list>
                  </t>
                  <t>
              <list style="hanging">
                  <t hangText="&quot;Property&quot;:">The name of the reverse search property.</t>
              </list>
                  </t>
                  <t>
              <list style="hanging">
                  <t hangText="&quot;Description&quot;:">A brief human-readable text describing the reverse search property.</t>
              </list>
                  </t>
                  <t>
              <list style="hanging">
                  <t hangText="&quot;Registrant Name&quot;:">The name of the person registering the reverse search property.</t>
              </list>
                  </t>
                  <t>
              <list style="hanging">
                  <t hangText="&quot;Registrant Contact Information&quot;:">An email address, postal address, or some other information to be used to contact the registrant.</t>
              </list>
                  </t>
                  <t>
              <list style="hanging">
                  <t hangText="&quot;Reference&quot;:">Document (e.g. the RFC number) and section reference where the reverse search property is specified.</t>
              </list>
          </t>
          <t>The combination of &quot;Searchable Resource Type&quot;, &quot;Related Resource Type&quot; and &quot;Property&quot; MUST be unique across the registry entries.</t>
      </section>

      <section anchor="rdap-reverse-search-registry-initial-content" title="Initial Content">
        <t>IANA is requested to register the following entries in the &quot;RDAP Reverse Search&quot; registry.</t>

          <t>For all entries, the common values are shown in <xref target="table1"/> whereas the specific values are shown in <xref target="table2"/>.</t>
          <texttable anchor="table1" title="Common values for all entries in the &quot;RDAP Reverse Search&quot; registry">
              <ttcol align="left">Registry Property</ttcol>
              <ttcol align="left">Value</ttcol>
              <c>Searchable Resource Type</c><c>domains, nameservers, entities</c>
              <c>Related Resource Type</c><c>entity</c>
              <c>Registrant Name</c><c>IETF</c>
              <c>Registrant Contact Information</c><c>iesg@ietf.org</c>
              <c>Reference</c><c>This document, <xref target="reverse-search-on-entities"/></c>
          </texttable>

          <texttable anchor="table2" title="Specific values for all entries in the &quot;RDAP Reverse Search&quot; registry">
              <ttcol align="left">Property</ttcol>
              <ttcol align="left">Description</ttcol>
              <c>fn</c><c>The server supports the domain/nameserver/entity search based on the full name (a.k.a. formatted name) of an associated entity</c>
              <c>handle</c><c>The server supports the domain/nameserver/entity search based on the handle of an associated entity</c>
              <c>email</c><c>The server supports the domain/nameserver/entity search based on the email address of an associated entity</c>
              <c>role</c><c>The server supports the domain/nameserver/entity search based on the role of an associated entity</c>
          </texttable>
      </section>
     </section>

          <section anchor="rdap-reverse-search-mapping-registry" title="RDAP Reverse Search Mapping Registry">

              <section anchor="rdap-reverse-search-mapping-registry-template" title="Template">

                  <t>
                      <list style="hanging">
                          <t hangText="&quot;Searchable Resource Type&quot;:">The same as defined in the &quot;Reverse Search Registry&quot;.</t>
                      </list>
                  </t>
                  <t>
                      <list style="hanging">
                          <t hangText="&quot;Related Resource Type&quot;:">The same as defined in the &quot;Reverse Search Registry&quot;.</t>
                      </list>
                  </t>
                  <t>
                      <list style="hanging">
                          <t hangText="&quot;Property&quot;:">The same as defined in the &quot;Reverse Search Registry&quot;.</t>
                      </list>
                  </t>
                  <t>
                      <list style="hanging">
                          <t hangText="&quot;Property Path&quot;:">The JSONPath of the RDAP property this reverse search property maps to.</t>
                      </list>
                  </t>
                  <t>
                      <list style="hanging">
                          <t hangText="&quot;Registrant Name&quot;:">The name of the person registering this reverse search property mapping.</t>
                      </list>
                  </t>
                  <t>
                      <list style="hanging">
                          <t hangText="&quot;Registrant Contact Information&quot;:">The same as defined in the &quot;Reverse Search Registry&quot;.</t>
                      </list>
                  </t>
                  <t>
                      <list style="hanging">
                          <t hangText="&quot;Reference&quot;:">Document (e.g. the RFC number) and section reference where this reverse search property mapping is specified.</t>
                      </list>
                  </t>
 
                  <t>The combination of &quot;Searchable Resource Type&quot;, &quot;Related Resource Type&quot;, &quot;Property&quot; and &quot;Property Path&quot; MUST be unique across the registry entries.</t>
              </section>

              <section anchor="rdap-reverse-search-mapping-registry-initial-content" title="Initial Content">
                  <t>IANA is requested to register the following entries in the &quot;RDAP Reverse Search Mapping&quot; registry.</t>
                  <t>For all entries, the common values are the same as defined in the &quot;RDAP Reverse Search&quot; registry (see <xref target="table1"/>) whereas the specific values are shown in <xref target="table3"/>.</t>
                  <texttable anchor="table3" title="Specific values for all entries in the &quot;RDAP Reverse Search Mapping&quot; registry">
                      <ttcol align="left">Property</ttcol>
                      <ttcol align="left">Property Path</ttcol>
                      <c>fn</c><c>$.entities[*].vcardArray[1][?(@[0]=='fn')][3]</c>
                      <c>handle</c><c>$.entities[*].handle</c>
                      <c>email</c><c>$.entities[*].vcardArray[1][?(@[0]=='email')][3]</c>
                      <c>role</c><c>$.entities[*].roles</c>
                  </texttable>
              </section>
          </section>

      </section>

      </section>

      <section anchor="privacy-considerations" title="Privacy Considerations">
          <t>The search functionality defined in this document may affect the privacy of entities in the registry (and elsewhere) in various ways: see <xref target="RFC6973"/> for a general treatment of privacy in protocol specifications.  Registry operators should be aware of the tradeoffs that result from implementation of this functionality.</t>

          <t>Many jurisdictions have laws or regulations that restrict the use of &quot;Personal Data&quot;, per the definition in <xref target="RFC6973" />.  Given that, registry operators should ascertain whether the regulatory environment in which they operate permits implementation of the functionality defined in this document.</t>

          <t>In those cases where this functionality makes use of sensitive information, it MUST only be accessible to authorized users supported by lawful basis.</t>

          <t>Since reverse search requests and responses could contain Personally Identifiable Information (PII), reverse search functionality MUST be available over HTTPS only.</t>

          <t>Providing reverse search in RDAP carries the following threats as described in <xref target="RFC6973"/>:</t>
          <t><list style="symbols">
              <t>Correlation</t>
              <t>Disclosure</t>
              <t>Misuse of information</t>
          </list></t>

      <t>Therefore, RDAP providers need to mitigate the risk of those threats by implementing appropriate measures supported by security services (see <xref target="security-considerations"/>).</t>
      </section>

   <section anchor="security-considerations" title="Security Considerations">
      <t>Security services required to provide controlled access to the operations specified in this document are described in <xref target="RFC7481"/>.  A non-exhaustive list of access control paradigms an RDAP provider can implement is presented in <xref target="access-control-paradigms"/>.</t>
      <t>As an additional measure to enforce security by preventing reverse searches to be accessed from unauthorized users, the RDAP providers may consider to physically separate the reverse search endpoints from the other ones by configuring a proxy routing the reverse searches to a dedicated backend server and leveraging further security services offered by other protocol layers such as digital certificates and IP whitelisting.</t>
      <t>Finally, the specification of the relationship within the reverse search path allows the RDAP servers to implement different authorization policies on a per-relationship basis.</t>
   </section>

    <section title="Acknowledgements">
      <t>The authors would like to acknowledge the following individuals for their contributions to this document: Francesco Donini, Scott Hollenbeck, Francisco Arias, Gustavo Lozano, Eduardo Alvarez, Ulrich Wisser, James Gould and Pawel Kowalik.</t>
      <t>Tom Harrison and Jasdip Singh provided relevant feedback and constant support to the implementation of this proposal.  Their contributions have been greatly appreciated.</t>
    </section>
  </middle>
  <back>
    <references title="Normative References">
      &I-D.ietf-jsonpath-base;
      &RFC2119;
      &RFC6350;
      &RFC7095;
      &RFC7481;
      &RFC7942;
      &RFC8126;
      &RFC8174;
      &RFC9082;
      &RFC9083;
      &RFC9110;
    </references>
    
    <references title="Informative References">
      &RFC3912;
      &RFC5730;
      &RFC6973;
      &RFC8977;
      &RFC8982;
        <reference anchor='ICANN-RA' target='https://newgtlds.icann.org/sites/default/files/agreements/agreement-approved-31jul17-en.pdf'>
		<front>
		<title>Registry Agreement</title>
		<author>
		<organization>Internet Corporation For Assigned Names and Numbers</organization>		
		</author>
		<date year='2017' month='July' />		
		</front>
	</reference>
        <reference anchor='ICANN-RDS1' target='https://www.icann.org/en/system/files/files/final-report-06jun14-en.pdf'>
		<front>
		<title>Final Report from the Expert Working Group on gTLD Directory Services: A Next-Generation Registration Directory Service (RDS)</title>
		<author>
		<organization>Internet Corporation For Assigned Names and Numbers</organization>		
		</author>
		<date year='2014' month='June' />		
		</front>
	</reference>
        <reference anchor='ICANN-RDS2' target='http://whois.icann.org/sites/default/files/files/final-issue-report-next-generation-rds-07oct15-en.pdf'>
		<front>
		<title>Final Issue Report on a Next-Generation gTLD RDS to Replace WHOIS</title>
		<author>
		<organization>Internet Corporation For Assigned Names and Numbers</organization>		
		</author>
		<date year='2015' month='October' />		
		</front>
	</reference>
    <reference anchor="OIDCC" target="http://openid.net/specs/openid-connect-core-1_0.html">
        <front>
            <title>OpenID Connect Core incorporating errata set 1</title>
            <author initials="" surname="">
                <organization>OpenID Foundation</organization>
            </author>
            <date month="November" year="2014" />
        </front>
    </reference>
    </references>

      <section anchor="access-control-paradigms" title="Paradigms to Enforce Access Control on Reverse Search in RDAP">
          <t>Access control can be implemented according to different paradigms introducing increasingly stringent rules.  The paradigms reported here in the following leverage the capabilities either built-in or provided as extensions by the OpenID Connect <xref target="OIDCC"/>:</t>
          <t><list style="symbols">
              <t>Role-Based Access Control (RBAC): access rights are granted depending on roles.  Generally, this is done by grouping users into fixed categories and assigning static grants to each category.  A more dynamic approach can be implemented by using the OpenID Connect &quot;scope&quot; claim;<vspace blankLines='1' /></t>
              <t>Purpose-Based Access Control (PBAC): access rules are based on the notion of purpose, being the intended use of some data by a user.  It can be implemented by tagging a request with the usage purpose and making the RDAP server check the compliance between the given purpose and the control rules applied to the data to be returned;<vspace blankLines='1' /></t>
              <t>Attribute-Based Access Control (ABAC): rules to manage access rights are evaluated and applied according to specific attributes describing the context within which data are requested.  It can be implemented by setting within an out-of-band process additional OpenID Connect claims describing the request context and making the RDAP server check the compliance between the given context and the control rules applied to the data to be returned;<vspace blankLines='1' /></t>
              <t>Time-Based Access Control (TBAC): data access is allowed for a limited time only.  It can be implemented by assigning the users with temporary credentials linked to access grants whose scope is limited.</t>
          </list></t>

          <t>With regard to the privacy threats reported in <xref target="privacy-considerations"/>, correlation and disclosure can be mitigated by minimizing both the request features and the response data based on user roles (i.e. RBAC).  Misuse can be mitigated by checking for the purpose of the request (i.e. PBAC).  It can be accomplished according to the following approaches:</t>
          <t><list style="symbols">
              <t>Full Trust: the registry trusts the fairness of an accredited user.  The requestor is always legitimized to submit his requests under a lawful basis. Additionally, he can be required to specify the purpose as either a claim of his account or a query parameter.  In the former case, the purpose is assumed to be the same for every request.  In the latter case, the purpose must be one of those associated to the user;<vspace blankLines='1' /></t>
              <t>Zero Trust: the registry requires documents assessing that the requestor is legitimized to submit a given request.  It can be implemented by assigning the requestor with temporary OpenID account linked to the given request (i.e. TBAC) and describing the request through a set of claims (i.e. ABAC).  The association between the temporary account and the claims about the request is made by an out-of-band application.  In so doing, the RDAP server is able to check that the incoming request is consistent with the request claims linked to the temporary account.</t>
          </list></t>
          <t>The two approaches can be used together:</t>
          <t><list style="symbols">
              <t>The former is suitable for users carrying out a task in the public interest, or exercising their official authority (e.g. an officer of a cybercrime agency).  Similarly, registrars can submit reverse searches on their domains and contacts based on their contractual relationship with the domain holders.  In this case, the query results can be restricted to those pertaining a registrar by adding an implicit predicate to the search condition.<vspace blankLines='1' /></t>
              <t>The latter can be taken to allow domain name dispute resolution service providers to request information in defense of the legitimate interests of complainants.</t>
          </list></t>
      </section>
 </back>
</rfc>
