Internet-Draft | delegated-voucher | September 2020 |
Richardson & Yang | Expires 22 March 2021 | [Page] |
This document describes an extension of the RFC8366 Voucher Artifact in order to support delegation of signing authority. The initial voucher pins a public identity, and that public indentity can then issue additional vouchers. This chain of authorization can support permission-less resale of devices, as well as guarding against business failure of the BRSKI [I-D.ietf-anima-bootstrapping-keyinfra] Manufacturer Authorized Signing Authority (MASA).¶
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 22 March 2021.¶
Copyright (c) 2020 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 Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.¶
The [RFC8366] voucher artifact provides a proof from a manufacturer's authorizing signing authority (MASA) of the intended owner of a device. This is used by an onboarding Pledge device in BRSKI ([I-D.ietf-anima-bootstrapping-keyinfra], [I-D.ietf-anima-constrained-voucher]), and SZTP ([RFC8572]).¶
There are a number of criticisms of the MASA concept. They include:¶
This voucher artifact satisfies the following requirements:¶
A Registrar wishes to onboard devices while it is not being connected to the Internet and MASA.¶
An owner of a device wishes to resale it which has previously been onboarded to a third party without specific authorization from the manufacturer.¶
The owner/manager of a registrar wishes to be able to replace its domain registration key. Replacing the registration key would invalidate any previously acquired (nonceless) vouchers. Any devices which have not been onboarded, or which need to be factory reset, would not trust a replacement key.¶
An assembly may consist of a number of parts which are onboarded to a local controller during the manufacturing process. Subsequent to this, the entire assembly will be shipped to a customer who wishes to onboard all the components. The sub-components of the assembly needs to communicate with other sub-components, and so all the parts need to transparently onboarded. (This is contrasted with an assembly where the controller acts as a security gateway. Such a gateway might be a single point of failure)¶
Assemblies may nest quite deeply.¶
The MASA will issue a voucher that delegates it's signing authority for one or more devices to a specific Registrar. This is called a "delegation voucher".¶
This Registrar can then operate as an authorized signing authority for the manufacturer, and can subsequently issue additional vouchers binding the pledge to new Registrars.¶
This delegation can potentially be repeated multiple times to enable second, third, or n-th level of resale.¶
The delegation voucher may be stored by the pledge for storage, to be included by the pledge in subsequent bootstrap operations. The inclusion of the delegation voucher permits next Registrar with heuristics that permit it to find the delegated authorized signing authority (DASA).¶
The delegation voucher pins the identity of the delegated authority using a variety of different mechanisms which are covered in Section 7.¶
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.¶
The following tree diagram shows the extensions to the [RFC8366] voucher.¶
There are a few new fields:¶
In addition, the serial-number field is no longer a plain leaf, but can also be an array (See Section 3.3).¶
module: ietf-delegated-voucher +--rw delegation-enable-flag? boolean grouping voucher-delegated-grouping +-- voucher +-- created-on yang:date-and-time +-- expires-on? yang:date-and-time +-- assertion enumeration +-- serial-number string +-- idevid-issuer? binary +-- pinned-domain-cert? binary +-- domain-cert-revocation-checks? boolean +-- nonce? binary +-- last-renewal-date? yang:date-and-time +-- pinned-delegation-cert-authority? binary +-- pinned-delegation-cert-name? binary +-- delegation-voucher? binary +-- intermediate-identities? binary +-- delegation-countdown? int16¶
This module uses the grouping that was created in [RFC8366] to extend the definition.¶
<CODE BEGINS> file "ietf-delegated-voucher@2020-01-06.yang" module ietf-delegated-voucher { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-delegated-voucher"; prefix "delegated"; import ietf-restconf { prefix rc; description "This import statement is only present to access the yang-data extension defined in RFC 8040."; reference "RFC 8040: RESTCONF Protocol"; } // maybe should import from constrained-voucher instead! import ietf-voucher { prefix "v"; } organization "IETF ANIMA Working Group"; contact "WG Web: <http://tools.ietf.org/wg/anima/> WG List: <mailto:anima@ietf.org> Author: Michael Richardson <mailto:mcr+ietf@sandelman.ca>"; description "This module extends the RFC8366 voucher format to provide a mechanism by which the authority to issue additional vouchers may be delegated to another entity The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'MAY', and 'OPTIONAL' in the module text are to be interpreted as described in BCP 14 RFC 2119, and RFC8174."; revision "2020-01-06" { description "Initial version"; reference "RFC XXXX: Voucher Profile for Delegation Vouchers"; } rc:yang-data voucher-delegated-artifact { // YANG data template for a voucher. uses voucher-delegated-grouping; } leaf delegation-enable-flag { type boolean; description "A global enable flag to the pledge that it can be delegated (true) or not (false). With default, this flag is false, which is consistent with the voucher artifact in RFC8366. "; } // Grouping defined for future usage grouping voucher-delegated-grouping { description "Grouping to allow reuse/extensions in future work."; uses v:voucher-artifact-grouping { refine voucher/pinned-domain-cert { mandatory false; } augment "voucher" { description "Base the delegated voucher upon the regular one"; leaf pinned-delegation-cert-authority { type binary; description "An subject-public-key-info for a public key of the certificate authority that is to be trusted to issue a delegation voucher to the Registrar. This is not used by end-vouchers, and only valid when delegation-enable-flag is true."; } leaf pinned-delegation-cert-name { type binary; description "A string for the rfc822Name SubjectAltName contents which will be trusted to issue delegation vouchers. This is not used by end-vouchers, and only valid when delegation-enable-flag is true."; } leaf delegation-voucher { type binary; description "The intermediate voucher that delegates authority to the entity that signs this voucher is to be included here, and only valid when delegation-enable-flag is true."; } leaf intermediate-identities { type binary; description "A set of identities that will be needed to validate the chain of vouchers, and only valid when delegation-enable-flag is true. MAY BE REDUNDANT"; } leaf delegation-countdown { type int16; description "Number of delegations still available, and only valid when delegation-enable-flag is true. If zero or omitted, then this is a terminal voucher and may not be further delegated"; } } } } } <CODE ENDS>¶
The [I-D.ietf-anima-bootstrapping-keyinfra] defines a mechanism to return a single voucher to the pledge.¶
This protocol requires a number of additional items to be returned to the pledge for evaluation: the series of Intermediate Vouchers that leads to the DASA, and the public keys (often as certificates) of the Registrars on the Delegation Path that leads to each Authority.¶
A MASA MAY delegate multiple devices to the same Registrar by putting an array of items in the "serial-number" attributes. (XXX-how to describe this in the YANG, and the detailed mechanism, are TBD)¶
The use of a Delegation Voucher requires changes to how the pledge evaluates the voucher that is returned to by the Registrar.¶
There are no significant changes to the voucher-request that is made. The pledge continues to pin the identity of the Registrar to which it is connected, providing a nonce to establish freshness.¶
A pledge which has previously stored a Delegation Voucher and DASA , SHOULD include it in its voucher request. This will be in the form of a certificate provided by the "previous" owner. This allows the Registrar to discover the previous authority for the pledge. As the pledge has no idea if it connecting to an entity that it previously has connected to, it needs to include this certificate anyway.¶
The pledge receives a voucher from the Registrar. This voucher is called the zero voucher. It will observe that the voucher is not signed with its built-in manufacturer trust anchor and it can not verify it.¶
The pledge will examine the voucher to look for the "delegation-voucher" and the "intermediate-identities" attributes within the voucher. A certificate from the set of intermediate-identities is expected to validate the signature on this zeroth end-entity voucher. (XXX- This attribute can be replaced by the CMS certificate chain)¶
The contained delegation-voucher object is to be interpreted as an (Intermediate) Voucher. This first voucher is called the first voucher, or "voucher[1]". Generically, for voucher[i], the voucher found in the delegation-voucher is called voucher[i+1].¶
If voucher[i] can be validated by a built-in trust anchor, then the process is done. If not, then voucher[i] is examined in a recursive process until there are no further embedded vouchers. The last voucher[n] is expected to be validated by a built-in manufacturer trust anchor.¶
Once the top (n-th) voucher is found, then the pinned-certificate-authority is added to the working set of trust anchors. The "pinned-certificate-name" attribute is used along with the trust anchor to validate the certificate chain provided with the (n-1)th voucher. This is repeated (unwinding the recursive processing) until the zeroth voucher has been validated.¶
The Registrar is the component that authenticates the pledge, makes authorization decisions, and distributes vouchers. If the vouchers is delegated, then the registrar need to co-ordinate MASA and DASA.¶
This case has many scenarioes in application.¶
For example, due to the willing of some devices' owner, or due to the creditor or bankruptcy, their devices need to resale to some third party, but they have previously been onboarded without specific authorization from the manufacturer. Aother example is for some owner, which PKI system is on the cloud initially, but later, they wish to change its CA, and it is effectively a "resale". Then, the registrar of third party must override MASA URL, contacting this owner's registrar for voucher. Here, the owner's registrar is delegation authority.¶
Furthurly, the pledges may be resaled many times, and when onboarding, they will receive all vouchers in order with the sale chain, firstly masa vouchour, then 1st intermidate, 2nd intermidate, till to the final dealer. In this case, the pledge's authorization form a signed voucher chain.¶
In addition, for a pledge, resale can't be forever, so the delegation voucher need specify the limit number of resales with "delegation-countdown".¶
The following illustrates a delegation voucher for a pledge: { "ietf-delegated-voucher:voucher": { "created-on": "2020-07-14T06:28:31Z", "expire-on": "2022-07-31T01:61:80Z", "assertion": "logged", "serial-number": "JADA123456789", "delegation-enable-flag": true, "pinned-delegation-cert-authority": "base64encodedvalue", "pinned-delegation-cert-name": "base64encodedvalue", "delegation-voucher": "base64encodedvalue", "intermediate-identities": "intermediateId1", "delegation-countdown": 1, } }¶
In some application, many pledges which come from multiple componet manufactures, need to be assemblied together in the first sale, In this time, the owner is assembly controller, so the pledge's voucher need to include these delegation options.¶
In addition, there are also transparent assembly, for exmale rail wagon scenario. Firstly, the assembly onboards normally to get all pledges' vouchers, then this assembly acts as intermidate registrar, who "sell" these pledges to every rail wagon registrar.¶
As described in the Security Considerations section of [RFC8366] (section 7.4), the YANG module specified in this document defines the schema for data that is subsequently encapsulated by a CMS signed-data content type, as described in Section 5 of [RFC5652]. As such, all of the YANG modeled data is protected from modification.¶
The use of YANG to define data structures, via the 'yang-data' statement, is relatively new and distinct from the traditional use of YANG to define an API accessed by network management protocols such as NETCONF [RFC6241] and RESTCONF [RFC8040]. For this reason, these guidelines do not follow template described by Section 3.7 of [RFC8407].¶
This document requires the following IANA actions:¶
This document registers a URI in the "IETF XML Registry" [RFC3688]. IANA is asked to register the following:¶
URI: urn:ietf:params:xml:ns:yang:ietf-delegated-voucher Registrant Contact: The ANIMA WG of the IETF. XML: N/A, the requested URI is an XML namespace.¶
This document registers a YANG module in the "YANG Module Names" registry [RFC6020]. IANA is asked to register the following:¶
name: ietf-delegated-voucher namespace: urn:ietf:params:xml:ns:yang:ietf-delegated-voucher prefix: NONE reference: THIS DOCUMENT¶
Hello.¶
RFC Editor, please remove this section. This section lists references in the YANG. [RFC8174], [RFC8040].¶