Internet-Draft | Credential Confirmation with DNS | June 2024 |
Steele | Expires 11 December 2024 | [Page] |
Digital Crededentials on the Internet often JSON Web Token (JWT) and CBOR Web Token (CWT), which depends on third parties to certify the keys used. This document improves on that situation by enabling the administrators of domain names to specify the keys used in that domain's digital credentials. This is accomplished by describing how to discover thumbprints for proof-of-possession keys, as described in RFC 7800 and RFC 8747, using TLSA Records as described in RFC 6698. This approach can be leveraged to develop revocation and assurance capabilities for digital credentials.¶
This note is to be removed before publishing as an RFC.¶
The latest revision of this draft can be found at https://OR13.github.io/draft-steele-spice-tlsa-cnf/draft-steele-spice-tlsa-cnf.html. Status information for this document may be found at https://datatracker.ietf.org/doc/draft-steele-spice-tlsa-cnf/.¶
Discussion of this document takes place on the Secure Patterns for Internet CrEdentials Working Group mailing list (mailto:[email protected]), which is archived at https://mailarchive.ietf.org/arch/browse/spice/. Subscribe at https://www.ietf.org/mailman/listinfo/spice/.¶
Source for this draft and an issue tracker can be found at https://github.com/OR13/draft-steele-spice-tlsa-cnf.¶
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 11 December 2024.¶
Copyright (c) 2024 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 Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
JSON Web Token (JWT) and CBOR Web Token (CWT) based digital credential formats can express claims made by an Issuer (iss) and a Subject (sub). The confirmation claim (cnf) can be used to bind proof-of-possession keys to the Subject claim (sub), which can be a string or URI. In cases where the Subject is a URL, the JSON Web Key Thumbprint (jkt) or COSE Key Thumbprint (ckt) can be published to the Domain Name System (DNS). This document describes how digital credentials can leverage specifications developed to support Internet X.509 Public Key Infrastructure Certificate (PKIX), Transport Layer Security (TLS), DNS-Based Authentication of Named Entities (DANE), in order to enable conceptually similar functionality, based on JSON Object Signing and Encryption (JOSE) and CBOR Object Signing and Encryption (COSE).¶
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.¶
JWT is described in [RFC7519], CWT is described in [RFC8392].
Confirmation claim cnf
is described in [RFC7800] and [RFC8747].
JWT, CWT and CNF related claims such as iss
, sub
, and nonce
are shared by both token formats.
TLSA Resource Record and related terminology are described in [RFC6698].¶
This document does not introduce new terminology.¶
This section provides a summary of the confirmation claim and its possible structures in JOSE and COSE, and does not alter or extend the definition of cnf
in [RFC7800] or [RFC8747].¶
The confirmation claim is an object or map, supporting one or more confirmation methods.¶
The following informative example of a decoded JWT claimset is provided:¶
A similar example of a CWT claimset, is provided in Extended Diagnostic Notation (EDN), see [I-D.draft-ietf-cbor-edn-literals] for more details.¶
In order to be compatible with [RFC6698], the value of the confirmation claim must be reducible to a hash in a verifiable way.¶
For JWK and COSE_Key, the hash is produced according to [RFC9278] and [I-D.draft-ietf-cose-key-thumbprint] respectively. For JKT and CKT, the hash is already present, but must be converted to hexadecimal before use in TLSA Records. For JWE and Encrypted_COSE_Key, the key must be decrypted and then the process for JWK and COSE_Key is applied.¶
The confirmation claim can be used to establish key binding, as described in [I-D.draft-ietf-oauth-sd-jwt-vc], [I-D.draft-prorock-spice-cose-sd-cwt] and [I-D.draft-barnes-mls-userinfo-vc].¶
Publishing a confirmation key associated with a subject, and using globally unique identifiers to identify subjects has additional impact on privacy and traceability.¶
See this document's privacy considerations for additional details.¶
This section describes the structure of the confirmation claim record.¶
As described in [RFC6698], there are several components of a TLSA record, including:¶
Until the associated IANA registries contain an entry specific to this draft, the value reserved for private use (255) MUST be used.¶
Similar to the process for deriving a prefxied DNS domain name as described in Section 3 of [RFC6698], the structure of the confirmation claim needs to be converted to a prefixed DNS domain name.¶
In JOSE, the string claim names are used, but in COSE the integer values are used.¶
For example:¶
The COSE credential claimset:¶
Produces the following prefixed DNS domain name:¶
_1_8.vendor.example¶
The following command can be run to retrieve the confirmation claim record:¶
The following informative example of an answer is provided:¶
The JOSE credential claimset:¶
Produces the following prefixed DNS domain name:¶
_jwk_cnf.vendor.example¶
The following command can be run to retrieve the confirmation claim record:¶
The following informative example of an answer is provided:¶
In both of the preceeding examples, the claimset contained a key, but the tlsa cnf record contained a thumbprint.¶
In order to match the claimset confirmation method to the hash retrieved from the cnf record, the process described in Section 1 MUST be followed.¶
Section 5 of [ADEM] describes a mechanism for embedding a key identifier in certificate logs which enables several useful properties for digital credentials. In particular, the organization identifiers associated with a digitial emblem can be discovered through distribution of certificate transparency logs. This approach could be extended to feeds of related credential information, by replacing the key identifier with a merkle root for another transparency system. Enabling the holder of a digital emblem to disclose several credentials, potentially with distinct trust chains, which can be useful in cross border scenarios. Future work from the IETF SCITT or KEY TRANS working groups could provide useful building blocks for extending Certificate Transparency based discoverability of digital credentials.¶
TODO: Consider merkle root instead of single key thumbprint, confirm multiple keys with a single record.¶
TODO: Consider relationship to Key Transparency, Metadata & Capability Discovery, Certificate Transparency.¶
TODO: Consider BBS / accumulator alternatives to set membership with merkle proofs.¶
The issuer needs to first authenticate the subject, and establishing that they control a confirmation key.¶
There are several established mechanisms which might be relevant to this step, including [RFC9449] and [I-D.draft-ietf-oauth-attestation-based-client-auth].¶
At this stage the issuer SHOULD perform the following additional actions:¶
Resolve the subject's confirmation claim record as described in Section 2¶
Confirm the record contains a thumbprint which matches confirmation claim as described in Section 1¶
This step is not always required, because of the timing and availability issues associated with setting the confirmation claim record.¶
After verifying the presentation of a digital credential which included a confirmation claim, the verifier has confirmed the issuer's signature matches their public key, and that the subject's confirmation key is in their possession.¶
Additional validation checks MUST be performed first, including reviewing the valid from and valid until related claims, and checking the¶
At this stage the verifier SHOULD perform the following additional actions:¶
This section builds on the After Verification process described above, and applies it to the concrete use case of Subject initiated credential revocation.¶
In the event that a device or service controlling the proof-of-possession key for a credential is stolen or compromised, the subject can revoke the confirmation claim the issuer commited to, by deleteing the associated confirmation record.¶
After deleting the record, the subject can contact the issuer and obtain a fresh credential with a new confirmation key, and add a new confirmation record to their domain name.¶
Due to the timeing and availability constraints of the DNS, verifiers can still be deceived by presentations of the stolen credential.¶
The utility of this subject directed revocation depends on the responsiveness and realtime revocation capabilities of the issuer.¶
For example, if an issuer could revoke the credential in 5 minutes, and the DNS takes 30 minutes to update, the issuer should be contacted to revoke the credential first.¶
However, if the issuer can only revoke credentials in a 24 hour window, and the DNS takes 30 minutes to propagate the subject's revocation of the credential, the subject should revoke the credential first, and then contact the issuer.¶
This section builds on the Before Isssunace process described above, and applies it to the concrete use case of providing the issuer with increased assurance that a subject identified with a URL and presenting a given public key, controls the associated domain, and the associated private key.¶
In this case, the DNS enables the subject to publish and unpublish the thumbprint of the public key they wish to use for digital credentials on the associated domain.¶
This approach could be extended to other protocols, and is inspired by similar approaches to demonstrating control of resources or proving possession for example Automated Certificate Management Environment (acme) and DNS-Based Authentication of Named Entities (DANE).¶
One use case for confirming credentials via DNS is enabling digital emblems or badges. [I-D.draft-haberman-digital-emblem-ps] describes the challenge of recognizing if a person, organization, vehicle, or asset is recognized or protected under international laws. [ADEM] proposes a JSON Web Token based solution to this challenge similar to the approach described in this draft. Using confirmation methods with digital emblems can help protect them against forgery or theft, by requiring an attacker to gain control of both the digital infrastructure where the emblem is published and any cryptographic key material associated with the confirmation method for the credential. This specification currently extends the TLSA record for digital credential use cases, however it is possible that more fit for purpose DNS Resource Record (RR) types might be created to support digitial emblems in the future.¶
As noted in Section 5 of [RFC7800], A proof-of-possession key can be used as a correlation handle if the same key is used with multiple parties. Thus, for privacy reasons, it is recommended that different proof-of-possession keys be used when interacting with different parties.¶
By publishing the confirmation key thumbprint, a domain operator is intentionaly enabling this type of correlation.¶
Resolving confirmation key thumbprints at the time of verification reveals timing information related to credential processing.¶
TODO: additional privacy considerations.¶
The security considerations of [RFC7519], [RFC8392], [RFC7800], [RFC8747], and [RFC6698] apply.¶
After verification of a credential which includes a confirmation claim or a key binding token, it is essential that the verifier confirm the key is still published under the domain associated with the subject. Prior to the issuance or digital credentials it is essential that the issuer obtain proof that the subject of the credential controls the associated proof of possession key.¶
TODO: additional security considerations.¶
This specification is not limited to URLs that rely on HTTPS.¶
Considerations for international domain names in [UTS46] and [RFC5895] both apply.¶
For example: ☕.example becomes xn--53h.example when converting from a subject identifier to a TLSA record.¶
TODO: additional i18n considerations.¶
This document has no IANA actions.¶
Note to RFC Editor: Please remove this section as well as references to [BCP205] before AUTH48.¶
This section records the status of known implementations of the protocol defined by this specification at the time of posting of this Internet-Draft, and is based on a proposal described in [BCP205]. The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs. Please note that the listing of any individual implementation here does not imply endorsement by the IETF. Furthermore, no effort has been spent to verify the information presented here that was supplied by IETF contributors. This is not intended as, and must not be construed to be, a catalog of available implementations or their features. Readers are advised to note that other implementations may exist.¶
According to [BCP205], "this will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature. It is up to the individual working groups to use this information as they see fit".¶
Organization: Transmute Industries Inc¶
Name: https://github.com/transmute-industries/jwt.vc¶
Description: An application demonstrating the concepts is available at https://jwt.vc¶
Maturity: Prototype¶
Coverage: The current version ('main') implements a post verification check similar to the one described in this document.¶
License: Apache-2.0¶
Implementation Experience: No interop testing has been done yet. The code works as proof of concept, but is not yet production ready.¶
Contact: Orie Steele ([email protected])¶
TODO acknowledge.¶
Thanks to the authors of the following drafts:¶
--back¶