RFC 3735

Guidelines for Extending the Extensible Provisioning Protocol (EPP)

πŸ“… published March 2004, from ietf

Guidelines for Extending the Extensible Provisioning Protocol (EPP) πŸŽ€

Okay bestie, RFC 3735 is all about how to add new features to EPP without breaking the protocol you already have πŸ’…. It's by S. Hollenbeck from VeriSign, Inc., it's an Informational doc from March 2004, so it's basically friendly guidance and not an Internet standard πŸ¦‹. The header doesn't list anything it obsoletes or updates 🌸. Let's get into it ✨

Status of This Memo 🧚

This memo provides information for the Internet community. It does not specify an Internet standard of any kind. Distribution of this memo is unlimited πŸ“.

Copyright (C) The Internet Society (2004). All Rights Reserved πŸ”’.

Abstract 🌈

EPP is an application layer client-server protocol for provisioning and managing objects stored in a shared central repository. It's specified in XML 🫢. The protocol defines generic object management operations and an extensible framework that maps protocol operations to objects, which is honestly so iconic 😭. This document gives guidelines for using EPP's extension mechanisms to define new features and new object management capabilities ✨.

Table of Contents πŸ“‹

1.  Introduction . . . . . . . . . . . . . . . . . . . . . . . .  2
    1.1.  Conventions Used In This Document. . . . . . . . . . .  2
2.  Principles of Protocol Extension . . . . . . . . . . . . . .  3
    2.1.  Documenting Extensions . . . . . . . . . . . . . . . .  3
    2.2.  Identifying Extensions . . . . . . . . . . . . . . . .  4
          2.2.1.  Standards Track Extensions . . . . . . . . . .  4
          2.2.2.  Other Extensions . . . . . . . . . . . . . . .  5
    2.3.  Extension Announcement and Selection . . . . . . . . .  5
    2.4.  Protocol-level Extension . . . . . . . . . . . . . . .  7
    2.5.  Object-level Extension . . . . . . . . . . . . . . . .  7
    2.6.  Command-Response Extension . . . . . . . . . . . . . .  7
    2.7.  Authentication Information Extension . . . . . . . . .  7
3.  Selecting an Extension Mechanism . . . . . . . . . . . . . .  8
    3.1.   Mapping and Extension Archives  . . . . . . . . . . .  9
4.  Internationalization Considerations  . . . . . . . . . . . .  9
5.  IANA Considerations  . . . . . . . . . . . . . . . . . . . . 10
6.  Security Considerations  . . . . . . . . . . . . . . . . . . 10
7.  References . . . . . . . . . . . . . . . . . . . . . . . . . 10
    7.1.  Normative References . . . . . . . . . . . . . . . . . 10
    7.2.  Informative References . . . . . . . . . . . . . . . . 11
8.  URIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
9.  Author's Address . . . . . . . . . . . . . . . . . . . . . . 12
10. Full Copyright Statement . . . . . . . . . . . . . . . . . . 13

1. Introduction ✨

EPP (cited as [2]) was originally designed as a standard Internet domain name registration protocol, for use between domain name registrars and domain name registries 🌸. BUT the designers made specific choices so it could also work in other provisioning environments, and that's the main character energy πŸ‘‘. Specifically:

  • Extensibility was a design goal from the very beginning. EPP is represented in the Extensible Markup Language (XML, [3]), and is specified in XML Schema ([4] and [5]) with XML namespaces [6] used to identify protocol grammars 🧚.
  • The EPP core protocol specification describes general protocol functions, not the objects to be managed by the protocol. Managed object definitions, such as the mapping for Internet domain names [10] (itself a protocol extension), are loosely coupled to the core specification πŸ¦‹.
  • A concentrated effort was made to separate required minimum protocol functionality from object management operating logic πŸ’….
  • Several extension mechanisms were included so designers can add new features or customize existing features for different operating environments πŸ“.

This document goes deep on EPP's extensibility features and gives guidelines for using them 🫢. It's written for protocol designers thinking about EPP as the answer to a provisioning problem, but honestly anyone who wants to use XML to represent IETF protocols might find these tips useful πŸ’–.

XML is case sensitive. Unless stated otherwise, XML instances and examples provided in this document MUST be interpreted in the character case presented to develop a conforming implementation πŸ”₯. Don't skip this one, it's a whole thing πŸ™ˆ.

1.1. Conventions Used In This Document 🌈

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 [1] πŸ“š.

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 only exist to show how elements relate to each other, and they are not a REQUIRED feature of this specification πŸŽ€.

2. Principles of Protocol Extension πŸ‘‘

The EPP extension model is based on the XML representation for a wildcard schema component, using an <any> element information item (as described in section 3.10.2 of [4]) and XML namespaces [6]. This section gives guidelines for developing protocol extensions and explains the extension model in detail 🧚.

Extending a protocol means adding features WITHOUT changing the protocol itself πŸ¦‹. In EPP, that means an extension MUST NOT alter an existing protocol schema, because changes may create new versions of an existing schema instead of extensions of it πŸ™…β€β™€οΈ. For example, a designer MUST NOT add new elements to an existing schema and call the result an "extension" of the protocol πŸ’€. The result is a new, non-backwards-compatible version of an existing schema. Extensions MUST adhere to the principles described in this section to be considered valid protocol extensions ✨.

EPP extensions MUST be specified in XML πŸ’…. This makes sure that parsers able to process EPP structures can also process EPP extensions 🫢. Guidelines for using XML in IETF protocols (which are also good info for extension designers) can be found in RFC 3470 [11] πŸ“–.

A designer MUST remember that extensions themselves MAY also be extensible 🌸. A good chain of extensions is one where the protocol schemas evolve from general functionality to more specific (maybe even more limited) functionality πŸ“. Layers, bestie πŸŽ€.

2.1. Documenting Extensions πŸ“

The EPP core specification [2] has an appendix with a suggested outline for documenting protocol extensions. Designers are free to use this template or any other format they like, but the extension document SHOULD at a minimum address all of the topics listed in the template πŸ’–.

Extension designers need to think about the intended audience and consumers of their extensions πŸ‘€. Extensions MAY be documented as Internet-Draft and RFC documents if the designer needs coordination, interoperability, and broad distribution 🌈. The intended maturity level (informational, proposed standard, etc.) depends largely on what is being extended and how much general interest there is in the extension πŸ”₯. An extension to a standards-track specification with broad interest might well be a candidate for standards track publication, whereas an extension to a standards track specification with limited interest might be better suited for informational publication 🧚.

Extensions do NOT need to be published as Internet-Draft or RFC documents if they're meant for operation in a closed environment or are otherwise meant for a limited audience πŸ”’. In that case, extensions MAY be documented in a file and structural format that suits the intended audience πŸ¦‹.

2.2. Identifying Extensions πŸ†”

An EPP extension is uniquely identified by a Uniform Resource Identifier (URI, defined in RFC 2396 [7]) πŸŽ€. The URI used to identify the extension MUST also be used to identify the XML namespace associated with the extension πŸ’…. Any valid URI MAY be used to identify an EPP extension, though choosing a URI form (Uniform Resource Locator (URL) vs. Uniform Resource Name (URN), hierarchical vs. relative, etc.) SHOULD depend on things like organizational policies on change control and a balance between locating resources and needs for persistence 🌸. An extension namespace MAY describe multiple extension mechanisms, such as defining new protocol features, objects, or elements, within the schema used to define the namespace ✨.

Here are some sample extension-identifying URIs:

urn:ietf:params:xml:ns:foo-ext1

http://custom/obj1ext-1.0

Extension designers MAY include version information in the URI used to identify an extension. If version information is included, the URI itself will need to change as the extension is revised or updated πŸ”„. Heads up, that's a lot of URI churn πŸ™ˆ.

2.2.1. Standards Track Extensions πŸ†

URIs for extensions intended for IETF standards track use MUST conform to the URN syntax specifications and registration procedures described in [8] πŸ‘‘.

2.2.2. Other Extensions 🧁

URIs for extensions that are NOT intended for IETF standards track use MUST conform to the URI syntax specifications described in RFC 2396 πŸ’œ.


2.3. Extension Announcement and Selection πŸ“£

okay so the server has to tell clients which extensions it has, and it MUST do that inside a <greeting> element that gets sent before the client starts an interactive session πŸ’… the <greeting> can hold zero or more <svcExtension> elements, and if they're there, each one has a URI naming an available extension ✨

S:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
S:<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
S:     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
S:     xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
S:     epp-1.0.xsd">
S:  <greeting>
S:    <svID>Example EPP server epp.example.com</svID>
S:    <svDate>2000-06-08T22:00:00.0Z</svDate>
S:    <svcMenu>
S:      <version>1.0</version>
S:      <lang>en</lang>
S:      <lang>fr</lang>
S:      <objURI>urn:ietf:params:xml:ns:obj1</objURI>
S:      <objURI>urn:ietf:params:xml:ns:obj2</objURI>
S:      <objURI>urn:ietf:params:xml:ns:obj3</objURI>
S:      <svcExtension>
S:        <extURI>urn:ietf:params:xml:ns:foo-ext1</extURI>
S:        <extURI>http://custom/obj1ext-1.0</extURI>
S:      </svcExtension>
S:    </svcMenu>
S:    <dcp>
S:      <access><all/></access>
S:      <statement>
S:        <purpose><admin/><prov/></purpose>
S:        <recipient><ours/><public/></recipient>
S:        <retention><stated/></retention>
S:      </statement>
S:    </dcp>
S:  </greeting>
S:</epp>

In the example above, the server is announcing the availability of two extensions:

An EPP client MUST establish a session with an EPP server using the EPP <login> command before it tries to use any standard commands or extensions πŸ”‘ the <login> command can hold zero or more <svcExtension> elements, and if they're there, each one has a URI naming an available extension the client wants to use during the session πŸŽ€

C:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
C:<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
C:     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
C:     xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
C:     epp-1.0.xsd">
C:  <command>
C:    <login>
C:      <clID>ClientX</clID>
C:      <pw>foo-BAR2</pw>
C:      <newPW>bar-FOO2</newPW>
C:      <options>
C:        <version>1.0</version>
C:        <lang>en</lang>
C:      </options>
C:      <svcs>
C:        <objURI>urn:ietf:params:xml:ns:obj1</objURI>
C:        <objURI>urn:ietf:params:xml:ns:obj2</objURI>
C:        <objURI>urn:ietf:params:xml:ns:obj3</objURI>
C:        <svcExtension>
C:          <extURI>http://custom/obj1ext-1.0</extURI>
C:        </svcExtension>
C:      </svcs>
C:    </login>
C:    <clTRID>ABC-12345</clTRID>
C:  </command>
C:</epp>

In the example above, the client says it wants to use the extension identified by http://custom/obj1ext-1.0 during the session that starts once the <login> command succeeds πŸ¦‹

An EPP server MUST announce all extensions that are publicly available for client use πŸ“’ An EPP client MUST NOT request an extension that the server hasn't announced πŸ™…β€β™€οΈ An EPP server MAY restrict a client's ability to select an extension based on the client's identity and the authorizations the server operator has granted πŸ‘‘

2.4. Protocol-level Extension 🧱

EPP defines a set of structures for client-server command-response interaction, but additional structures MAY be added to the protocol πŸ’œ Defining a new structure means writing a schema for it that describes the functionality it needs, and assigning a URI that uniquely identifies its object namespace and schema ✨ The specific protocol-level extension mechanisms are described in section 2.7.1 of the EPP core protocol specification [2].

2.5. Object-level Extension 🌸

EPP commands and responses don't contain attributes that are specific to any managed object. Every command and response MUST contain elements bound to an object namespace πŸŽ€ Defining an object means writing a schema for it that describes the functionality for each needed command and its associated response, and assigning a URI that uniquely identifies the object namespace and schema 🧚 The specific object-level extension mechanisms are described in section 2.7.2 of the EPP core protocol specification [2].

2.6. Command-Response Extension πŸ“

EPP command and response structures defined in existing object mappings MAY also be extended πŸ’… For example, an object mapping that describes general functionality for provisioning Internet domain names can be extended to include additional command and response elements needed for provisioning domain names that represent E.164 telephone numbers [12]. The specific command-response extension mechanisms are described in section 2.7.3 of the EPP core protocol specification [2].

2.7. Authentication Information Extension πŸ”

Some EPP object mappings, such as the Internet domain name mapping [10], include elements that attach authentication information (like a password) to an object 🫢 The schema for any object mapping that supports authentication information SHOULD be flexible enough to specify multiple forms of authentication information 🌈 With XML Schema ([4] and [5]), this can be done by offering an element choice that includes an <any> element information item:

<any namespace="##other"/>

3. Selecting an Extension Mechanism ✨

Extensibility is a superpower of XML, but it also gives you lots of chances to make poor design decisions 😭 There are usually several different ways to accomplish a single task, and while all of them may "work" (for some definition of "work"), one extension form will usually be a better fit than the others for a given task πŸ’– The following sequence of steps can be followed to pick a good extension form for your extension problem:

  • Command-Response Extension: Adding elements to an existing object mapping is the simplest form of extension available, so it's the form that should be explored before any other form is considered πŸ’… The first question to ask when considering an extension form is therefore:
Can the task be accomplished by adding to an existing object mapping or changing an existing object mapping slightly?

If the answer to this question is "yes", you should consider extending an existing object mapping to complete your task. Knowing where to find object mappings is critical to answering this question; see section Section 3.1 for information describing mapping archives. If the answer to this question is "no", consider an object-level extension next.

  • Object-level Extension: If there is no existing object mapping that can be extended to meet your requirements, consider developing a new object mapping 🌟 The second question to ask when considering an extension form is therefore:
Can the task be accomplished using the existing EPP command and response structures applied to a new object?

If the answer to this question is "yes", you should consider developing a new object mapping to complete your task. A new object mapping should differ significantly from existing object mappings. If you find that a new mapping is replicating a significant number of structures found in an existing mapping, you probably answered the command-response question incorrectly πŸ™ˆ If the answer to this question is "no", consider a protocol-level extension next.

  • Protocol-level Extension: If there is no existing object mapping that can be extended to meet your requirements, and the existing EPP command and response structures are insufficient, consider developing new protocol commands, responses, or other structures πŸ”₯ The third and final question to ask when considering an extension form is therefore:
Can the task be accomplished by adding new EPP commands, responses, or other structures applied to new or existing objects?

If the answer to this question is "no", EPP can not be used directly to complete your task. If the answer to this question is "yes", extend the protocol by defining new operational structures.

The extension forms and decision points listed here are presented in order of complexity. Picking an extension form without careful thought about your options can add complexity without any gain in functionality πŸ’€

3.1. Mapping and Extension Archives πŸ—‚οΈ

Existing object mappings are a critical resource when you're trying to select an appropriate extension form πŸ¦‹ Existing mappings or extensions can give you a solid basis for further extension, but designers have to know where to find them before they can consider using them πŸ‘€

Several organizations maintain archives of XML structures that can be useful extension platforms. These include:

  • The IETF: Object mappings and other extensions have been documented in RFCs and Internet-Drafts πŸ“š
  • IANA: Guidelines and registration procedures for an IANA XML registry used by the IETF are described in "The IETF XML Registry" [8].
  • OASIS [16]: OASIS maintains an XML archive containing schema definitions for use in business applications of XML πŸ’Ό
  • XML.org [17]: XML.org maintains an XML archive containing schema definitions for use in multiple industries 🏭
  • Other archives are likely in the future. Consult your favorite Internet search engine for additional resources πŸ”

4. Internationalization Considerations 🌍

EPP is represented in XML [3], which requires conforming parsers to recognize both UTF-8 [13] and UTF-16 [14]. Support for other character encodings is also possible 🌈 EPP extensions MUST observe both the Internationalization Considerations described in the EPP core protocol specification [2] and the IETF policy on the use of character sets and languages described in RFC 2277 [9] 🫢


5. IANA Considerations 🧾

This memo has no direct impact on the IANA πŸŽ€ Guidelines for extensions that require IANA action are described in Section 2.2.1.


6. Security Considerations πŸ”

Okay, this section is serious, bestie. Read it twice. πŸ’€

EPP extensions inherit the security services of the protocol structure being extended. For example, an extension of an object mapping inherits all of the security services of that object mapping πŸ›‘οΈ Extensions MAY specify additional security services, such as services for peer entity authentication, confidentiality, data integrity, authorization, access control, or non-repudiation πŸ”’ Extensions MUST NOT mandate removal of security services available in the protocol structure being extended 🚫

Protocol designers developing EPP extensions need to be aware of the security threats they'll face in their intended operating environment, so that appropriate security services can be provided πŸ‘€ Guidelines for designers to consider, and suggestions for writing an appropriate Security Considerations section, can be found in RFC 3552 [15] πŸ“–


