RFC 9641: A YANG Data Model for a Truststore
- K. Watsen
Abstract
This document presents a YANG module for configuring bags of certificates and bags of public keys that can be referenced by other data models for trust. Notifications are sent when certificates are about to expire.¶
Status of This Memo
This is an Internet Standards Track document.¶
This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.¶
Information about the current status of this document, any
errata, and how to provide feedback on it may be obtained at
https://
Copyright Notice
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://
1. Introduction
This document presents a YANG 1.1 [RFC7950] module that has
the following characteristics
1.1. Relation to Other RFCs
This document presents a YANG module [RFC7950] that is part of a collection of RFCs that work together to ultimately support the configuration of both the clients and servers of both the Network Configuration Protocol (NETCONF) [RFC6241] and RESTCONF [RFC8040].¶
The dependency relationship between the primary YANG groupings defined in the various RFCs is presented in the below diagram. In some cases, a document may define secondary groupings that introduce dependencies not illustrated in the diagram. The labels in the diagram are shorthand names for the defining RFCs. The citation references for shorthand names are provided below the diagram.¶
Please note that the arrows in the diagram point from referencer to referenced. For example, the "crypto-types" RFC does not have any dependencies, whilst the "keystore" RFC depends on the "crypto-types" RFC.¶
1.2. Specification Language
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.¶
1.3. Adherence to the NMDA
This document is compliant with the Network Management Datastore Architecture (NMDA) [RFC8342]. For instance, trust anchors installed during manufacturing (e.g., for trusted, well-known services) are expected to appear in <operational> (see Section 3).¶
1.4. Conventions
Various examples in this document use "BASE64VALUE=" as a placeholder value for binary data that has been base64 encoded (see Section 9.8 of [RFC7950]). This placeholder value is used because real base64-encoded structures are often many lines long and hence distracting to the example being presented.¶
Various examples in this document use the XML
[W3C
Various examples in this document contain long lines that may be folded, as described in [RFC8792].¶
This document uses the adjective "central" with the word "truststore"
to refer to the top-level instance of the "truststore
2. The "ietf-truststore" Module
This section defines a YANG 1.1 [RFC7950] module called
"ietf
2.1. Data Model Overview
This section provides an overview of the "ietf
2.1.1. Features
The following diagram lists all the "feature" statements
defined in the "ietf
The diagram above uses syntax that is similar to but not defined in [RFC8340].¶
2.1.2. Typedefs
The following diagram lists the "typedef" statements defined in
the "ietf
The diagram above uses syntax that is similar to but not defined in [RFC8340].¶
Comments:¶
2.1.3. Groupings
The "ietf
Each of these groupings are presented in the following subsections.¶
2.1.3.1. The "central-certificate-ref-grouping" Grouping
The following tree diagram [RFC8340] illustrates the
"central
Comments:¶
2.1.3.2. The "central-public-key-ref-grouping" Grouping
The following tree diagram [RFC8340] illustrates the
"central
Comments:¶
2.1.3.3. The "inline-or-truststore-certs-grouping" Grouping
The following tree diagram [RFC8340] illustrates the
"inline
Comments:¶
2.1.3.4. The "inline-or-truststore-public-keys-grouping" Grouping
The following tree diagram [RFC8340] illustrates the
"inline
Comments:¶
2.1.4. Protocol-Accessible Nodes
The following tree diagram [RFC8340] lists all the
protocol
The following tree diagram [RFC8340] lists all the
protocol
Comments:¶
2.2. Example Usage
The examples in this section are encoded using XML, such as might be the case when using the NETCONF protocol. Other encodings MAY be used, such as JSON when using the RESTCONF protocol.¶
2.2.1. A Truststore Instance
This section presents an example illustrating trust anchors in <intended>, as per Section 2.1.4. Please see Section 3 for an example illustrating built-in values in <operational>.¶
The example contained in this section defines eight bags of trust
anchors. There are four certificate
2.2.2. A Certificate Expiration Notification
The following example illustrates the "certificate
2.2.3. The "Inline or Truststore" Groupings
This section illustrates the various "inline
These examples assume the existence of an example module called "ex
The "ex
The following tree diagram illustrates the "ex
The following tree diagram illustrates the "ex
The following example provides two equivalent instances of each grouping, the first being a reference to a truststore and the second being defined inline. The instance having a reference to a truststore is consistent with the truststore defined in Section 2.2.1. The two instances are equivalent, as the inlined instance example contains the same values defined by the truststore instance referenced by its sibling example.¶
Following is the "ex
3. Support for Built-In Trust Anchors
In some implementations
Built-in trust anchors are expected to be set by a vendor-specific process. Any ability for operators to set and/or modify built-in trust anchors is outside the scope of this document.¶
The primary characteristic of the built-in trust anchors is that they are
provided by the server, as opposed to configuration. As such, they are present in
<operational> (Section 5.3 of [RFC8342]) and <system>
[NETMOD
The example below illustrates what the truststore in <operational> might look like for a server in its factory default state. Note that the built-in trust anchor bags have the "or:origin" annotation value "or:system".¶
4. Security Considerations
4.1. Security of Data at Rest
The YANG module specified in this document defines a mechanism called a "truststore" that, by its name, suggests that its contents are protected from unauthorized modification.¶
Security controls for the API (i.e., data in motion) are discussed in Section 4.3, but controls for the data at rest (e.g., on disk) cannot be specified by the YANG module.¶
In order to satisfy the expectations of a "truststore", server implementations MUST ensure that the truststore contents are protected from unauthorized modifications when at rest.¶
4.2. Unconstrained Public Key Usage
This module enables the configuration of public keys without constraints on their usage, e.g., what operations the key is allowed to be used for (encryption, verification, or both).¶
Trust anchors configured via this module are implicitly trusted to validate certification paths that may include any name, be used for any purpose, or be subject to constraints imposed by an intermediate CA or by context in which the truststore is used. Implementations are free to use alternative or auxiliary structures and validation rules to define constraints that limit the applicability of a trust anchor.¶
4.3. Considerations for the "ietf-truststore" YANG Module
This section is modeled after the template defined in Section 3.7.1 of [RFC8407].¶
The "ietf
The Network Configuration Access Control Model (NACM) [RFC8341] provides the means to restrict access for particular users to a preconfigured subset of all available protocol operations and content.¶
Please be aware that this YANG module uses groupings from other YANG modules that define nodes that may be considered sensitive or vulnerable in network environments. Please review the security considerations for dependent YANG modules for information as to which nodes may be considered sensitive or vulnerable in network environments.¶
Most of the readable data nodes defined in this YANG module
are not considered sensitive or vulnerable in network environments.
However, the "cert-data" node uses the NACM "default
All the writable data nodes defined by this module, both in the
"grouping" statements as well as the protocol
This module does not define any "rpc" or "action" statements, and thus, the security considerations for such are not provided here.¶
5. IANA Considerations
5.1. The IETF XML Registry
IANA has registered the following URI in the "ns" registry defined of the "IETF XML Registry" [RFC3688].¶
5.2. The YANG Module Names Registry
IANA has registered the following YANG module in the "YANG Module Names" registry defined in [RFC6020].¶
6. References
6.1. Normative References
- [RFC2119]
-
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10
.17487 , , <https:///RFC2119 www >..rfc -editor .org /info /rfc2119 - [RFC4252]
-
Ylonen, T. and C. Lonvick, Ed., "The Secure Shell (SSH) Authentication Protocol", RFC 4252, DOI 10
.17487 , , <https:///RFC4252 www >..rfc -editor .org /info /rfc4252 - [RFC6241]
-
Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed., and A. Bierman, Ed., "Network Configuration Protocol (NETCONF)", RFC 6241, DOI 10
.17487 , , <https:///RFC6241 www >..rfc -editor .org /info /rfc6241 - [RFC7950]
-
Bjorklund, M., Ed., "The YANG 1.1 Data Modeling Language", RFC 7950, DOI 10
.17487 , , <https:///RFC7950 www >..rfc -editor .org /info /rfc7950 - [RFC8040]
-
Bierman, A., Bjorklund, M., and K. Watsen, "RESTCONF Protocol", RFC 8040, DOI 10
.17487 , , <https:///RFC8040 www >..rfc -editor .org /info /rfc8040 - [RFC8174]
-
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10
.17487 , , <https:///RFC8174 www >..rfc -editor .org /info /rfc8174 - [RFC8341]
-
Bierman, A. and M. Bjorklund, "Network Configuration Access Control Model", STD 91, RFC 8341, DOI 10
.17487 , , <https:///RFC8341 www >..rfc -editor .org /info /rfc8341 - [RFC8446]
-
Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 8446, DOI 10
.17487 , , <https:///RFC8446 www >..rfc -editor .org /info /rfc8446 - [RFC9000]
-
Iyengar, J., Ed. and M. Thomson, Ed., "QUIC: A UDP-Based Multiplexed and Secure Transport", RFC 9000, DOI 10
.17487 , , <https:///RFC9000 www >..rfc -editor .org /info /rfc9000 - [RFC9640]
-
Watsen, K., "YANG Data Types and Groupings for Cryptography", RFC 9640, DOI 10
.17487 , , <https:///RFC9640 www >..rfc -editor .org /info /rfc9640
6.2. Informative References
- [HTTP
-CLIENT -SERVER] -
Watsen, K., "YANG Groupings for HTTP Clients and HTTP Servers", Work in Progress, Internet-Draft, draft
-ietf , , <https://-netconf -http -client -server -23 datatracker >..ietf .org /doc /html /draft -ietf -netconf -http -client -server -23 - [NETCONF
-CLIENT -SERVER] -
Watsen, K., "NETCONF Client and Server Models", Work in Progress, Internet-Draft, draft
-ietf , , <https://-netconf -netconf -client -server -37 datatracker >..ietf .org /doc /html /draft -ietf -netconf -netconf -client -server -37 - [NETMOD
-SYSTEM -CONFIG] -
Ma, Q., Wu, Q., and C. Feng, "System-defined Configuration", Work in Progress, Internet-Draft, draft
-ietf , , <https://-netmod -system -config -09 datatracker >..ietf .org /doc /html /draft -ietf -netmod -system -config -09 - [RESTCONF
-CLIENT -SERVER] -
Watsen, K., "RESTCONF Client and Server Models", Work in Progress, Internet-Draft, draft
-ietf , , <https://-netconf -restconf -client -server -38 datatracker >..ietf .org /doc /html /draft -ietf -netconf -restconf -client -server -38 - [RFC3688]
-
Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688, DOI 10
.17487 , , <https:///RFC3688 www >..rfc -editor .org /info /rfc3688 - [RFC6020]
-
Bjorklund, M., Ed., "YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)", RFC 6020, DOI 10
.17487 , , <https:///RFC6020 www >..rfc -editor .org /info /rfc6020 - [RFC8259]
-
Bray, T., Ed., "The JavaScript Object Notation (JSON) Data Interchange Format", STD 90, RFC 8259, DOI 10
.17487 , , <https:///RFC8259 www >..rfc -editor .org /info /rfc8259 - [RFC8340]
-
Bjorklund, M. and L. Berger, Ed., "YANG Tree Diagrams", BCP 215, RFC 8340, DOI 10
.17487 , , <https:///RFC8340 www >..rfc -editor .org /info /rfc8340 - [RFC8342]
-
Bjorklund, M., Schoenwaelder, J., Shafer, P., Watsen, K., and R. Wilton, "Network Management Datastore Architecture (NMDA)", RFC 8342, DOI 10
.17487 , , <https:///RFC8342 www >..rfc -editor .org /info /rfc8342 - [RFC8407]
-
Bierman, A., "Guidelines for Authors and Reviewers of Documents Containing YANG Data Models", BCP 216, RFC 8407, DOI 10
.17487 , , <https:///RFC8407 www >..rfc -editor .org /info /rfc8407 - [RFC8572]
-
Watsen, K., Farrer, I., and M. Abrahamsson, "Secure Zero Touch Provisioning (SZTP)", RFC 8572, DOI 10
.17487 , , <https:///RFC8572 www >..rfc -editor .org /info /rfc8572 - [RFC8792]
-
Watsen, K., Auerswald, E., Farrel, A., and Q. Wu, "Handling Long Lines in Content of Internet-Drafts and RFCs", RFC 8792, DOI 10
.17487 , , <https:///RFC8792 www >..rfc -editor .org /info /rfc8792 - [RFC9642]
-
Watsen, K., "A YANG Data Model for a Keystore", RFC 9642, DOI 10
.17487 , , <https:///RFC9642 www >..rfc -editor .org /info /rfc9642 - [RFC9643]
-
Watsen, K. and M. Scharf, "YANG Groupings for TCP Clients and TCP Servers", RFC 9643, DOI 10
.17487 , , <https:///RFC9643 www >..rfc -editor .org /info /rfc9643 - [RFC9644]
-
Watsen, K., "YANG Groupings for SSH Clients and SSH Servers", RFC 9644, DOI 10
.17487 , , <https:///RFC9644 www >..rfc -editor .org /info /rfc9644 - [RFC9645]
-
Watsen, K., "YANG Groupings for TLS Clients and TLS Servers", RFC 9645, DOI 10
.17487 , , <https:///RFC9645 www >..rfc -editor .org /info /rfc9645 - [W3C
.REC -xml -20081126] -
Bray, T., Paoli, J., Sperberg
-Mc , Maler, E., and F. Yergeau, "Extensible Markup Language (XML) 1.0 (Fifth Edition)", World Wide Web Consortium Recommendation RECQueen, C.M. -xml , , <https://-20081126 www >..w3 .org /TR /2008 /REC -xml -20081126 /
Acknowledgements
The authors especially thank Henk Birkholz for contributing YANG
to the "ietf
The authors additionally thank the following for helping give shape to this work (ordered by first name): Balázs Kovács, Carl Wallace, Eric Voit, Éric Vyncke, Francesca Palombini, Jensen Zhang, Jürgen Schönwälder, Lars Eggert, Liang Xia, Martin Björklund, Murray Kucherawy, Nick Hancock, Paul Kyzivat, Qin Wu, Rob Wilton, Robert Varga, Roman Danyliw, and Yoav Nir.¶