Network Working Group | D. Crocker |
Internet-Draft | Brandenburg InternetWorking |
Intended status: Informational | T. Adams |
Expires: October 4, 2019 | Proofpoint |
April 2, 2019 |
DNS Perimeter Overlay
draft-dcrocker-dns-perimeter-00
The Domain Name System (DNS) naming syntax provides no meta-data for indicating administrative transitions through the hierarchy. For example, it does not distinguish the higher-level portions that operate as public registries, versus those that operate as private organizations. This specification creates a basic overlay mechanism for defining a logical Perimeter between administrative entities through the naming hierarchy. The mechanism can then be applied for a variety of independent administrative indications.
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 October 4, 2019.
Copyright (c) 2019 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.
Although some administrative structure can be inferred for the Domain Name System (DNS), there is no formalized syntax that distinguishes between the sequence of names in its referenced hierarchy. It does not mark any differentiating characteristics, such as transitions across administrative perimeters, as the sequence is followed. For example, it does not mark a change in administrative authority for subordinate names. A common example of needing such differentiation is to indicate what part of a name belongs to a 'public' registry and what part belongs to a private registrant within that registry.
This specification defines a mechanism for marking perimeters in domain names, thereby permitting creation of logical overlays to the DNS. Various types of administrative distinctions could be useful. To facilitate creation of multiple, logical overlays, this specification only defines a basic, extensible mechanism for marking the presence of a Perimeter between administrations, and indicating where the semantics of the Perimeter are defined.
As a detailed example and to satisfy a real-world need, an overlay that emulates the established Public Suffix List ([PubSuff], [PubSuff-SSAC]) is provided in Appendix B.
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 BCP14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.
A number of Internet functions seek to discern a 'base' portion in a domain name, such as the basic organizational name like example.com, from a longer name, like marketing.west.example.com. An approach to accomplishing this is to distinguish the part that belongs to "public" registries, and consider the next node name below that as the base name.
The Public Suffix List has been used to satisfy this requirement. It has two kinds of domain names. One is for these 'public' names that operate through ICANN coordination. The other is 'private' which serves as a naming base in some cases [PubSuff], [PubSuff-SSAC]. The list is maintained as an independent effort producing a standalone document, with all of the challenges involved in such an operation. Entries are manually registered, which requires vetting of the source and on-going validation. Entries can be for a single name or can use a wildcard notation, to cover all names below the one that is registered. It is also possible to enter a name declared to be an exception to the wildcard cover. In keeping with the move towards support of non-ASCII names, entries are in UTF-8.
For 2015-2016, IETF's DBOUND working group explored possible DNS enhancements that would permit embedded information to support uses such as the Public Suffix List. The effort ultimately was unsuccessful. Several drafts were used as input to the working group discussions [DBOUNDwg].
Two were considerations of underlying issues:
The proffered specifications were:
In general terms, it's important for any effort in this space to carefully consider the guidance in both [RFC5507] and [RFC6950]. Of particular concern to the current draft are the caveats highlighted in Section 3.3.1 of [RFC6950], about synchronization, authorization and delegation.
A Domain Name Perimeter (DNS Perimeter) distinguishes a logical separation, occurring between two adjacent nodes in the DNS hierarchy. The name that is lower in the hierarchy marks the beginning of its portion (identified by “BEGIN”), and the name higher marks the end of its portion (identified by the term "END"). As such, a Perimeter is the interface between segments along a domain name branch, for which there can be different administrative authorities and to which different policies can be applied.
Because the DNS does not permit associating information with the graph connector 'between' names, information about a Perimeter needs to be associated with one or both of the nodes adjacent to the Perimeter. One possible advantage of this requirement is permitting flexibility in the operational management of marking a Perimeter. The organization 'above' the Perimeter might have more or less incentive to mark the Perimeter than the organization 'below' it. In this way, the Perimeter can be marked by the organization with the greater incentive (or by both organizations, depending on the use case.)
Definition of a DNS Perimeter:
The metadata that is associated with such a node name needs to indicate:
A node that is immediately above or below a DNS Perimeter indicates itself with TXT DNS RR, in an _underscore-labeled sub-branch under that node [RFC8552].
The scoped use of the Perimeter TXT RR is indicated with a subordinate, leaf node name of:
The IANA registration information for the _perim DNS scoped attribute name is in Section 8.1.
A TXT RR that is used to indicate a Perimeter is composed of an initial identifier, followed by three fields, as described in Section 3.
Perim TXT: "perim" sp Pos sp Schema [sp Params] ; ISSUE: the 'perim' string is arguably redundant, given that the ; _underscored node naming approach already defines this as a ; perimeter record. ; I encourage keeping it, so interpretation of the record can stand ; on its own. /dcrocker Pos: "begin" / "end" / "part" ; begin = first in the perimeter hierarchy sub-sequence ; part = within the hierarchy sub-sequence ; end = last in the hierarchy sub-sequence Schema: { Entry from DNS Perimeter Registry } Params: Param *("," Param) Param: attr [eq val] attr: 1*alpha ; what is a better choice than <alpha>? /dcrocker eq: "=" val: 1*alpha ; what is a better choice than <alpha>? /dcrocker
Perimeter TXT RR ABNF
The ABNF [RFC5234] for the Perimeter TXT RR is: Section 8.2.
That is, a TXT record under _perim has a series of space-separated fields:
_perim.company.pubregistry.example / TXT "perim begin suffix private"
Suffix BEGIN Example
_perim.pubregistry.example / TXT "perim end suffix public"
Public Suffix END Example
_perim.dept.company.pubregistry.example / TXT "perim part suffix private od=company.pubregistry.example"
Suffix PART Example
Therefore, an organization might indicate the top of its naming hierarchy with:
The occurrence of either a 'begin' or an 'end' _perim TXT resource record defines the Perimeter, in terms of basic Perimeter existence. The presence of both _perim TXT records both above and below the Perimeter is redundant.
For this core mechanism, a 'begin' _perim TXT record MAY occur in a top-level domain, immediately under the DNS root. It would, of course, have no corresponding 'end' parameter "above" the Perimeter. Beyond specification of the technical details, actual usage of a Perimeter record for a name administered through a "public" registry is a matter of registry policy and is, therefore, outside the scope of this specification.
A particular Schema might define specific requirements or constraints on the occurrence of its Perimeter records. The Schema might mandate only one type of record. Or it might permit policy parameters that could conflict. Such issues are entirely within the purview of the Schema specification and are invisible to this core DNS Perimeters Overlay mechanism.
For simplicity and commonality, the core DNS Perimeter Overlay mechanism defers policy and usage detail up to the Schema specifications that rely on that detail.
Here are some notional use cases, for abstract usage models using DNS Perimeter Overlays. They are provided as basic discussions, rather than detailed specifications, to serve both as simple examples and as guidance for possible adaption to specific needs. Other models are certainly plausible.
A Schema specification needs to make clear what operational and policy models it is using, to distinguish it from other Schemas that might seem similar.
An organization might want to have a Perimeter early in the DNS hierarchy that defines a basic set of parameters and policies, as defaults for names within the Perimeter. It might then permit nodes under this to override any of these defaults. The default record, therefore, serves as a convenience, to reduce the amount of detail that needs to be provided at lower levels in the DNS hierarchy.
Specifying the details that can be provided as defaults is straightforward.
The basic operational model is for the client to start with the full DNS name, down to the lower level and then look up to the higher-level 'base' name. There needs to be a simple, efficient means for the client to determine what that 'base' name is, so that it can deterministically query it for the default information.
An organization might want to have a Perimeter early in the DNS hierarchy that defines a rigorous set of mandatory parameters and policies. Within its administrative purview, these would be global details, enforced for all subordinate names.
As for the Convenience model, the overlay specification here needs to make clear what operational model applies. The remaining technical details are the same as for the Convenience model. What differs is the semantics of using the superior/subordinate overlay records.
Note that most of the operational details of the 'Control" model are the same as the 'Convenience' model, although their semantics have a basic difference.
A vendor that services customers via subdomains under their corporate domain might opt to publish DNS Perimeter declarations as clear demarcations between their “enterprise” and “customer” nodes. The Schema might define semantics that enable third parties to support the customers, potentially applying different rules per customer node. In this case, each “begin” _perim TXT RR associated with a node will define the policies that apply to that customer, while the “end” _perim DNS TXT will act as the demarcation line between the customer(s) and the vendor.
There are various relationships that might exist between two domain names in different DNS branches. One example is complete equivalence. That is, the two names are aliases for the same organizational unit. A DNS Perimeter Overlay Schema could support this construct by having a Schema parameter that specifies a the domain name of organizational alias. Each name could point to the other. (The 'part' example in Section 4.3 demonstrates the simpler case of merely pointing to a name earlier in the branch, but a Scheme could define a similar construct that instead points to names in other branches.) Concerns for authorization and accuracy would be internal to the Schema.
One concern for the pragmatics of DNS operation is being able to easily populate records into a large number of sub-domains. Another is producing a useful response for names that are not registered, such as for communicating policies related to an organization's sub-domains. In both cases, the information can be stored in a higher-level name.
However it is one thing to list data in the DNS -- somewhere up the branch of the hierarchy -- and quite another to find it, when its location is not already known.
In the worst case, a tree-walk is required, querying each, next-higher portion of the DNS, or starting at the root and querying each node down. For a name with many components, this can be expensive and slow, while essentially creating a vector for a denial of service attack.
A feature embedded in the basic DNS specification is the wildcard, as defined in Section 4.3.3 of [RFC1034]. This permits server-side configuration into a higher-level domain name and delivers the information for queries to subordinate names. Unfortunately, this feature cannot be used for records that are stored under a specialized naming branch such as those using underscored scoping, since they are in an adjacent branch under the name and cannot propagate.
As specified, finding a DNS Perimeter requires some sort of tree walk, which has the problems cited above. Use of a purpose-built RR -- rather than underscore-scoped naming -- would permit employing wildcards, but new RRs continue to suffer deployment and use barriers.
Having a tree-walk done offline and publishing a list is a possibility. That is, publish a table that shows the entries which were found by a background searching process. When there are relatively few entries and the search space is relatively small and the rate of change is relatively slow, this approach can be useful. However it requires consulting an external table and requires an effort to maintain it.
Another approach is use of the DNS Additional section in the server response. When there is a query for a Perimeter node, the server would include the associated Perimeter BEGIN record from earlier in the hierarchy, if the queried node is within that hierarchy -- that is, is above the actual or virtual END record. (As for any information supplied through the Additional section, the responding server will need to be modified to provide this enhanced information for specific kinds of queries.)
It might be reasonable to constrain this behavior only to a Perimeter record that requests it, by adding a wildcard construct to the basic Perimeter BEGIN syntax.
A Perimeter-aware client -- or recursive server -- could cache these results, building an incremental portion of the overall table for this type of Perimeter.
The following entry is to be added to the DNS Underscore Global Scoped Entry Registry:
RR Type | _NODE NAME | REFERENCE |
---|---|---|
TXT | _perim | {this document}, Section 4 |
The DNS Perimeter Overlay Registry lists specific uses of the DNS Perimeter Overlay mechanism.
The registration table for the DNS Perimeter Overlay Registry will contain two columns:
SCHEMA | REFERENCE |
---|---|
This section provides guidance for expert review of registration requests in the DNS Perimeter Overlay Registry.
The review is for the purposes of ensuring that:
For the purposes of this Expert Review, other matters of the specification's technical quality, adequacy or the like are outside of scope.
SCHEMA | REFERENCE |
---|---|
suffix | {this document}, Appendix B |
This memo defines a mechanism for signaling information about administrative perimeters. The mechanism itself introduces no security issues. However specific uses of the mechanism might define transitions in authority that offer new attack surfaces.
[RFC1034] | Mockapetris, P., "Domain names - concepts and facilities", STD 13, RFC 1034, November 1987. |
[RFC2119] | Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. |
[RFC5234] | Crocker, D. and P. Overell, "Augmented BNF for Syntax Specifications: ABNF", RFC 5234, January 2008. |
[RFC8174] | Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", RFC 8162, May 2017. |
[RFC8552] | Crocker, D., "Scoped Interpretation of DNS Resource Records through "Underscored" Naming of Attribute Leaves", RFC 8552, ISSN 2070-1721, March 2019. |
The Public Suffix List describes itself as [PubSuff]:[SubTLD]:
An advisory report by the ICANN Security and Stability Advisory Committee uses a definition of PSL from
The basic semantics of the list are quite simple, only marking the Perimeter between the portion of a domain name -- it's suffix -- administered by a public registry and the remaining portion of the name administered by a registrant. Some uses of the list have more elaborate semantics, but these really are value-added features beyond the basic mechanism -- even though some are encoded in the published list. The details of the Public Suffix list are not amenable to algorithmic derivation, because the criteria for determining whether a suffix is 'public' varies significantly from one DNS naming branch to another.
The goal in defining a Public Suffix Perimeter within the DNS itself is to permit the owner of a name at a Public Suffix Perimeter to mark its presence directly, rather than having to go through an independent registration service. Anyone can then discern the Perimeter directly, without needing access to a separate list. Further much, or all of, the compiled list can be developed by a rigorous DNS tree walk, rather than by relying on additions and deletions each being submitted to the Public Suffix registration service.
A particular efficiency and convenience in this direct publication method is that the public registry can have a single entry for the 'end' name in the public suffix and implicitly thereby mark all of the children names as the 'begin' of the private part of the name.
The IANA registration information for the Suffix Perimeter entry is at Section 8.3.
This specification for DNS Suffix information, stored in a _perim TXT record, is meant to approximate what is specified in [PubSuffSyn]. Each DNS Perimeter Overlay Suffix Schema TXT RR serves as a 'rule' in the Public Suffix table. Some accommodations have been made, to the constraints of fitting this within a TXT value segment.
Given the variety of uses of information called "Public Suffix List", there could reasonably be different specifications offered. Two possibilities are listed here:
Perim Params: extra SP comment extra: ["!"] *("*.") ; ! = exception ; * = wildcard for node name field(s), ; creating prefix to current name. comment: "//" *CHAR
'Core' DNS Suffix Params ABNF
This provides a simple capability for marking a Perimeter, without labeling their 'type'.
A simple entry will have no parameters; the existence of the TXT record defines the DNS node containing it as an entry in the Public Suffix List. If wildcard fields are specified, they are added as a prefix to the current node's name. An 'exception' indicator marks this name as overriding a higher-level rule.
Perim Params: pubpriv extra SP comment pubpriv: "pub" [", fin"] / "priv" ; distinguish between public vs. private registry ; public registry can indicate it is the final (lowest) one extra: ["!"] *("*.") ; ! = exception ; * = wildcard for node name field(s), ; creating prefix to current name. comment: "//" *CHAR
'Public/Private' DNS Suffix Params ABNF
This permits distinguishing between portions of the namespace that are public and those, below this, that are private. In order to prevent a private entry from claiming that it is public, a private registry can declare that it is the lowest-level (final) public registry
There can be layers of public registries and layers of private registries, for a single, fully qualified domain name. This version of the specification permits multiple boundaries; an explicit indication of the type of registry is required. A simple entry will have no <extra> parameters; the existence of the TXT record defines the DNS node containing it as an entry in the Public Suffix List. If wildcard fields are specified, they are added as a prefix to the current node's name. An 'exception' indicator marks this name as overriding a higher-level rule.