<?xml version="1.0" encoding="utf-8"?>
<!-- name="GENERATOR" content="github.com/mmarkdown/mmark Mmark Markdown Processor - mmark.miek.nl" -->
<rfc version="3" ipr="trust200902" docName="draft-arends-dnsop-ds-link-00" submissionType="IETF" category="std" xml:lang="en" xmlns:xi="http://www.w3.org/2001/XInclude" indexInclude="true">

<front>
<title abbrev="DS-LINK">DNSSEC Delegation Signer Link</title><seriesInfo value="draft-arends-dnsop-ds-link-00" stream="IETF" status="standard" name="Internet-Draft"></seriesInfo>
<author initials="R." surname="Arends" fullname="Roy Arends"><organization>ICANN</organization><address><postal><street></street>
<country>Guernsey</country>
</postal><email>roy.arends@icann.org</email>
</address></author><date/>
<area>General</area>
<workgroup>DNSOP</workgroup>
<keyword>Internet-Draft</keyword>

<abstract>
<t>This document defines DS-LINK, a mechanism for authenticating a delegated zone’s DNSKEY RRset using DNSKEY digests published at a separate DNS name. This allows the delegated zone to roll its key-signing key (KSK) without updating the reference in the delegating zone. A DS RR with a special Digest Type or a DELEG RR with a ds-link key identifies the DS-LINK RRset. The validator independently authenticates that RRset and uses a matching DNSKEY to validate an RRSIG covering the delegated zone’s DNSKEY RRset.</t>
</abstract>

</front>

<middle>

<section anchor="introduction"><name>Introduction</name>
<t>With conventional Delegation Signer (DS) records, replacing a   key-signing key (KSK) referenced by a DS record requires an update in the delegating zone.  DS-LINK allows the delegated zone operator to roll its KSK by updating the key digests in a DS-LINK RRset while the reference in the delegating zone stays unchanged.</t>
<t>A DS Pointer RR uses the DS-LINK Digest Type to carry the owner name of a DS-LINK RRset in its Digest field.  A DELEG RR can carry the same name in its ds-link key.  The validator authenticates the DS or DELEG RRset carrying the reference and independently authenticates the referenced DS-LINK RRset.  It then uses a DNSKEY that matches a published digest to validate an RRSIG covering the delegated zone's apex DNSKEY RRset.</t>
<t>Each DS-LINK key digest is computed over the DNSKEY RDATA alone. The authenticated reference binds the delegation to the DS-LINK RRset, allowing multiple delegations that use the same DNSKEYs to share that RRset.</t>
</section>

<section anchor="conventions-and-terminology"><name>Conventions and Terminology</name>
<t>The key words &quot;MUST&quot;, &quot;MUST NOT&quot;, &quot;REQUIRED&quot;, &quot;SHALL&quot;, &quot;SHALL NOT&quot;, &quot;SHOULD&quot;, &quot;SHOULD NOT&quot;, &quot;RECOMMENDED&quot;, &quot;NOT RECOMMENDED&quot;, and &quot;MAY&quot; in this document are to be interpreted as described in BCP 14 (<xref target="RFC2119"></xref> and <xref target="RFC8174"></xref>) when, and only when, they appear in all capitals, as shown here.</t>

<ul spacing="compact">
<li>DS Pointer RR: a DS RR at a delegation point whose Digest Type is the DS-LINK Digest Type.</li>
<li>Target name: The Fully Qualified Domain Name (FQDN) carried in a DS Pointer RR’s Digest field or a DELEG RR’s ds-link value.</li>
<li>DS-LINK RRset: A set of DS-LINK RRs at the target name containing digests of DNSKEY RRs at the apex of the delegated zone.</li>
<li>Key digest: a digest calculated over the canonical RDATA of one DNSKEY RR.</li>
<li>Authentication path: A candidate route to authenticating the delegated zone’s apex DNSKEY RRset using a conventional DS RR, a DS Pointer RR, or a ds-link value in a DELEG RR. A successful path extends the DNSSEC chain of trust to that RRset.</li>
</ul>
</section>

