Internet-Draft | DS Glue | August 2021 |
Schwartz | Expires 7 February 2022 | [Page] |
This draft describes a mechanism for conveying arbitrary authenticated DNS data from a parent nameserver to a recursive resolver as part of a delegation response.¶
This note is to be removed before publishing as an RFC.¶
Discussion of this document takes place on the mailing list (ds@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/ds/.¶
Source for this draft and an issue tracker can be found at https://github.com/bemasc/ds-glue.¶
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 7 February 2022.¶
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.¶
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.¶
The DPRIVE working group has been pursuing designs for authenticated encryption of recursive-to-authoritative communication. Recursive resolvers could enable authenticated encryption most easily and efficiently if they received authenticated information about the target nameserver's configuration during the in-bailiwick delegation that precedes the direct connection. However, there are several obstacles to this.¶
Glue records in DNS referral responses are unauthenticated. Parents do not generally provide RRSIGs for these records in their responses, and resolvers do not expect such signatures to be present. An in-path attacker can modify or remove records in the delegation response without detection.¶
If the parent zone also implements authenticated encryption, this provides sufficient protection for the glue records, but many important parent zones seem unlikely to implement authenticated encryption in the near future.¶
Existing nameserver deployments assume that the delegation response includes only a fixed set of existing RR types (NS, A, AAAA, DS, RRSIG, etc.). These systems are slow to upgrade, and the working group would like to be able to begin deploying authenticated encryption without first requiring a significant change in these parents.¶
This draft proposes a way to convey glue RRs in DS records, enabling authenticated delivery of arbitrary RR types as part of the delegation response.¶
There are three main records involved in this process:¶
To encode a Source Record, a zone operator first transforms it into a Virtual DNSKEY Record as follows:¶
For example, these Source Records:¶
$ORIGIN example.com. @ 3600 IN NS ns1 IN NS ns2 IN NS NS.OTHER.EXAMPLE.¶
would be represented as the following Virtual DNSKEY Records:¶
; Public Key = \000\002 \003ns1\007example\003com\000 . 300 IN DNSKEY 1 3 $DSGLUE_NUM AAIDbnMxB2V4YW1wbGUDY29tAA== ; Public Key = \000\002 \003ns2\007example\003com\000 . 300 IN DNSKEY 1 3 $DSGLUE_NUM AAIDbnMyB2V4YW1wbGUDY29tAA== ; Public Key = \000\002 \002ns\005other\007example\000 . 300 IN DNSKEY 1 3 $DSGLUE_NUM AAICbnMFb3RoZXIHZXhhbXBsZQA=¶
Note that:¶
Having constructed a Virtual DNSKEY Record, the DSGLUE Record is constructed as usual, but always using the VERBATIM digest type [I-D.draft-vandijk-dnsop-ds-digest-verbatim]. Thus, the DSGLUE Record's wire format RDATA forms the following concatenation:¶
Key Tag | Algorithm = DSGLUE | Digest Type = VERBATIM | Digest = ( DNSKEY owner name = name prefix | DNSKEY RDATA = ( Flags = 1 | Protocol = 3 | Algorithm = DSGLUE | Public Key = ( RR Type | RDATA ) ) )¶
The DSGLUE record is a real DS record that appears in the usual DS RRSet, whose owner name is the child apex.¶
QUESTION: Should we skip the virtual DNSKEY record, and construct the fake DS directly? This would save 4-6 bytes per RR, but would lose the ability to reuse DNSKEY->DS construction codepaths (unchanged except for a new digest type).¶
Upon receiving the DS RRSet, the recipient will first verify the DS RRSIGs as normal, and abort the resolution as Bogus if DNSSEC validation fails.¶
Resolvers implementing this specification SHALL reverse the encoding process of any DSGLUE records to reconstruct the source RRSets, all carrying the TTL of the DS RRSet. The resolver SHALL add each of these reconstructed RRSets to the delegation responses, replacing any RRSet with the same owner name and type. Resolution then proceeds as normal.¶
Resolvers that do not implement this specification will ignore the DSGLUE records due to the unrecognized algorithm. Thus, these records are safe to use for both signed and unsigned child zones.¶
As with ordinary glue records, Source Records reconstructed from DSGLUE MAY be cached for use in future delegations, but MUST NOT be returned in any responses.¶
Normally, the absence of a particular record in a delegation response is not informative to a resolver. The corresponding record might still exist in the child zone. To inform the resolver that a particular RRSet is nonexistent for the purposes of delegation, the zone owner MAY place an NSEC or NSEC3 record in the delegation response.¶
As with other glue records, an NSEC glue record only affects behavior during delegation following (see example in Section 4.3).¶
For these examples, the macro $DSGLUE(prefix, source RR type, source RDATA)
constructs a DSGLUE DS record as described in Section 3.1.¶
An out-of-bailiwick referral contains only NS records, e.g.¶
$ORIGIN com. example 3600 IN NS ns1.example.net. IN NS ns2.example.net.¶
These Source Records would be encoded in DSGLUE as:¶
$ORIGIN com. example 3600 IN DS $DSGLUE(., NS, ns1.example.net.) IN DS $DSGLUE(., NS, ns2.example.net.)¶
An in-bailiwick referral contains NS records and at least one kind of address record.¶
$ORIGIN com. example 3600 IN NS ns1.example IN NS ns2.example ns1.example 600 IN A 192.0.2.1 IN AAAA 2001:db8::1 ns2.example 600 IN A 192.0.2.2 IN AAAA 2001:db8::2¶
These records would be encoded in DSGLUE as:¶
$ORIGIN com. example 600 IN DS $DSGLUE(., NS, ns1.example.com.) IN DS $DSGLUE(., NS, ns2.example.com.) IN DS $DSGLUE(ns1., A, 192.0.2.1) IN DS $DSGLUE(ns1., AAAA, 2001:db8::1) IN DS $DSGLUE(ns2., A, 192.0.2.1) IN DS $DSGLUE(ns2., AAAA, 2001:db8::2)¶
Note that the differing TTL between RRSets is lost.¶
Consider a delegation to a nameserver that is only reachable with IPv6:¶
$ORIGIN com. example 3600 IN NS ns1.example ns1.example 600 IN AAAA 2001:db8::1¶
A zone in this configuration can optionally use an NSEC DSGLUE record to indicate that there is no IPv4 address:¶
$ORIGIN com. example 600 IN DS $DSGLUE(., NS, ns1.example.com.) IN DS $DSGLUE(ns1., AAAA, 2001:db8::1) IN DS $DSGLUE(*., NSEC, *.example.com. A SVCB)¶
This arrangement prevents an adversary from inserting their own A or SVCB records into the delegation response.¶
Note that although this NSEC record denies the existence of any A records in *.example.com, it is treated as a glue record that only applies during delegation, so such records can still be resolved if they exist.¶
Assuming a SVCB-based signaling mechanism similar to [I-D.draft-schwartz-svcb-dns], an in-bailiwick referral with support for authenticated encryption is indicated as follows:¶
$ORIGIN com. example 600 IN DS $DSGLUE(., NS, ns1.example.com.) IN DS $DSGLUE(ns1., A, 192.0.2.1) IN DS $DSGLUE(ns1., AAAA, 2001:db8::1) IN DS $DSGLUE(_dns.ns1., SVCB, 1 ns1.example.com. alpn=dot)¶
Resolvers check whether a nameserver supports DANE by resolving a TLSA record during the delegation process. However, this adds unnecessary latency to the delegation if the nameserver does not implement DANE. As an optimization, such nameservers can add an NSEC record to indicate that there is no such TLSA record:¶
IN DS $DSGLUE(*._tcp., NSEC, *._tcp.ns1.example.com. TLSA)¶
Resolvers that process DSGLUE MUST perform DNSSEC validation.¶
Source Records published as DSGLUE have owner names within the child zone, but are signed only by the parent. This makes them fully authenticated, but provides different cryptographic guarantees than a direct signature by the child. For example, these records might not appear in any key use logs maintained by the child.¶
In order for the child to publish DSGLUE records, the parent must allow the child to publish arbitrary DS records or have specific support for this specification.¶
If the parent supports CDS [RFC8078], child zones MAY use CDS to push DSGLUE records into the parent. Note that CDNSKEY records cannot be used, because (1) the child cannot publish CDNSKEY records with the required owner name and (2) the child cannot guarantee that the parent will use the VERBATIM digest to produce the DS record.¶
Child zones SHOULD publish all Source Records as ordinary records of the specified type at the indicated owner name, in order to enable revalidation [I-D.draft-ietf-dnsop-ns-revalidation] and simplify debugging.¶
When records are present in both ordinary glue and DSGLUE, the response size is approximately doubled. This could cause performance issues due to response truncation when the initial query is over UDP.¶
TODO: Move some of this text into a different draft.¶
Nameservers supporting authenticated encryption MAY indicate any DANE mode, or none at all.¶
As an optimization, nameservers using DANE MAY place a TLSA record in the DSGLUE to avoid the latency of a TLSA lookup during delegation. However, child zones should be aware that this adds complexity and delay to the process of TLSA key rotation.¶
Nameservers that do not support DANE SHOULD add an NSEC or NSEC3 record denying the TLSA record to the DSGLUE, as shown in Section 4.4.1, to avoid an unnecessary delay.¶
Resolvers that support authenticated encryption MAY implement support for PKI-based authentication, DANE, or both. PKI-only resolvers MUST nonetheless resolve TLSA records, and MUST NOT require authentication if the DANE mode is DANE-TA(2) or DANE-EE(3) [RFC7671]. DANE-only resolvers MUST NOT require authentication if the TLSA record does not exist.¶
IANA is requested to add a new entry to the DNS Security Algorithm Numbers registry:¶
Number | Description | Mnemonic | Zone Signing | Trans. Sec. | Reference |
---|---|---|---|---|---|
$DSGLUE_NUM | Authenticated Glue | DSGLUE | N | ? | (This document) |
Thanks to Paul Hoffman for detailed comments.¶