RFC 8078
Managing DS Records from the Parent via CDS/CDNSKEY
RFC 8078: Managing DS Records from the Parent via CDS/CDNSKEY ๐
Part 1 of 2 ๐
Okay bestie, so this is RFC 8078 ๐. It's called Managing DS Records from the Parent via CDS/CDNSKEY. O. Gudmundsson (CloudFlare) and P. Wouters (Red Hat) wrote it. It's a Standards Track doc (ISSN 2070-1721) from March 2017 ๐๏ธ. It updates RFC 7344, and it's the one that finally pushes 7344 up to Standards Track ๐.
Abstract โจ
RFC 7344 explains how DNS trust can survive key rollovers, done in-band between parent and child ๐. This doc bumps 7344 from Informational to Standards Track ๐. It also adds a way to set up initial trust and to remove a secure entry point, which is honestly iconic ๐.
Changing a domain's DNSSEC status is messy. There can be a bunch of unrelated parties involved, and some of them (like the DNS operator) might not even be known to everyone else in the mix ๐. Not being able to turn DNSSEC off with in-band signaling is seen as a liability, and it's a big reason DNSSEC hasn't spread at a large scale ๐ญ. So this doc adds in-band signaling for those status changes ๐ซถ.
It also describes some reasonable policies that make it easier to accept new secure entry points (DS records) the first time ๐ธ.
Ideally, operators work together when a domain moves or transfers ๐ค. The best method is a Key Signing Key (KSK) plus Zone Signing Key (ZSK) rollover. If that's not possible, the unsigned intermediate state described here can move the domain between two parties ๐ฆ. Yes, the domain is temporarily unsigned and open to DNS spoofing, but that's still preferred over validation failures from a mismatched DS and DNSKEY record ๐.
Status of This Memo ๐งพ
This is an Internet Standards Track document ๐ฅ.
It's a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community, got public review, and was approved for publication by the Internet Engineering Steering Group (IESG) ๐. More info on Internet Standards is in Section 2 of RFC 7841 ๐.
For the current status, any errata, and how to send feedback, check http://www.rfc-editor.org/info/rfc8078 ๐.
Copyright Notice โญ
Copyright (c) 2017 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 (http://trustee.ietf.org/license-info) as they stand on the publication date. Read those carefully, since they spell out your rights and restrictions for this document ๐ง. Code Components pulled from this document must include Simplified BSD License text, as described in Section 4.e of the Trust Legal Provisions, and they come without warranty, as described in the Simplified BSD License ๐.
Table of Contents ๐
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1. Introducing a DS Record . . . . . . . . . . . . . . . . . 3
1.2. Removing a DS Record . . . . . . . . . . . . . . . . . . 4
1.3. Notation . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4. Terminology . . . . . . . . . . . . . . . . . . . . . . . 5
2. The Three Uses of CDS . . . . . . . . . . . . . . . . . . . . 5
2.1. The Meaning of the CDS RRset . . . . . . . . . . . . . . 5
3. Enabling DNSSEC via CDS/CDNSKEY . . . . . . . . . . . . . . . 6
3.1. Accept Policy via Authenticated Channel . . . . . . . . . 6
3.2. Accept with Extra Checks . . . . . . . . . . . . . . . . 6
3.3. Accept after Delay . . . . . . . . . . . . . . . . . . . 7
3.4. Accept with Challenge . . . . . . . . . . . . . . . . . . 7
3.5. Accept from Inception . . . . . . . . . . . . . . . . . . 7
4. DNSSEC Delete Algorithm . . . . . . . . . . . . . . . . . . . 7
5. Security Considerations . . . . . . . . . . . . . . . . . . . 8
6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 9
6.1. Promoting RFC 7344 to Standards Track . . . . . . . . . . 9
7. References . . . . . . . . . . . . . . . . . . . . . . . . . 9
7.1. Normative References . . . . . . . . . . . . . . . . . . 9
7.2. Informative References . . . . . . . . . . . . . . . . . 10
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . 10
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 10
1. Introduction ๐
CDS (Child DS) and CDNSKEY (Child DNSKEY) records, defined in [RFC7344], are how a child signals changes to its secure entry points ๐. This is one way to keep delegations up to date, and it's handy when the DNS operator has no other way to tell the parent that something needs to change ๐. This document bumps [RFC7344] from Informational to Standards Track ๐.
RFC 7344 is missing two things if you want full automated operation ๐ค. First, it doesn't define a way to set up initial trust, so every parent has to invent its own acceptance policy ๐คทโโ๏ธ. Second, it doesn't have a "delete" signal, which means the child has no way to tell the parent that DNSSEC needs to be removed from its domain ๐ โโ๏ธ.
1.1. Introducing a DS Record ๐ฆ
Automated insertion of DS records has been blocked for a lot of zones by the rule that every change has to go through a "Registry" of the child zone's parent ๐ง. That's really slowed DNSSEC deployment at scale for DNS hosters, since the child zone owner is often not aware of the DS record or can't update it ๐ฉ.
This document describes a few ways the parent can accept a child's request to add a DS record to its zone ๐. Each method has different security properties for different deployment scenarios, and they all lead to an automated way of introducing trust โจ.
1.2. Removing a DS Record ๐งน
This document adds a delete option for both CDS and CDNSKEY, so a child can tell the parent to turn DNSSEC off ๐. Sometimes, when a domain moves from one DNS operator to another, DNSSEC has to be turned off to make the switch happen ๐. Common scenarios include:
- Doing a proper DNSSEC algorithm rollover is not an option because of operational limits, like software limitations ๐ ๏ธ.
- Moving from a DNSSEC operator to one that can't do DNSSEC ๐ฆ.
- Moving to an operator that can't or won't do a proper DNSSEC rollover ๐ โโ๏ธ.
- Moving between two DNS operators that use disjoint sets of algorithms to sign the zone, where an algorithm rollover can't be performed ๐งฉ.
- The domain holder doesn't want DNSSEC enabled anymore ๐.
Not having a "remove my DNSSEC" option is one reason some operators can't deploy DNSSEC at all, because they see it as an operational risk ๐ฌ.
Turning off DNSSEC lowers the security of the domain, so it should only be done carefully, and the child domain should be fully in charge of that decision ๐.
1.3. Notation ๐
Signaling can happen with CDS or CDNSKEY records ๐ก. The only differences between them are how the information is represented and who calculates the DS digest ๐งฎ. To keep things clear, this document uses "CDS" to mean "either CDS or CDNSKEY" ๐ .
When this document says "parent", it means an entity that's authorized to insert DS records into the parent zone on behalf of the child domain ๐. It doesn't matter exactly which entity that is. It could be the Registrar or Reseller the child domain was bought from, or the Registry where the domain is registered when that's allowed, or some other entity entirely ๐.
1.4. Terminology ๐ฌ
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 [RFC2119] ๐ง .
2. The Three Uses of CDS ๐
Generally, a domain wants its parent to do one of three things ๐:
- Enable DNSSEC validation, which means placing an initial DS Resource Record Set (RRset) in the parent ๐.
- Roll over the KSK. This means updating the DS records in the parent so they match the new set of KSKs at the child ๐. This could be an ADD operation, a DELETE operation on one or more records while keeping at least one DS RR, or a full REPLACE operation ๐งฉ.
- Turn off DNSSEC validation, which means deleting all the DS records ๐.
KSK rollover is covered in [RFC7344], and it's considered the safest use of a CDS/CDNSKEY record because it doesn't change the trust relationship between parent and child ๐ก๏ธ. Introducing and removing DS records are defined in this document. Since these CDS/CDNSKEY use cases create or end the trust relationship between parent and child, they should be carefully implemented and monitored ๐.
2.1. The Meaning of the CDS RRset ๐
Publishing a CDS RRset means something specific ๐ฃ:
Publishing a CDS or CDNSKEY record signals to the parent that the child desires that the corresponding DS records be synchronized. Every parent or parental agent should have an acceptance policy for these records covering the three use cases: Initial DS publication, Key rollover, and Returning to Insecure.
In short, the CDS RRset is a request telling the parent to update the DS RRset whenever the CDS and DS RRsets differ ๐ซถ.
For a key rollover, the acceptance policy for CDS is "seeing", according to [RFC7344]. For a Delete, the acceptance policy is seeing a validly signed CDS RRset that uses the delete operation specified in this document โจ.
3. Enabling DNSSEC via CDS/CDNSKEY ๐
There are a number of different models for managing initial trust, but in the general case the child wants global validation enabled ๐. Until the child is signed, DNS answers can be forged, so the goal is to move the child from insecure to secure as soon as reasonably possible for the parent ๐โโ๏ธ. That means the gap between the child publishing its CDS/CDNSKEY RRset and the parent publishing the synchronized DS RRset should be as short as possible โฑ๏ธ.
One big use case is a third-party DNS operator uploading its DNSSEC information to the parent, so the parent can publish a DS record for the child ๐ค. In that case, there's a chance to set up some kind of authentication mechanism and submission mechanism, but that's outside the scope of this document ๐.
Below are some policies parents can use. These policies assume the notifications can be verified or authenticated โ .
3.1. Accept Policy via Authenticated Channel ๐
In this case, the parent gets notified through an authenticated channel (UI/API) that a CDS/CDNSKEY RRset exists ๐ฌ. For a CDS RRset, the parent retrieves it and inserts the corresponding DS RRset as requested ๐ฅ. For CDNSKEY, the parent retrieves the CDNSKEY RRset and calculates the DS record(s) ๐งฎ. Parents may limit the DS record type based on local policy ๐๏ธ.
Parents SHOULD NOT refuse CDS/CDNSKEY updates that don't (yet) have a matching DNSKEY in the child zone ๐ โโ๏ธ. This lets the child pre-publish a spare DNSKEY, which could even be kept offline ๐งโจ.
3.2. Accept with Extra Checks โจ
okay so this one is giving "trust but verify, bestie" ๐ซถ The parent checks that the source of the notification is allowed to request the DS insertion ๐ The checks could include stuff like whether this is a trusted entity, whether the nameservers match up with the requester, whether there have been any changes in registration in the last few days, etc. ๐ The parent can also send a notification asking for a confirmation, like emailing the registrant to ask "hey, did you mean this?" ๐ง The end result is that the CDS RRset gets accepted once the checks are done or when that out-of-band confirmation comes back โ And any extra checks should have proper rate limiting in place to prevent abuse ๐ฆ no cap, that part is so important ๐ฅ
3.3. Accept after Delay ๐ฐ๏ธ
In this case, if the parent decides the request is valid, it starts keeping an eye on the CDS RRset at the child nameservers over a period of time to make sure nothing changes ๐ After some time, or after a number of checks, ideally from different vantage points in the network ๐, the parent accepts the CDS RRset as a valid signal to update its DS RRset for this child ๐
3.4. Accept with Challenge ๐งฉ
In this case, the parent tells the requester to insert some record into the child domain to prove they have the ability to do so (basically, that they are the operator of the zone) ๐ This method gives the parent a new job: monitoring the child zone to see if the challenge has been added ๐ The parent should verify that the challenge is published by all of the child's nameservers ๐ฅ๏ธ and should test for this challenge from various diverse network locations to make the security of this method as strong as possible ๐ช it's giving fortress energy ๐ฐ
3.5. Accept from Inception ๐ฃ
If a parent is adding a new child domain that isn't delegated at all yet, it could use the child CDS/CDNSKEY RRset to publish a DS RRset right away, along with the new NS RRset ๐ This would make sure the new child domain is never active in an insecure state ๐ก๏ธ main character debut, honestly ๐
4. DNSSEC Delete Algorithm ๐๏ธ
This document defines the previously reserved DNS Security Algorithm Number of value 0 in the context of CDS and CDNSKEY records to mean that the entire DS RRset at the parent must be removed ๐งน The value 0 stays reserved for the DS and DNSKEY records ๐
No DNSSEC validator can treat algorithm 0 as a valid signature algorithm ๐ โโ๏ธ If a validator sees a DNSKEY or DS record with this algorithm value, it MUST treat it as unknown. Accordingly, the zone is treated as unsigned unless there are other algorithms present ๐ซฅ In general, the value 0 should never be used in the context of DNSKEY and DS records ๐ซ
The CERT record [RFC4398] defines the value 0 similarly, to mean the algorithm in the CERT record is not defined in DNSSEC ๐
The contents of the CDS or CDNSKEY RRset MUST contain one RR and only contain the exact fields shown below ๐
CDS 0 0 0 0
CDNSKEY 0 3 0 0
The keying material payload is represented by a single 0 ๐ข This record is signed in the same way as regular CDS/CDNSKEY RRsets are signed โ๏ธ
Strictly speaking, the CDS record could be CDS X 0 X 0, since only the DNSKEY algorithm is what signals the DELETE operation ๐ค But for clarity, the "0 0 0 0" notation is MANDATED. This is not a definition of DS digest algorithm 0 ๐
โโ๏ธ The same argument applies to CDNSKEY 0 3 0 0, where the value 3 in the second field is mandated by [RFC4034], Section 2.1.2 ๐
Once the parent has verified the CDS/CDNSKEY RRset and it has passed the other acceptance tests, the parent MUST remove the DS RRset ๐๏ธ After waiting a sufficient amount of time (depending on the parental TTLs) โณ, the child can start the process of turning off DNSSEC ๐
5. Security Considerations ๐จ
โ ๏ธ Turning off DNSSEC reduces the security of the domain, so it should only be done as a last resort to prevent DNSSEC validation errors caused by mismatched DS and DNSKEY records. Seriously, bestie, this is not the move unless you've got no other choice ๐ญ
Users should keep in mind that re-establishing trust in a delegation can be hard and takes time โฐ Before deciding to finish the rollover via an unsigned state, all other options should be considered first ๐
A parent SHOULD ensure that when it allows a child to become securely delegated, it has reasonable assurance that the CDS/CDNSKEY RRset used to bootstrap the security is visible from a geographically and topologically diverse view ๐ It SHOULD also ensure that the zone validates correctly if the parent publishes the DS record โ A parent zone might also consider emailing its contact addresses to warn the child zone that security will be enabled after a certain amount of wait time, which gives the child administrator a chance to cancel the request ๐จ
This document describes a few possible acceptance criteria for the initial trust establishment. Due to the large variety of legal frameworks surrounding parent domains (Top-Level Domains (TLDs) in particular), this document cannot give a definitive list of valid acceptance criteria ๐ Parental zones should look at the listed methods and pick the most secure method possible within their legal and technical scenario, possibly further securing the acceptance criteria ๐, as long as the deployed method still enables a fully automated method for non-direct parties such as third-party DNS hosters ๐ค
6. IANA Considerations ๐๏ธ
IANA has assigned entry number 0 in the "DNS Security Algorithm Numbers" registry as follows ๐
+--------+--------------+----------+----------+---------+-----------+
| Number | Description | Mnemonic | Zone | Trans. | Reference |
| | | | Signing | Sec. | |
+--------+--------------+----------+----------+---------+-----------+
| 0 | Delete DS | DELETE | N | N | [RFC4034] |
| | | | | | [RFC4398] |
| | | | | | [RFC8078] |
+--------+--------------+----------+----------+---------+-----------+
6.1. Promoting RFC 7344 to Standards Track ๐
Experience has shown that CDS and CDNSKEY are useful in the deployment of DNSSEC ๐ [RFC7344] was published as Informational, and this document elevates RFC 7344 to Standards Track ๐โจ
7. References ๐
7.1. Normative References
- [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, <http://www.rfc-editor.org/info/rfc2119>.
- [RFC4034] Arends, R., Austein, R., Larson, M., Massey, D., and S. Rose, "Resource Records for the DNS Security Extensions", RFC 4034, DOI 10.17487/RFC4034, March 2005, <http://www.rfc-editor.org/info/rfc4034>.
- [RFC7344] Kumari, W., Gudmundsson, O., and G. Barwood, "Automating DNSSEC Delegation Trust Maintenance", RFC 7344, DOI 10.17487/RFC7344, September 2014, <http://www.rfc-editor.org/info/rfc7344>.
7.2. Informative References
- [RFC4398] Josefsson, S., "Storing Certificates in the Domain Name System (DNS)", RFC 4398, DOI 10.17487/RFC4398, March 2006, <http://www.rfc-editor.org/info/rfc4398>.
Acknowledgments ๐ซถ
We thank a number of people who gave feedback and useful comments, including Bob Harold, John Levine, Dan York, Shane Kerr, Jacques Latour, and especially Matthijs Mekking ๐
Authors' Addresses ๐
Olafur Gudmundsson CloudFlare
Email: olafur+ietf@cloudflare.com
Paul Wouters Red Hat
Email: pwouters@redhat.com ๐ฆ
๐ฆ where this page comes from
- ietf: rfc8078 2017-03
- ๐ girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms