Internet-Draft ACE-GF Trust Chain December 2026
Wang Expires 7 June 2027 [Page]
Workgroup:
DANE Authentication for Network Clients Everywhere
Internet-Draft:
draft-wang-acegf-trust-chain-00
Published:
Intended Status:
Experimental
Expires:
Author:
J. S. Wang
ACE Labs

ACE-GF Trust Chain: Hash-Based Key Commitment Anchors for DANE

Abstract

DANE binds a TLS server key to a domain name through a DNSSEC-signed TLSA record. DNSSEC itself still relies on classical signatures, so an attacker able to forge them, for example with a cryptographically relevant quantum computer, can publish a TLSA record for a key of its own. This document specifies a key commitment anchor: a Merkle tree, built with a hash function only, over the public keys a domain owner will use, including keys of algorithms it will switch to later. A client pins the tree root once. After that, the server proves each new key with an inclusion proof of a few hundred bytes, and the owner revokes keys or hands over to a new anchor with statements signed by a stateless hash-based signature (SLH-DSA) whose key is itself a leaf of the tree. Key rotation and algorithm migration then no longer depend on the security of DNSSEC at the time they happen. Anchors coexist with ordinary TLSA records and can be bound to a CA-issued certificate for the first pin.

Discussion Venues

This note is to be removed before publishing as an RFC.

Source for this draft and an issue tracker can be found at https://github.com/acechain-io/key-anchors-ietf-draft.

Status of This Memo

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 June 2027.

▲

Table of Contents

1. Introduction

DANE [RFC6698] [RFC7671] lets a domain owner publish, in DNSSEC-signed TLSA records, which keys its servers use. Every change of key, and every change of signature algorithm, is a new TLSA record whose authenticity rests on DNSSEC at the time of the change. DNSSEC [RFC9364] today uses RSA and elliptic-curve signatures throughout the delegation chain. Post-quantum DNSSEC is being studied, but it has to be deployed in every zone from the root down before it protects a given name.

An attacker who can forge DNSSEC signatures can publish a TLSA record for a key of its own and impersonate the server to any DANE client. This is true even when the server's own key is a post-quantum key such as ML-DSA [FIPS204]: the weak link is the record that names the key.

This document lets a domain owner commit, ahead of time and with a hash function only, to the keys it will use. When the owner derives its keys deterministically from one secret, it can compute today the public keys it will use in the future, for several algorithms and several rotation steps, and commit to all of them in a Merkle tree [RFC9162]. ACE-GF [I-D.wang-acegf-protocol] is one such derivation: it derives keys of many algorithms, including SLH-DSA, from one sealed 256-bit root. This document does not depend on how the keys are derived. A client pins the 32-byte root once, while DNSSEC, or a certificate issued under the Web PKI, is still trustworthy. Afterwards a server key is accepted only with an inclusion proof to the pinned root. A forged TLSA record does not help an attacker, because it cannot produce an inclusion proof for its own key without a second preimage of the hash function.

One leaf of the tree is an SLH-DSA [FIPS205] public key. Statements signed with it revoke committed keys, authorize keys outside the tree (for example of an algorithm that did not exist when the tree was built), and hand over to a new anchor. SLH-DSA is stateless, so restoring the owner's secret from a backup cannot lead to the reuse of one-time keys.

1.1. Relation to Other Work

TACK [TACK] let a site pin a signing key that endorsed its TLS keys. HTTP Public Key Pinning [RFC7469] let a site pin keys, including backup keys, in browsers, and was withdrawn from browsers because operators locked themselves out and attackers could pin their own keys. Both rest on classical signatures. This document differs in that the endorsement of routine keys is a hash-based commitment fixed in advance, the only signing key is a stateless hash-based one, and revocations are monotone in the client's pin. Section 8 discusses the pinning risks.

Merkle Tree Certificates [I-D.ietf-plants-merkle-tree-certs] also use Merkle trees, to shrink post-quantum certificates issued by certification authorities to relying parties such as browsers, negotiated with Trust Anchor Identifiers [I-D.ietf-tls-trust-anchor-ids]. The two are complementary: Merkle Tree Certificates authenticate the CA's view of a name for clients that trust a root program, whereas a key commitment anchor lets the domain owner itself vouch for its future keys to clients that pinned it, without a third party at each rotation.

1.2. Applicability

This mechanism is meant for clients that the owner of a name can expect to implement it: agents and services that authenticate each other across organizations, and DANE clients such as mail transfer agents. It is not proposed for general web browsers, for the reasons given in Section 8.5.

2. Conventions and Definitions

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.

Owner:

The holder of the secret from which the committed keys are derived, who publishes the anchor.

Context:

A label, carried in the "domain" field of proof records that names the purpose of a key, for example "tls-server". Keys of different contexts are different keys.

Statement key:

The SLH-DSA-SHA2-128s key committed in the last leaf of the tree.

Pin:

What a client stores about an anchor (Section 6.1).

BE8(n), BE16(n), BE32(n), BE64(n):

The one-, two-, four- and eight-byte big-endian encodings of n.

F(x):

BE16 of the length of the octet string x, followed by x.

Name:

An algorithm name or a context: 1 to 255 octets of printable ASCII (0x21 to 0x7E) other than ";", "=", the quotation mark and the backslash. Names are compared octet by octet. A record, statement or pin that carries anything else MUST be rejected.

3. The Commitment Tree

3.1. Leaves

Each committed key is one leaf. Its leaf hash is

leaf = SHA-256(0x00 || "ACE-ANCHOR-LEAF-V1" || F(alg) || F(context)
               || BE64(index) || F(pk))

where alg is the name of the signature algorithm ("ML-DSA-44", "ML-DSA-65", "ML-DSA-87", "Ed25519", "P-256", or another name from Section 9.1), index distinguishes successive keys of the same algorithm and context, and pk is the raw public key: the value of the subjectPublicKey BIT STRING of the key's SubjectPublicKeyInfo [RFC5280], without the octet that counts unused bits. For P-256 this is the uncompressed point of 65 octets; "P-256" denotes ECDSA with SHA-256.

The owner chooses which keys to commit. It SHOULD commit several indices per algorithm, so that routine rotation does not need a statement. The last leaf MUST be the statement key, with alg "SLH-DSA-SHA2-128s", the context of the tree, and index 0. The statement key MUST NOT be used for anything but statements. With ACE-GF [I-D.wang-acegf-protocol], the context is an ACE-GF Usage Domain name, and the statement key of the tree for Domain D is the SLH-DSA-SHA2-128s key of the Key Anchor Statements Domain (0x07) at Index D, so that it is never a key of Domain D itself.

One tree serves one context. Several server names MAY publish the same anchor; the first pin (Section 6.2) is then taken per name.

3.2. Tree

The tree is the Merkle Tree Hash of RFC 9162, Section 2.1.1, over the leaf hashes in order, with interior nodes SHA-256(0x01 || left || right). The anchor is the pair (root, size), where size is the number of leaves. Inclusion proofs are generated and verified as in RFC 9162, Sections 2.1.3.1 and 2.1.3.2. A path has at most 16 hashes, so a tree has at most 2^16 leaves; clients MUST reject longer paths.

RFC 9162 inclusion proofs do not bind the tree size: one path can verify against the same root for several sizes. This does not weaken the anchor, because each leaf hash binds its algorithm, context, index and key, and the client pins the size together with the root.

4. DNS Records

4.1. Anchor Record

The anchor is published as a TXT record at the underscored name "_ace-anchor" below the server's name:

_ace-anchor.example.com. IN TXT
    "v=ace-anchor1; h=sha256; size=321; root=<64 hex digits>"

The fields are separated by "; ", each appears exactly once, no other field appears, and the record MUST be rejected otherwise; a later version of the record changes "v". Numbers are decimal without sign or leading zeros, and size MUST NOT be 0. Hexadecimal is written in lower case; clients accept either case.

A name MAY have more than one anchor record, for example while a new anchor is being introduced. A client taking a first pin tries each of them; a client that holds a pin ignores the anchor records.

4.2. Proof Records

Each key in use is published with its inclusion proof as a TXT record at "_ace-proof" below the server's name. More than one record exists while keys overlap during a rotation.

_ace-proof.example.com. IN TXT
    "v=ace-proof1; alg=ML-DSA-65; domain=tls-server; index=0; leaf=64; "
    "path=<hex>"

path is the concatenation of the proof's hashes. Records longer than 255 octets are split into several character-strings, which clients join in order. The authenticity of a proof comes from the hash function, not from DNSSEC; proofs MAY also be distributed by other means.

5. Statements

5.1. Format

A statement is signed by the statement key over

BE8(1) || root || BE64(size) || BE64(seq) || F(context)
|| BE16(n) || n * (F(alg) || BE64(min_index))
|| BE16(m) || m * (F(alg) || BE64(index) || SHA-256(pk))
|| BE8(0), or BE8(1) || root' || BE64(size')

The three parts after the context are the revocations, the authorizations, and the optional next anchor; n and m are at most 1024, and alg and context are names. The statement key signs these bytes with the context string "ACE-ANCHOR-STMT-V1" and hedged signing, as defined in [FIPS205]. root and size name the anchor the statement belongs to, and seq is its sequence number.

A statement file carries BE32 of the length of the signed bytes, the signed bytes, the statement key (32 octets), BE64 of its leaf index, BE8 of the number of path hashes, the path, and the 7856-octet signature. Statement files are self-delimiting.

5.2. Publication

An owner publishes a statement bundle: the statement files it has signed, concatenated, oldest first, starting no later than the statement that handed over from the oldest anchor a client may still have pinned. The bundle is served at the well-known URI https://<name>/.well-known/ace-anchor/statement [RFC8615].

Sequence numbers continue across hand-overs: the first statement of a new anchor carries a larger seq than the statement that handed over to it. An owner MUST NOT sign two different statements with the same seq.

5.3. Meaning

  • A revocation (alg, min_index) refuses every key of that algorithm with a smaller index, whether proved in the tree or authorized.

  • An authorization admits one key outside the tree. Authorizations hold only while the statement that grants them is the latest one.

  • A next anchor hands over to another tree. Revocations carry over to it.

A statement applies only to keys of its context.

An owner MUST repeat in every statement all revocations it has issued under the anchor and its predecessors. It MUST NOT sign a revocation for an algorithm name that is not committed in the tree, authorized in the same statement, or authorized or revoked in the previous statement, since names are compared exactly and a misspelt name would revoke nothing.

6. Client Processing

6.1. Pin

A client keeps, per name, a pin: the anchor it trusts, the highest statement sequence number it has accepted, the SHA-256 of the signed bytes of the statement accepted with it, and per algorithm the lowest index still valid. The lowest valid indices never decrease. Signing is randomized, so the digest covers the signed bytes rather than the statement file. A client stores its pin so that an interrupted write cannot leave a shorter pin that it would accept.

A client MUST NOT replace a pinned anchor with one from an anchor record, whatever the record's authentication: the pinned anchor changes only through a hand-over statement. Pins do not expire by themselves, since a pin that expired could be replaced by whoever controls the name at that moment; a pin is removed only by the user or operator of the client.

6.2. First Pin

A client takes a first pin from the anchor record when it can authenticate that record. Two ways are defined:

  1. The record is validated with DNSSEC.

  2. A certificate that the client accepts for the server name under its Web PKI trust anchors, following [RFC9525], also contains the DNS name <label>.<server name> as a subjectAltName, where label is "ka-" followed by the base32 encoding [RFC4648] in lower case without padding of SHA-256("ACE-ANCHOR-LABEL-V1" || root || BE64(size)). The label MUST match exactly: a wildcard name never stands for it. The client MUST require the certificate to be logged in Certificate Transparency [RFC6962] under its usual policy; a certificate that the user accepted despite a validation failure MUST NOT be used.

The certificate route is as strong as the certificate authority's domain validation for the label, and no stronger; its advantage is that the binding is public in Certificate Transparency logs. Owners SHOULD restrict issuance for their names with CAA records [RFC8659].

6.3. Verifying a Key

