Internet Engineering Task Force (IETF) T. Sattler Internet-Draft Intended status: Standards Track J. Kolker Expires: January 3, 2022 GoDaddy Inc. December 21, 2021 Object Search for the Extensible Provisioning Protocol (EPP) draft-sattler-kolker-epp-object-search-00 Abstract This document describes an Extensible Provisioning Protocol (EPP) extension called "Object Search", which EPP clients use to search and list EPP objects stored by EPP servers. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress". This Internet-Draft will expire on January 3, 2022. Copyright Notice Copyright (c) 2021 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. Sattler & Kolker Expires January 3, 2022 [Page 1] Internet-Draft EPP Object Search December 2021 Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1. Terminology and Definitions . . . . . . . . . . . . . . . 3 2. Migrating to Newer Versions of This Extension . . . . . . . . 4 3. Object Attributes . . . . . . . . . . . . . . . . . . . . . . 4 3.1. Object Search Elements . . . . . . . . . . . . . . . . . 4 4. EPP Command Mapping . . . . . . . . . . . . . . . . . . . . . 5 4.1. EPP Query Commands . . . . . . . . . . . . . . . . . . . 5 4.1.1. EPP Command . . . . . . . . . . . . . . . . . 5 4.1.1.1. Object Search Domains . . . . . . . . . . . . . . . 5 4.1.1.2. Object Search Contacts . . . . . . . . . . . . . . 7 4.1.1.3. Object Search Hosts . . . . . . . . . . . . . . . . 8 4.2. EPP Transform Commands . . . . . . . . . . . . . . . . . 10 5. Formal Syntax . . . . . . . . . . . . . . . . . . . . . . . . 10 5.1. Object Search EPP Mapping Schema . . . . . . . . . . . . 10 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 13 6.1. XML Namespace . . . . . . . . . . . . . . . . . . . . . . 13 6.2. EPP Extension Registry . . . . . . . . . . . . . . . . . 13 7. Security Considerations . . . . . . . . . . . . . . . . . . . 13 8. Implementation Status . . . . . . . . . . . . . . . . . . . . 14 9. References . . . . . . . . . . . . . . . . . . . . . . . . . 14 9.1. Normative References . . . . . . . . . . . . . . . . . . 14 9.2. Informative References . . . . . . . . . . . . . . . . . 15 Appendix A. Change History . . . . . . . . . . . . . . . . . . . 15 Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . 15 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 15 Sattler & Kolker Expires January 3, 2022 [Page 2] Internet-Draft EPP Object Search December 2021 1. Introduction The Extensible Provisioning Protocol (EPP), as defined in [RFC5730], is a protocol whose original motivation is to provide a standard Internet domain name registration protocol for use between registries and registrars. Registrars can transform EPP objects either with , , , , or according to [RFC5730]. They are usually responsible for maintaining their inventory themselves. Due to various reasons, such as consolidation of registrars, migrations, development of new management systems, etc., it may happen that a registrar has lost track of its inventory. EPP already provides query capabilities with and , but those are limited to looking up exact strings. Therefore, it is desirable to implement a search functionality via EPP to find any forgotten or orphaned objects. This document describes an extension mapping for version 1.0 of the EPP to provide a mechanism by which EPP clients can search and list EPP objects stored by EPP servers. 1.1. Terminology and Definitions The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. XML [W3C.REC-xml11-20060816] is case-sensitive. Unless stated otherwise, XML specification and examples provided in this document MUST be interpreted in the character case presented in order to develop a conforming implementation. "object-search" is used as an abbreviation for "urn:ietf:params:xml: ns:epp:object-search-0.1". The XML namespace prefix "object-search" is used, but implementations MUST NOT depend on it. Instead, they are to employ a proper namespace-aware XML parser and serializer to interpret and output the XML documents. In examples, "C:" represents lines sent by a protocol client, and "S:" represents lines returned by a protocol server. Indentation and white space in examples are provided only to illustrate element relationships and are not a required feature of this protocol. Sattler & Kolker Expires January 3, 2022 [Page 3] Internet-Draft EPP Object Search December 2021 2. Migrating to Newer Versions of This Extension Servers that implement this extension SHOULD provide a way for clients to progressively update their implementations when a new version of the extension is deployed. A newer version of the extension is expected to use an XML namespace with a higher version number than the prior versions. Servers SHOULD (for a temporary migration period up to server policy) provide support for older versions of the extension in parallel to the newest version and allow clients to execute their preferred version of the command based on the object search elements of the server . The version of the object search response MUST match the version of the object search command executed by the server. 3. Object Attributes 3.1. Object Search Elements The minimum character for a search pattern and the the limit for the search results is up to server policy. The search pattern for the domain object; the attribute "type" is REQUIRED and MUST either be "name", "contact", "host", "status", "crDate", "upDate", "exDate", or "trDate". The attribute "filter" REQUIRED and MUST be present to identify the filter and MUST either be "exact", "begins", "ends", or "contains". The search pattern for the host object; the attribute "type" is REQUIRED and MUST either be "name", "ipv4", or "ipv6". The attribute "filter" is REQUIRED and MUST be present to identify the filter and MUST either be "exact", "begins", "ends", or "contains". The search pattern for the contact object; the attribute "type" is REQUIRED and MUST either be "id", "name", "orga", "street", "city", "state", "postcode", "email", "voice", "fax", or "country". The attribute "filter" is REQUIRED and MUST be present to identify the filter and MUST either be "exact", "begins", "ends", or "contains". Sattler & Kolker Expires January 3, 2022 [Page 4] Internet-Draft EPP Object Search December 2021 4. EPP Command Mapping A detailed description of the EPP syntax and semantics can be found in the EPP core protocol specification [RFC5730]. The command mappings described here are specifically used to search for objects and object mapping. 4.1. EPP Query Commands EPP [RFC5730] provides four commands to retrieve object information: to determine if an object is known to the server, to retrieve detailed information associated with an object, to discover and retrieve service messages, and to retrieve object transfer status information. This extension does not add any elements to EPP , , and commands or responses. 4.1.1. EPP Command EPP provides the command that is used to looking up objects. In addition to the standard EPP command elements, the command MUST contain a element that allows objects to be searched. The element MUST contain a child element. It is either the child element, described in Section 4.1.1.1, to search domains, the child element, described in Section 4.1.1.2, to search contacts, or the child element, described in Section 4.1.1.3, to search hosts. 4.1.1.1. Object Search Domains A search for domain objects can be performed by using the command with the element and the child element, defined in Section 3.1. Example to search for a domain object in an command. C: C: C: C: C: C: example C: C: C: C: ABC-12345 C: C: Sattler & Kolker Expires January 3, 2022 [Page 5] Internet-Draft EPP Object Search December 2021 When an command has been processed successfully, the EPP element MUST contain a child element that identifies the object search namespace. The element contains the element with zero or more child elements. The "total" attribute is REQUIRED and MUST contain the total number of the search result. This allows the client to determine if the search needs to be refined if the number is too large. The element contains child elements defined in Section 3.1. Example of returning the list of object search items in an response. S: S: S: S: S: Command completed successfully S: S: S: S: S: S: S: example.com S: S: S: S: S: example.net S: S: S: S: S: S: S: ABC-12345 S: 54321-XYZ S: S: S: Sattler & Kolker Expires January 3, 2022 [Page 6] Internet-Draft EPP Object Search December 2021 4.1.1.2. Object Search Contacts A search for contact objects can be performed by using the command with the element and the child element, defined in Section 3.1. Example to search for a contact object in an command. C: C: C: C: C: C: John C: C: C: C: ABC-12346 C: C: When an command has been processed successfully, the EPP element MUST contain a child element that identifies the object search namespace. The element contains the element with zero or more child elements. The "total" attribute is REQUIRED and MUST contain the total number of the search result. This allows the client to determine if the search needs to be refined if the number is too large. The element contains the child element defined in Section 3.1. Sattler & Kolker Expires January 3, 2022 [Page 7] Internet-Draft EPP Object Search December 2021 Example of returning the list of object search items in an response. S: S: S: S: S: Command completed successfully S: S: S: S: S: S: S: sh8013 S: S: S: S: S: sah8013 S: S: S: S: S: S: S: ABC-12346 S: 54322-XYZ S: S: S: 4.1.1.3 Object Search Hosts A search for host objects can be performed by using the command with the element and the child element, defined in Section 3.1. Example to search for a host object in an command. C: C: C: C: C: C: example.com C: C: C: C: ABC-12347 C: C: Sattler & Kolker Expires January 3, 2022 [Page 8] Internet-Draft EPP Object Search December 2021 When an command has been processed successfully, the EPP element MUST contain a child element that identifies the object search namespace. The element contains the element with zero or more child elements. The "total" attribute is REQUIRED and MUST contain the total number of the search result. This allows the client to determine if the search needs to be refined if the number is too large. The element contains the child element defined in Section 3.1. Example of returning the list of object search items in an response. S: S: S: S: S: Command completed successfully S: S: S: S: S: S: S: ns1.example.com S: S: S: S: S: ns2.example.com S: S: S: S: S: S: S: ABC-12347 S: 54323-XYZ S: S: S: Sattler & Kolker Expires January 3, 2022 [Page 9] Internet-Draft EPP Object Search December 2021 4.2. EPP Transform Commands EPP provides five commands to transform objects: to create an instance of an object, to delete an instance of an object, to extend the validity period of an object, to manage object sponsorship changes, and to change information associated with an object. This extension does not add any elements to the EPP , , , , and . 5. Formal Syntax The EPP Object Search schema is presented here. The formal syntax presented here is a complete schema representation of the object mapping suitable for automated validation of EPP XML instances. The and tags are not part of the schema; they are used to note the beginning and end of the schema for URI registration purposes. 5.1. Object Search EPP Mapping Schema Extensible Provisioning Protocol v1.0 Object Search Mapping Schema. Sattler & Kolker Expires January 3, 2022 [Page 10] Internet-Draft EPP Object Search December 2021 Sattler & Kolker Expires January 3, 2022 [Page 11] Internet-Draft EPP Object Search December 2021 Sattler & Kolker Expires January 3, 2022 [Page 12] Internet-Draft EPP Object Search December 2021 6. IANA Considerations 6.1. XML Namespace This document uses URNs to describe XML namespaces and XML schemas conforming to a registry mechanism defined in [RFC3688]. Registration request for the object search namespace: URI: urn:ietf:params:xml:ns:epp:object-search-0.1 Registrant Contact: IESG XML: None. Namespace URIs do not represent an XML specification. Registration request for the object search schema: URI: urn:ietf:params:xml:schema:epp:object-search-0.1 Registrant Contact: IESG XML: See the "Formal Syntax" section of this document. 6.2. EPP Extension Registry The following registration of the EPP Extension Registry, described in [RFC7451], is requested: Name of Extension: Object Search for the Extensible Provisioning Protocol (EPP) Document status: Standards Track Reference: (insert the reference to RFC version of this document) Registrant Name and Email Address: IESG TLDs: Any IPR Disclosure: None Status: Active Notes: None 7. Security Considerations The mapping extensions described in this document do not provide any security services beyond those described by EPP [RFC5730] and protocol layers used by EPP. The security considerations described in these other specifications apply to this specification as well. Sattler & Kolker Expires January 3, 2022 [Page 13] Internet-Draft EPP Object Search December 2021 8. Implementation Status Note to RFC Editor: Please remove this section and the reference to [RFC7942] before publication. This section records the status of known implementations of the protocol defined by this specification at the time of posting of this Internet-Draft, and is based on a proposal described in [RFC7942]. The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs. Please note that the listing of any individual implementation here does not imply endorsement by the IETF. Furthermore, no effort has been spent to verify the information presented here that was supplied by IETF contributors. This is not intended as, and must not be construed to be, a catalog of available implementations or their features. Readers are advised to note that other implementations may exist. According to [RFC7942], "this will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature. It is up to the individual working groups to use this information as they see fit". 9. References 9.1. Normative References [W3C.REC-xml11-20060816] Bray, T., Paoli, J., Sperberg-McQueen, M., Maler, E., Yergeau, F., and J. Cowan, "Extensible Markup Language (XML) 1.1 (Second Edition)", World Wide Web Consortium Recommendation REC-xml11-20060816, 16 August 2006, . Latest version available at . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC5730] Hollenbeck, S., "Extensible Provisioning Protocol (EPP)", STD 69, RFC 5730, DOI 10.17487/RFC5730, August 2009, . [RFC7942] Sheffer, Y. and A. Farrel, "Improving Awareness of Running Code: The Implementation Status Section", BCP 205, RFC 7942, DOI 10.17487/RFC7942, July 2016, . Sattler & Kolker Expires January 3, 2022 [Page 14] Internet-Draft EPP Object Search December 2021 [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . 9.2. Informative References [RFC3688] Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688, DOI 10.17487/RFC3688, January 2004, . [RFC7451] Hollenbeck, S., "Extension Registry for the Extensible Provisioning Protocol", RFC 7451, DOI 10.17487/RFC7451, February 2015, . Appendix A. Change History TBD Acknowledgments The author wish to thank the following persons for their feedback and suggestions: TBD Authors' Addresses Tobias Sattler Email: mail@tobiassattler.com URI: https://tobiassattler.com Jody Kolker GoDaddy Inc. 2155 E GoDaddy Way Tempe, AZ 85284 United States of America Email: jkolker@godaddy.com URI: https://www.godaddy.com Sattler & Kolker Expires January 3, 2022 [Page 15]