<section anchor="DSLTYPE"><name>The DS-LINK Digest Type</name>
<t>The DS-LINK Digest Type is a special value in the DNSSEC Delegation Signer (DS) Resource Record (RR) Type Digest Algorithms registry. The value used in this document is TBD by IANA.</t>
<t>For a DS RR using the DS-LINK Digest Type:</t>

<ul spacing="compact">
<li>The Key Tag field MUST be zero.</li>
<li>The Algorithm field MUST contain the DS-LINK indicator value assigned from the DNS Security Algorithm Numbers registry. This value is a marker and does not identify a DNSKEY algorithm. It MUST NOT be used in a DNSKEY or RRSIG RR, or in a DS RR whose Digest Type is not the DS-LINK Digest Type.</li>
<li>The Digest field MUST contain the target name, encoded as specified below.</li>
</ul>
<t>The target name in the Digest field MUST be encoded in uncompressed DNS wire format and in canonical form, with ASCII letters in lowercase. The name MUST consume the entire Digest field. Trailing octets are not permitted. Compression pointers MUST NOT be used.</t>
<t>In the presentation format of a DS Pointer RR, the Digest field MUST be represented as a fully qualified domain name, not as hexadecimal digits. The name MUST use the DNS master-file format specified in <xref target="RFC1035" sectionFormat="of" section="5.1"></xref>. It MUST be in canonical form, with ASCII letters in lowercase, and MUST end with a dot. When encoded in the DS RDATA, the name MUST use the uncompressed wire format specified above.</t>
<t>The DS-LINK Digest Type does not identify a cryptographic digest algorithm. Validators MUST interpret the Digest field as a domain name only when the Digest Type is recognized as the DS-LINK Digest Type. A DS RR with any other Digest Type retains the meaning defined by the DNSSEC specifications.</t>
<t>A DS RRset MAY contain conventional DS RRs, DS Pointer RRs, or both. Each record provides an independent authentication path, as described in <xref target="VAL"></xref>.</t>
</section>

<section anchor="the-ds-link-delegation-information-key"><name>The ds-link Delegation Information key</name>
<t>This section defines the <tt>ds-link</tt> Delegation Information key for use in DELEG records as specified in <xref target="I-D.ietf-deleg" sectionFormat="of" section="3"></xref>. The key identifies a DS-LINK RRset that contains digests of DNSKEYs for the delegated zone.</t>
<t>The presentation name of the key is <tt>ds-link</tt>. The value of the ds-link key is the target name. For example:</t>

<artwork><![CDATA[test.example. DELEG ( mandatory=ds-link 
                      server-name=ns1.provider.net. 
                      ds-link=key.example.com. )
]]></artwork>
<t>The ds-link key is metadata and does not add name server addresses to the resolver’s SLIST. It MAY appear in a DELEG RR alongside one set of server information keys. A DELEG RR MAY omit the ds-link key, and different DELEG RRs in the same RRset MAY specify different ds-link values. Omission of the key from one DELEG RR does not negate values in other DELEG RRs. Each ds-link value identifies an independent DS-LINK authentication path for the delegated zone and is processed as specified in <xref target="VAL"></xref>.</t>
<t>The ds-link value is encoded as one uncompressed DNS name in wire format. The target name is subject to the requirements in <xref target="VAL"></xref>.</t>
<t>An operator that wants a DELEG RR to be used only by resolvers that support the ds-link key SHOULD list ds-link in that RR’s mandatory key.</t>
</section>

<section anchor="ds-link-resource-record"><name>DS-LINK Resource Record</name>
<t>The DS-LINK RR type is TBD by IANA. A DS-LINK RRset is published at the owner name referenced by a DS Pointer RR. It contains digests of individual DNSKEY RRs.</t>

<section anchor="wire-format"><name>Wire Format</name>
<t>The DS-LINK RDATA wire format is the same as the RDATA wire format of a DS record, as specified in <xref target="RFC4034" sectionFormat="of" section="5.1"></xref>.</t>
<t>Each DS-LINK RR contains a digest of one DNSKEY RR. The Key Tag and DNSKEY Algorithm fields MUST match the Key Tag calculated from the DNSKEY RDATA and the Algorithm field in that DNSKEY RDATA. The Key Tag is an identifier and MUST NOT be used as cryptographic proof. Validation also requires a matching digest. A DS-LINK RRset MAY contain multiple records for different DNSKEYs, DNSKEY algorithms, or digest algorithms. An unknown Digest Type MUST NOT be treated as a successful match. If a validator supports none of the digest types in the DS-LINK RRset, that DS-LINK path cannot establish a secure delegation.</t>
</section>

<section anchor="KEYDIGEST"><name>Key Digest Calculation</name>
<t>A Key digest is calculated over the RDATA of one DNSKEY RR at the apex of the delegated zone. The DNSKEY RDATA includes the flags, protocol, DNSKEY Algorithm, and public key fields defined in <xref target="RFC4034"></xref>.</t>
<t>A validator MUST compare a DS-LINK RR only with a DNSKEY RR whose calculated Key Tag and DNSKEY Algorithm match the corresponding DS-LINK fields. The validator MUST compute the digest over the canonical RDATA of the candidate DNSKEY RR using the digest algorithm identified by the DS-LINK RR’s Digest Type field. The computed digest MUST match the contents of the DS-LINK RR’s Digest field.</t>
<t>The Digest Type field in a DS-LINK RR uses the digest algorithm values in the existing DNSSEC Delegation Signer (DS) Resource Record (RR) Type Digest Algorithms registry. It identifies the hash function applied to the DNSKEY RDATA. The DS-LINK digest input is defined in this document and does not include the DNSKEY owner name. The special DS-LINK Digest Type defined in <xref target="DSLTYPE"></xref> MUST NOT be used as the Digest Type in a DS-LINK RR.</t>
<t>A validator MUST support SHA-256 (Digest Type 2), as required for DS processing.</t>
</section>
</section>

<section anchor="VAL"><name>Validator Processing</name>
<t>A validator MUST use a DS RR or a ds-link value in a DELEG RR to establish an authentication path only if the RRset containing it has been validated as Secure. A successful DELEG-derived path does not require a Secure DS RRset or authenticated denial of DS.</t>
<t>A DS-LINK target name is usable only when obtained from either an authenticated DS RR whose Digest Type is the DS-LINK Digest Type or an authenticated DELEG RRset containing the ds-link Delegation Information key.</t>
<t>If a DS Pointer RR in a Secure DS RRset does not conform to the format requirements in <xref target="DSLTYPE"></xref>, the validator MUST treat the authentication path associated with that RR as Bogus.</t>
<t>The following requirements apply whether the target name was obtained from a DS Pointer RR or from a ds-link value in a DELEG RR:</t>

<ul spacing="compact">
<li>The target name MUST NOT be equal to or a subdomain of the delegated name.</li>
<li>It MUST NOT follow CNAME or DNAME redirection or accept a DS-LINK RRset synthesized from a wildcard.</li>
</ul>
<t>If the target name is equal to or a subdomain of the delegated name, or if the validator authenticates a response showing that the target lookup was redirected or that the DS-LINK RRset was synthesized from a wildcard, the path is Bogus.</t>
<t>For each usable DS-LINK target name, the validator performs the following steps:</t>

<ol>
<li>Query the target name for the DS-LINK RR type.</li>
<li><t>Validate the target DS-LINK RRset or a denial of its existence
using ordinary DNSSEC validation.  The authentication chain
MUST NOT use DS-LINK at any delegation or depend on the DNSKEY
RRset of the delegated zone being authenticated.</t>

<ul>
<li><t>If the target RRset validates as Secure under these
restrictions, proceed to step 3.</t>
</li>
<li><t>If a Secure denial proves that the target RRset does not
exist, the path is Bogus.  The path is also Bogus if the
target RRset is Insecure or if validation of the target
RRset or its denial results in Bogus.</t>
</li>
<li><t>If the validator cannot obtain enough data to determine
the security status of the target RRset or its denial,
the path is Indeterminate.</t>
</li>
</ul></li>
<li><t>If the authenticated DS-LINK RRset contains at least one
otherwise usable RR, and each such RR specifies an unsupported
digest algorithm or an unsupported DNSKEY algorithm, the
validator MUST classify this path as unsupported and stop
evaluating it.</t>
<t>Otherwise, retrieve the delegated zone's apex DNSKEY RRset
and the RRSIGs that cover it.</t>
</li>
<li><t>For each DS-LINK RR whose digest algorithm and DNSKEY algorithm
are both supported, consider each DNSKEY RR in the delegated
zone's apex DNSKEY RRset.  A DNSKEY RR is an eligible match if:</t>

<ul spacing="compact">
<li>its Zone Key flag is set,</li>
<li>its calculated Key Tag and DNSKEY Algorithm match the
corresponding fields in the DS-LINK RR, and</li>
<li>the digest computed over its canonical RDATA using the
specified digest algorithm matches the DS-LINK RR's
Digest field.</li>
</ul></li>
<li><t>Use the eligible matching DNSKEY RRs to validate an RRSIG
covering the apex DNSKEY RRset, following [RFC4035].  If any
eligible matching DNSKEY validates an RRSIG, the DNSKEY RRset
is Secure and this path succeeds.</t>
</li>
<li><t>If this path has not succeeded and the validator cannot
obtain the data needed to complete validation, the path is
Indeterminate.  If the validator has the required data and
no eligible matching DNSKEY validates an RRSIG covering the
DNSKEY RRset, the path is Bogus.</t>
</li>
</ol>
<t>A DS-LINK RRset contains only DNSKEY key tags, algorithm identifiers, and DNSKEY digests. It does not identify another DS-LINK RRset. Because the target RRset’s DNSSEC chain MUST NOT use DS-LINK, a DS-LINK path requires at most one DS-LINK target lookup. The validator still performs the ordinary DNS queries needed to retrieve and validate that chain, subject to its normal resource limits.</t>
<t>The validator processes conventional DS records according to the DNSSEC specifications. The following rules apply across all authentication paths, including conventional DS paths and DS-LINK paths derived from DS Pointer RRs or DELEG ds-link values.</t>
<t>If any path authenticates the delegated zone’s apex DNSKEY RRset, the validator MUST treat that RRset as Secure regardless of the outcomes of other paths.</t>
<t>Otherwise, the delegation result is Indeterminate if at least one path is Indeterminate, or Bogus if at least one path is Bogus. If every candidate path is unsupported, the validator MUST treat the delegation as Insecure, following the existing DNSSEC behavior for unsupported DS records <xref target="RFC4035"></xref><xref target="RFC6840"></xref>.</t>
</section>

<section anchor="backward-compatibility"><name>Backward Compatibility</name>
<t>A validator that does not implement the DS-LINK Digest Type will not follow the referenced DS-LINK RRset. If the DS RRset contains only a DS Pointer RR, that validator follows its existing behavior for unsupported DS Digest Types.</t>
</section>

<section anchor="security-considerations"><name>Security Considerations</name>