To check a server key, a client:

  1. Takes the algorithm, context, index, leaf index and path from a proof record. For a key outside the tree, which has no proof record, the client takes them from its own configuration for the name, or from the TLS handshake (the algorithm of the server's key) with index 0 when it has none.

  2. If it has a statement bundle, walks it in order, starting from its pin. It skips statements that name an anchor other than the one pinned at that point, whose seq is lower than the pinned one, or, once it has applied a statement during this walk, whose seq is not higher than that statement's; repeated statements therefore cost one verification. For every other statement it verifies that the statement key is the last leaf of the pinned tree, that the signature is valid, that the statement repeats every revocation in the pin, and, when seq equals the pinned one, that the digest of its signed bytes is the one in the pin. It then applies the statement to a working copy of the pin as in step 5, except for the last such statement, which is the statement of the next steps. If any statement it does not skip fails these checks, the client refuses the key.

  3. Refuses the key if its index is below the lowest valid index of its algorithm in the pin or in the statement.

  4. Accepts the key if the path proves it in the pinned tree or in the tree the statement hands over to, or if the statement authorizes it.

  5. On acceptance with a statement, records its sequence number and hash, merges its revocations, and replaces the pinned anchor with the next anchor when the statement names one.

A client MUST NOT accept the statement key as a server key. A client SHOULD also perform ordinary DANE validation [RFC7671]; this mechanism adds a check and does not replace it.

7. Coexistence with DANE

A server publishes its TLSA records as usual. Clients that do not implement this document ignore "_ace-anchor" and "_ace-proof". Implementations of this document check, in addition to DANE, that the server key is committed or authorized under the pinned anchor.

8. Security Considerations

8.1. Strength

Second preimages of SHA-256 cost about 2^128 operations with Grover's algorithm. SLH-DSA-SHA2-128s is in NIST security category 1. The anchor is no stronger than the owner's secret: when it is compromised, every committed key and the statement key are compromised, and the owner can recover only by publishing a new anchor, which clients can authenticate only by the means of the first pin.

8.2. Classical Algorithms

Ed25519 and P-256 leaves commit to public keys from which a cryptographically relevant quantum computer can compute the private keys. Once such an attacker exists, a committed classical key protects nothing, even though its inclusion proof is sound. Owners SHOULD revoke every classical algorithm, with min_index 2^64-1, before then, and clients MAY refuse classical algorithms by local policy. The post-quantum leaves and the statement key are not affected.

8.3. Before the First Pin

A client is protected only after its first pin. An attacker who controls the DNS, or who obtains a misissued certificate that carries an anchor label, before the first pin can make the client pin its own anchor. The certificate route makes such an attack visible in Certificate Transparency logs; the DNSSEC route does not.

8.4. Revocation Freshness

A client that never obtains a statement keeps accepting the keys it revokes. Statements are signed, so an attacker can withhold them but not forge them, and the pin prevents rollback to an older statement or to one that drops a revocation. Clients SHOULD fetch statements regularly.

8.5. Pinning Risks

Pinning lets an owner lock out its own clients when it loses the secret and its backups, and lets an attacker who briefly controls the name pin its own anchor. Owners MUST keep an offline backup of the secret. Clients MUST offer a way to remove a pin.

8.6. Unsigned Channels

Proof records and statements need no confidentiality or integrity from the channel that carries them. Fetching them reveals which names a client checks to its DNS resolver; clients that use DNS over HTTPS [RFC8484] reveal them to that resolver.

9. IANA Considerations

IANA is asked to add the following entries to the "Underscored and Globally Scoped DNS Node Names" registry [RFC8552]:

Table 1
RR Type _NODE NAME Reference
TXT _ace-anchor This document
TXT _ace-proof This document

IANA is asked to register the following in the "Well-Known URIs" registry [RFC8615]:

URI suffix:

ace-anchor

Change controller:

IETF

Specification document(s):

This document

Status:

provisional

Related information:

None

9.1. Key Anchor Algorithm Names

IANA is asked to create a "Key Anchor Algorithm Names" registry, with the "Specification Required" policy. Each entry gives a name, as defined in Section 2, the public key encoding of the leaf, and a reference. The initial entries are:

Table 2
Name Public key Reference
ML-DSA-44 [FIPS204] public key, 1312 octets This document
ML-DSA-65 [FIPS204] public key, 1952 octets This document
ML-DSA-87 [FIPS204] public key, 2592 octets This document
Ed25519 32 octets This document
P-256 uncompressed point, 65 octets This document
SLH-DSA-SHA2-128s [FIPS205] public key, 32 octets This document

10. Implementation Status

This section records the status of known implementations at the time of writing, following [RFC7942], and is to be removed before publication.

The ace-pqc-substrate project [ACE-SUBSTRATE] (Apache-2.0) implements anchor construction, proofs, statements, pins, the certificate binding, a command-line tool, a C library, a WebAssembly module and a prototype Firefox extension, with the names and encodings of this document. It derives all committed keys from one 256-bit secret. It has not had an independent security review.

11. References

11.1. Normative References

[FIPS205]
National Institute of Standards and Technology, "Stateless Hash-Based Digital Signature Standard", FIPS 205, , <https://doi.org/10.6028/NIST.FIPS.205>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/rfc/rfc2119>.
[RFC4648]
Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, DOI 10.17487/RFC4648, , <https://www.rfc-editor.org/rfc/rfc4648>.
[RFC5280]
Cooper, D., Santesson, S., Farrell, S., Boeyen, S., Housley, R., and W. Polk, "Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile", RFC 5280, DOI 10.17487/RFC5280, , <https://www.rfc-editor.org/rfc/rfc5280>.
[RFC6698]
Hoffman, P. and J. Schlyter, "The DNS-Based Authentication of Named Entities (DANE) Transport Layer Security (TLS) Protocol: TLSA", RFC 6698, DOI 10.17487/RFC6698, , <https://www.rfc-editor.org/rfc/rfc6698>.
[RFC7671]
Dukhovni, V. and W. Hardaker, "The DNS-Based Authentication of Named Entities (DANE) Protocol: Updates and Operational Guidance", RFC 7671, DOI 10.17487/RFC7671, , <https://www.rfc-editor.org/rfc/rfc7671>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/rfc/rfc8174>.
[RFC8552]
Crocker, D., "Scoped Interpretation of DNS Resource Records through "Underscored" Naming of Attribute Leaves", BCP 222, RFC 8552, DOI 10.17487/RFC8552, , <https://www.rfc-editor.org/rfc/rfc8552>.
[RFC8615]
Nottingham, M., "Well-Known Uniform Resource Identifiers (URIs)", RFC 8615, DOI 10.17487/RFC8615, , <https://www.rfc-editor.org/rfc/rfc8615>.
[RFC9162]
Laurie, B., Messeri, E., and R. Stradling, "Certificate Transparency Version 2.0", RFC 9162, DOI 10.17487/RFC9162, , <https://www.rfc-editor.org/rfc/rfc9162>.
[RFC9525]
Saint-Andre, P. and R. Salz, "Service Identity in TLS", RFC 9525, DOI 10.17487/RFC9525, , <https://www.rfc-editor.org/rfc/rfc9525>.

11.2. Informative References

[ACE-SUBSTRATE]
ACE Labs, "ace-pqc-substrate", , <https://github.com/acechain-io/ace-pqc-substrate>.
[FIPS204]
National Institute of Standards and Technology, "Module-Lattice-Based Digital Signature Standard", FIPS 204, , <https://doi.org/10.6028/NIST.FIPS.204>.
[I-D.ietf-plants-merkle-tree-certs]
Benjamin, D., O'Brien, D., Westerbaan, B., Valenta, L., and F. Valsorda, "Merkle Tree Certificates", Work in Progress, Internet-Draft, draft-ietf-plants-merkle-tree-certs-09, , <https://datatracker.ietf.org/doc/html/draft-ietf-plants-merkle-tree-certs-09>.
[I-D.ietf-tls-trust-anchor-ids]
Beck, B., Benjamin, D., O'Brien, D., and K. Nekritz, "TLS Trust Anchor Identifiers", Work in Progress, Internet-Draft, draft-ietf-tls-trust-anchor-ids-08, , <https://datatracker.ietf.org/doc/html/draft-ietf-tls-trust-anchor-ids-08>.
[I-D.wang-acegf-protocol]
Wang, J. S., "ACE-GF: A Generative Framework for Atomic Cryptographic Entities", Work in Progress, Internet-Draft, draft-wang-acegf-protocol-02, , <https://datatracker.ietf.org/doc/html/draft-wang-acegf-protocol-02>.
[RFC6962]
Laurie, B., Langley, A., and E. Kasper, "Certificate Transparency", RFC 6962, DOI 10.17487/RFC6962, , <https://www.rfc-editor.org/rfc/rfc6962>.
[RFC7469]
Evans, C., Palmer, C., and R. Sleevi, "Public Key Pinning Extension for HTTP", RFC 7469, DOI 10.17487/RFC7469, , <https://www.rfc-editor.org/rfc/rfc7469>.
[RFC7942]
Sheffer, Y. and A. Farrel, "Improving Awareness of Running Code: The Implementation Status Section", BCP 205, RFC 7942, DOI 10.17487/RFC7942, , <https://www.rfc-editor.org/rfc/rfc7942>.
[RFC8484]
Hoffman, P. and P. McManus, "DNS Queries over HTTPS (DoH)", RFC 8484, DOI 10.17487/RFC8484, , <https://www.rfc-editor.org/rfc/rfc8484>.
[RFC8659]
Hallam-Baker, P., Stradling, R., and J. Hoffman-Andrews, "DNS Certification Authority Authorization (CAA) Resource Record", RFC 8659, DOI 10.17487/RFC8659, , <https://www.rfc-editor.org/rfc/rfc8659>.
[RFC9364]
Hoffman, P., "DNS Security Extensions (DNSSEC)", BCP 237, RFC 9364, DOI 10.17487/RFC9364, , <https://www.rfc-editor.org/rfc/rfc9364>.
[TACK]
Marlinspike, M. and T. Perrin, "Trust Assertions for Certificate Keys", , <https://datatracker.ietf.org/doc/draft-perrin-tls-tack/>.

Acknowledgments

TODO.

Author's Address

Jian Sheng Wang
ACE Labs