7. References πŸ“š

7.1. Normative References ✨

Okay bestie, these are the must-read docs πŸ“š Every one of them is a normative reference, so the spec leans on them directly. The XML and namespace stuff comes from W3C, and the rest are IETF and BCP docs. 🫢

  • [1] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.
  • [2] Hollenbeck, S., "Extensible Provisioning Protocol (EPP)", RFC 3730, March 2004.
  • [3] Bray, T., Paoli, J., Sperberg-McQueen, C. and E. Maler, "Extensible Markup Language (XML) 1.0 (2nd ed)", W3C REC-xml, October 2000, <http://www.w3.org/TR/REC-xml>.
  • [4] Thompson, H., Beech, D., Maloney, M. and N. Mendelsohn, "XML Schema Part 1: Structures", W3C REC-xmlschema-1, May 2001, <http://www.w3.org/TR/xmlschema-1/>.
  • [5] Biron, P. and A. Malhotra, "XML Schema Part 2: Datatypes", W3C REC-xmlschema-2, May 2001, <http://www.w3.org/TR/xmlschema-2/>.
  • [6] Bray, T., Hollander, D. and A. Layman, "Namespaces in XML", W3C REC-xml-names, January 1999, <http://www.w3.org/TR/REC-xml-names>.
  • [7] Berners-Lee, T., Fielding, R. and L. Masinter, "Uniform Resource Identifiers (URI): Generic Syntax", RFC 2396, August 1998.
  • [8] Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688, January 2004.
  • [9] Alvestrand, H., "IETF Policy on Character Sets and Languages", BCP 18, RFC 2277, January 1998.

7.2. Informative References 🌸

These ones are the extra-credit reading. They're handy background and not required to build the spec. 🧚

  • [10] Hollenbeck, S., "Extensible Provisioning Protocol (EPP) Domain Name Mapping", RFC 3731, March 2004.
  • [11] Hollenbeck, S., Rose, M. and L. Masinter, "Guidelines for the Use of Extensible Markup Language (XML) within IETF Protocols", BCP 70, RFC 3470, January 2003.
  • [12] Hollenbeck, S., "Extensible Provisioning Protocol E.164 Number Mapping", Work in Progress, February 2003.
  • [13] Yergeau, F., "UTF-8, a transformation format of ISO 10646", RFC 2279, January 1998.
  • [14] Hoffman, P. and F. Yergeau, "UTF-16, an encoding of ISO 10646", RFC 2781, February 2000.
  • [15] Rescorla, E. and B. Korver, "Guidelines for Writing RFC Text on Security Considerations", BCP 72, RFC 3552, July 2003.

8. URIs πŸ¦‹

Here are the two URIs the document points to. Bookmark these, they're iconic. πŸ’œ

9. Author's Address πŸ’…

This is who wrote it, the contact info for the author behind it all. πŸŽ€

Scott Hollenbeck
VeriSign, Inc.
21345 Ridgetop Circle
Dulles, VA  20166-6503
USA

EMail: shollenbeck@verisign.com

Legal stuff time, but it's important so read it. The copyright belongs to The Internet Society, and the rights come from BCP 78. βš–οΈ

Copyright (C) The Internet Society (2004). This document is subject to the rights, licenses and restrictions contained in BCP 78 and except as set forth therein, the authors retain all their rights.

This document and the information contained herein are provided on an "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

Intellectual Property πŸ”₯

Okay so this part is about who owns what. The IETF doesn't take a side on whether any patents or rights are valid or how far they reach, and it hasn't done its own hunt for them either. πŸ™ˆ For the rights rules, check BCP 78 and BCP 79.

Any IPR disclosures sent to the IETF Secretariat, plus any promises of licences, or any attempt to get a general permission for implementers or users, can be found in the IETF's online IPR repository at http://www.ietf.org/ipr.

The IETF also wants you to speak up if you know about any copyrights, patents, patent applications, or other proprietary rights that might cover technology needed to implement this standard. Send that to ietf-ipr@ietf.org. πŸ“¬

Acknowledgement 🫢

Last but not least, the RFC Editor function is currently funded by the Internet Society. Thank you for the support! 🌈

πŸ“¦ where this page comes from