<section anchor="threat-model"><name>Threat Model</name>
<t>The security objective of DS-LINK is to allow a validator to authenticate the DNSKEY RRset of a delegated zone using a DNSKEY digest in a DNSSEC-secure DS-LINK RRset. The DNSKEY digest is usable only when the validator has authenticated the DS Pointer RR or DELEG data that identifies the DS-LINK target, and has independently validated the DS-LINK RRset as Secure.</t>
<t>This mechanism assumes that the validator has a configured trust anchor, that the DNSSEC algorithms and digest algorithms in use remain secure, and that the private keys needed to sign the delegating zone and the DS-LINK target zone have not been compromised. A DS-LINK RRset in an Insecure zone MUST NOT be used
to authenticate a delegated zone. The DNSSEC chain used to authenticate the DS-LINK RRset MUST NOT depend on the DNSKEY RRset of the delegated zone that the DS-LINK RRset is intended to authenticate.</t>
<t>An attacker may observe, inject, modify, replay, or suppress DNS messages. Without compromising a relevant signing key or breaking the cryptographic algorithms in use, such an attacker cannot cause a validator to accept modified DS, DELEG, DS-LINK, or DNSKEY data as Secure. An attacker may, however, delay or prevent the retrieval of required data, causing validation to fail. DNSSEC does not provide confidentiality or protection against denial-of-service attacks as described in <xref target="RFC4033" sectionFormat="of" section="4"></xref>.</t>
<t>Compromise of the delegating zone's signing key can allow an attacker to change or remove the DS Pointer RR or DELEG data, just as it can allow changes to conventional DS data. Compromise of the DS-LINK target zone's signing key can allow an attacker to publish altered DS-LINK DNSKEY digests. All delegations that rely on that target are exposed to such changes. If the attacker can also cause a matching DNSKEY RRset and signatures to be served for a delegated zone, the attacker may be able to make that zone validate with the substituted key. Compromise of a delegated zone's signing key remains sufficient to compromise that zone; DS-LINK does not prevent this.</t>
</section>

<section anchor="additional-considerations"><name>Additional Considerations</name>
<t>The Key Tag is only an identifier to help select DNSKEY RRs. It does not provide cryptographic protection. Security depends on matching the DNSKEY Algorithm and the digest of the canonical DNSKEY RDATA. A weakness in a digest algorithm may allow an attacker to construct a different DNSKEY RDATA with the same digest. Implementations and operators MUST follow the applicable recommendations for the DS Digest Algorithms registry.</t>
<t>A previously signed DS-LINK RRset may remain usable while its signatures are valid and cached. DS-LINK does not add a freshness or rollback mechanism beyond normal DNSSEC signature validity and DNS caching. Operators need to coordinate DS-LINK updates, DNSKEY changes, signature lifetimes, and TTLs so that validators can authenticate the intended keys throughout a rollover.</t>
<t>Processing a DS-LINK reference requires an additional lookup and DNSSEC validation work. Implementations MUST apply their normal limits on DNS message size and query resource use.</t>
</section>
</section>

<section anchor="iana-considerations"><name>IANA Considerations</name>
<t>IANA is requested to allocate a value for the DS-LINK Digest Type in the existing DNSSEC Delegation Signer (DS) Resource Record (RR) Type Digest Algorithms registry. This value is a special-purpose indicator and does not identify a cryptographic digest algorithm. The registry entry MUST identify the value as a DS-LINK reference indicator, not as a digest algorithm. DS-LINK RRs use the existing digest algorithm values in the same registry, as specified in <xref target="KEYDIGEST"></xref>.</t>
<t>IANA is requested to allocate a DNS Resource Record Type for DS-LINK from the DNS Parameters RR TYPE registry.</t>
<t>IANA is requested to allocate a value in the DNS Security Algorithm Numbers registry for the DS-LINK indicator. The value is used only in the Algorithm field of a DS RR whose Digest Type is the DS-LINK Digest Type. It does not identify a cryptographic algorithm and MUST NOT be used in DNSKEY or RRSIG RRs. The DNSKEY Algorithm field in a DS-LINK RR continues to identify the algorithm of the DNSKEY to which that DS-LINK RR applies.</t>
<t>IANA is requested to add the following entry to the &quot;DELEG Delegation Information&quot; registry defined in <xref target="I-D.ietf-deleg" sectionFormat="of" section="8.2"></xref>:</t>

<ul spacing="compact">
<li>Name: <tt>ds-link</tt></li>
<li>Meaning: Name of a DS-LINK RRset used to authenticate the DNSKEY in the delegated zone.</li>
<li>Reference: This document</li>
<li>Change Controller: IETF</li>
<li>Number: TBD</li>
</ul>
</section>

<section anchor="acknowledgments"><name>Acknowledgments</name>
</section>

</middle>

<back>
<references><name>Normative References</name>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-deleg.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.1035.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4033.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4034.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4035.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6840.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
</references>

</back>

</rfc>
