Internet-Draft BRSKI-CLOUD September 2024
Friel, et al. Expires 8 March 2025 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-ietf-anima-brski-cloud-10
Published:
Intended Status:
Standards Track
Expires:
Authors:
O. Friel
Cisco
R. Shekh-Yusef
Ernst & Young
M. Richardson
Sandelman Software Works

BRSKI Cloud Registrar

Abstract

Bootstrapping Remote Secure Key Infrastructures defines how to onboard a device securely into an operator maintained infrastructure. It assumes that there is local network infrastructure for the device to discover and help the device. This document extends the new device behavior so that if no local infrastructure is available, such as in a home or remote office, that the device can use a well-defined "call-home" mechanism to find the operator maintained infrastructure.

This document defines how to contact a well-known Cloud Registrar, and two ways in which the new device may be redirected towards the operator maintained infrastructure. The Cloud Registrar enables discovery of the operator maintained infrastructure, and may enable establishment of trust with operator maintained infrastructure that does not support BRSKI mechanisms.

About This Document

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

Status information for this document may be found at https://datatracker.ietf.org/doc/draft-ietf-anima-brski-cloud/.

Discussion of this document takes place on the anima Working Group mailing list (mailto:anima@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/anima/. Subscribe at https://www.ietf.org/mailman/listinfo/anima/.

Source for this draft and an issue tracker can be found at https://github.com/anima-wg/brski-cloud.

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 8 March 2025.

Table of Contents

1. Introduction

Bootstrapping Remote Secure Key Infrastructures [BRSKI] BRSKI specifies automated and secure provisioning of nodes (which are called pledges) with cryptographic keying material (trust anchors and certificates) to enable authenticated and confidential communication with other similarly enrolled nodes. This is also called enrolment.

In BRSKI, the pledge performs enrolment by communicating with a BRSKI Registrar belonging to the owner of the pledge. The pledge does not know who its owner will be when manufactured. Instead, in BRSKI it is assumed that the network to which the pledge connects belongs to the owner of the pledge and therefore network-supported discovery mechanisms can resolve generic, non-owner specific names to the owners Registrar.

To support enrolment of pledges without such an owner based access network, the mechanisms of BRSKI Cloud are required which assume that pledge and Registrar simply connect to the Internet.

This work is in support of [BRSKI], Section 2.7, which describes how a pledge MAY contact a well-known URI of a Cloud Registrar if a local Registrar cannot be discovered or if the pledge's target use cases do not include a local Registrar.

This kind of non-network onboarding is sometimes called "Application Onboarding", as the purpose is typically to deploy a credential that will be used by the device in it's intended use. For instance, a SIP phone might have a client certificate to be used with a SIP proxy.

This document further specifies use of a BRSKI Cloud Registrar and clarifies operations that are not sufficiently specified in BRSKI. Two modes of operation are specified in this document. The Cloud Registrar may redirect the pledge to the owner's Registrar, or the Cloud Registrar may issue a voucher to the pledge that includes the domain of the owner's Enrollment over Secure Transport [RFC7030] (EST) server.

1.1. Terminology

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.

This document uses the terms pledge, Registrar, MASA, and Voucher from [BRSKI] and [RFC8366].

Cloud Registrar:

The default Registrar that is deployed at a URI that is well known to the pledge.

EST:

Enrollment over Secure Transport [RFC7030]

Local Domain:

The domain where the pledge is physically located and bootstrapping from. This may be different from the pledge owner's domain.

Manufacturer:

The term manufacturer is used throughout this document as the entity that created the pledge. This is typically the original equipment manufacturer (OEM), but in more complex situations, it could be a value added retailer (VAR), or possibly even a systems integrator. Refer to [BRSKI] for more detailed descriptions of manufacturer, VAR and OEM.

Owner Domain:

The domain that the pledge needs to discover and bootstrap with.

Owner Registrar:

The Registrar that is operated by the Owner, or the Owner's delegate. There may not be an Owner Registrar in all deployment scenarios.

OEM:

Original Equipment Manufacturer

Provisional TLS:

A mechanism defined in [BRSKI], Section 5.1 whereby a pledge establishes a provisional TLS connection with a Registrar before the pledge is provisioned with a trust anchor that can be used for verifying the Registrar identity.

VAR:

Value Added Reseller

Cloud VAR Registrar:

The non-default Registrar that is operated by a value added reseller (VAR).

1.2. Target Use Cases

This document specifies and standardizes procedures for two high level use cases.

  • Bootstrap via Cloud Registrar and Owner Registrar: The operator maintained infrastructure supports BRSKI and has a BRSKI Registrar deployed. More details are provided in Section 1.2.1.

  • Bootstrap via Cloud Registrar and Owner EST Service: The operator maintained infrastructure does not support BRSKI, does not have a BRSKI Registrar deployed, but does have an Enrollment over Secure Transport (EST) [RFC7030] service deployed. More detailed are provided in Section 1.2.2.

Common to both uses cases is that they aid with the use of BRSKI in the presence of many small sites, such as teleworkers, with minimum expectations against their network infrastructure.

This use case also supports situations where a manufacturer sells a number of devices (in bulk) to a Value Added Resller (VAR). The manufacturer knows which devices have been sold to which VAR, but not who the ultimate owner will be. The VAR then sells devices to other entities, such as enterprises, and records this. A typical example is a VoIP phone manufacturer provides telephones to a local system integration company (a VAR). The VAR records this sale to it's Cloud VAR Registrar system.

In this use case, this VAR has sold and services a VoIP system to an enterprise (e.g., a SIP PBX). When a new employee needs a phone at their home office, the VAR ships that unit across town to the employee. When the employee plugs in the device and turns it on, the device will be provisioned with a LDevID and configuration that connections the phone with the Enterprises' VoIP PBX. The home employee's network has no special provisions.

This use case also supports a chain of VARs through chained HTTP redirects. This also supports a situation where in effect, a large enterprise might also stock devices in a central location.

The pledge is not expected to know whether the operator maintained infrastructure has a BRSKI Registrar deployed or not. The pledge determines this based upon the response to its Voucher Request message that it receives from the Cloud Registrar. The Cloud Registrar is expected to determine whether the operator maintained infrastructure has a BRSKI Registrar deployed based upon the identity presented by the pledge.

A Cloud Registrar will receive BRSKI communications from all devices configured with its URI. This could be, for example, all devices of a particular product line from a particular manufacturer. When this is a significantly large number, a Cloud Registrar may need to be scaled with the usual web-service scaling mechanisms.

1.2.1. Bootstrap via Cloud Registrar and Owner Registrar

A pledge is bootstrapping from a location with no local domain Registrar (for example, the small site or teleworker use case with no local infrastructure to provide for automated discovery), and needs to discover its Owner Registrar. The Cloud Registrar is used by the pledge to discover the Owner Registrar. The Cloud Registrar redirects the pledge to the Owner Registrar, and the pledge completes bootstrap against the Owner Registrar.

A typical example is an employee who is deploying a pledge in a home or small branch office, where the pledge belongs to the employer. There is no local domain Registrar, the pledge needs to discover and bootstrap with the employer's Registrar which is deployed within the employer's network, and the pledge needs the keying material to trust the Registrar. For example, an employee is deploying an IP phone in a home office and the phone needs to register to an IP PBX deployed in their employer's office.

Protocol details for this use case are provided in Section 4.1.

1.2.2. Bootstrap via Cloud Registrar and Owner EST Service

A pledge is bootstrapping where the owner organization does not yet have an Owner Registrar deployed, but does have an EST service deployed. The Cloud Registrar issues a voucher, and the pledge completes trust bootstrap using the Cloud Registrar. The voucher issued by the cloud includes domain information for the owner's EST service that the pledge should use for certificate enrollment.

For example, an organization has an EST service deployed, but does not have yet a BRSKI capable Registrar service deployed. The pledge is deployed in the organization's domain, but does not discover a local domain Registrar or Owner Registrar. The pledge uses the Cloud Registrar to bootstrap, and the Cloud Registrar provides a voucher that includes instructions on finding the organization's EST service.

This option can be used to introduce the benefits of BRSKI for an initial period when BRSKI is not available in existing EST-Servers. Additionally, it can also be used long-term as a security-equivalent solution in which BRSKI and EST-Server are set up in a modular fashion.

The use of an EST-Server instead of a BRSKI Registrar may mean that not all the EST options required by [BRSKI] may be available and hence this option may not support all BRSKI deployment cases. For example, certificates to enroll into an ACP [RFC8994] needs to include an AcpNodeName (see [RFC8994], Section 6.2.2), which non-BRSKI capable EST-Servers may not support.

Protocol details for this use case are provided in Section 4.2.

2. Architecture

The high level architectures for the two high level use cases are illustrated in Figure 1 and Figure 2.

In both use cases, the pledge connects to the Cloud Registrar during bootstrap.

For use case one, as described in Section 1.2.1, the Cloud Registrar redirects the pledge to an Owner Registrar in order to complete bootstrap with the Owner Registrar. When bootstrapping against an Owner Registrar, the Owner Registrar will interact with a CA to assist in issuing certificates to the pledge. This is illustrated in Figure 1.

For use case two, as described Section 1.2.2, the Cloud Registrar issues a voucher itself without redirecting the pledge to an Owner Registrar, the Cloud Registrar will inform the pledge what domain to use for accessing EST services in the voucher response. In this model, the pledge interacts directly with the EST service to enroll. The EST service will interact with a CA to assist in issuing a certificate to the pledge. This is illustrated in Figure 2.

It is also possible that the Cloud Registrar may redirect the pledge to another Cloud Registrar operated by a VAR, with that VAR's Cloud Registrar then redirecting the pledge to the Owner Registrar. This scenario is discussed further in sections Section 8.2 and Section 9.3.

The mechanisms and protocols by which the Registrar or EST service interacts with the CA are transparent to the pledge and are out-of-scope of this document.

The architectures show the Cloud Registrar and MASA as being logically separate entities. The two functions could of course be integrated into a single entity.

There are two different mechanisms for a Cloud Registrar to handle voucher requests. It can redirect the request to the Owner Registrar for handling, or it can return a voucher that pins the actual Owner Registrar. When returning a voucher, additional bootstrapping information is embedded in the voucher. Both mechanisms are described in detail later in this document.

| OWNER | MANUFACTURER On-site Cloud Pledge Cloud Registrar Owner MASA VR-sign(N) Registrar sign(VR-sign(N)) CA
Figure 1: Architecture: Bootstrap via Cloud Registrar and Owner Registrar
| OWNER | MANUFACTURER On-site Cloud Pledge Cloud Registrar MASA EST Server CA
Figure 2: Architecture: Bootstrap via Cloud Registrar and Owner EST Service

As depicted in Figure 1 and Figure 2, there are a number of parties involve in the process. The Manufacturer, or Original Equipment Manufacturer (OEM) builds the device, but also is expected to run the MASA, or arrange for it to exist.

The network operator or enterprise is the intended owner of the new device: the pledge. This could be the enterprise itself, or in many cases there is some outsourced IT department that might be involved. They are the operator of the Registrar or EST Server. They may also operate the CA, or they may contract those services from another entity.

There is a potential additional party involved who may operate the Cloud Registrar: the value added reseller (VAR). The VAR works with the OEM to ship products with the right configuration to the owner. For example, SIP telephones or other conferencing systems may be installed by this VAR, often shipped directly from a warehouse to the customer's remote office location. The VAR and manufacturer are aware of which devices have been shipped to the VAR through sales channel integrations, and so the manufacturer's Cloud Registrar is able to redirect the pledge through a chain of Cloud Registrars, as explained in Section 3.3.1.

2.1. Network Connectivity

The assumption is that the pledge already has network connectivity prior to connecting to the Cloud Registrar. The pledge must have an IP address that is able to make DNS queries, and be able to send requests to the Cloud Registrar. There are many ways to accomplish this, from routable IPv4 or IPv6 addresses, to use of NAT44, to using HTTP or SOCKS proxies. There are DHCP options that a network operator can configure to accomplish any of these options. The pledge operator has already connected the pledge to the network, and the mechanism by which this has happened is out of scope of this document. For many telephony applications, this is typically going to be a wired connection.

For wireless use cases, some kind of existing Wi-Fi onboarding mechanism such as WPS. Similarly, what address space the IP address belongs to, whether it is an IPv4 or IPv6 address, or if there are firewalls or proxies deployed between the pledge and the cloud registrar are all out of scope of this document.

2.2. Pledge Certificate Identity Considerations

BRSKI section 5.9.2 specifies that the pledge MUST send an EST [RFC7030] CSR Attributes request to the EST server before it requests a client certificate. For the use case described in Section 1.2.1, the Owner Registrar operates as the EST server as described in BRSKI section 2.5.3, and the pledge sends the CSR Attributes request to the Owner Registrar. For the use case described in Section 1.2.2, the EST server operates as described in [RFC7030], and the pledge sends the CSR Attributes request to the EST server. Note that the pledge only sends the CSR Attributes request to the entity acting as the EST server as per [RFC7030] section 2.6, and MUST NOT send the CSR Attributes request to the Cloud Registrar. The EST server MAY use this mechanism to instruct the pledge about the identities it should include in the CSR request it sends as part of enrollment. The EST server may use this mechanism to tell the pledge what Subject or Subject Alternative Name identity information to include in its CSR request. This can be useful if the Subject must have a specific value in order to complete enrollment with the CA.

EST [RFC7030] is not clear on how the CSR Attributes response should be structured, and in particular is not clear on how a server can instruct a client to include specific attribute values in its CSR. [I-D.ietf-lamps-rfc7030-csrattrs] clarifies how a server can use CSR Attributes response to specify specific values for attributes that the client should include in its CSR.

For example, the pledge may only be aware of its IDevID Subject which includes a manufacturer serial number, but must include a specific fully qualified domain name in the CSR in order to complete domain ownership proofs required by the CA.

As another example, the Registrar may deem the manufacturer serial number in an IDevID as personally identifiable information, and may want to specify a new random opaque identifier that the pledge should use in its CSR.

3. Protocol Operation

This section outlines the high level protocol requirements and operations that take place. Section 4 outlines the exact sequence of message interactions between the pledge, the Cloud Registrar, the Owner Registrar and the Owner EST server.

3.1. Pledge Sends Voucher Request to Cloud Registrar

3.1.1. Cloud Registrar Discovery

BRSKI defines how a pledge MAY contact a well-known URI of a Cloud Registrar if a local domain Registrar cannot be discovered. Additionally, certain pledge types might never attempt to discover a local domain Registrar and might automatically bootstrap against a Cloud Registrar.

The details of the URI are manufacturer specific, with BRSKI giving the example "brski-registrar.manufacturer.example.com".

The pledge SHOULD be provided with the entire URI of the Cloud Registrar, including the protocol and path components, which are typically "https://" and "/.well-known/brski", respectively.

3.1.2. Pledge - Cloud Registrar TLS Establishment Details

According to [BRSKI], Section 2.7, the pledge MUST use an Implicit Trust Anchor database (see EST [RFC7030]) to authenticate the Cloud Registrar service. The pledge MUST establish a mutually authenticated TLS connection with the Cloud Registrar. Unlike the Provisional TLS procedures documented in BRSKI section 5.1, the pledge MUST NOT establish a Provisional TLS connection with the Cloud Registrar.

Pledges MUST and Cloud/Owner Registrars SHOULD support the use of the "server_name" TLS extension (SNI, RFC6066). Pledges SHOULD send a valid "server_name" extension whenever they know the domain name of the registrar they connect to, unless it is known that Cloud or Owner Registrars for this pledge implementation will never need to be deployed in a cloud setting requiring the "server_name" extension.

The pledge MUST be manufactured with pre-loaded trust anchors that are used to verify the identity of the Cloud Registrar when establishing the TLS connection. The TLS connection can be verified using a public Web PKI trust anchor using [RFC9525] DNS-ID mechanisms or a pinned certification authority. This is a local implementation decision. Refer to Section 9.2 for trust anchor security considerations.

The Cloud Registrar MUST verify the identity of the pledge by sending a TLS CertificateRequest message to the pledge during TLS session establishment. The Cloud Registrar MAY include a certificate_authorities field in the message to specify the set of allowed IDevID issuing CAs that pledges may use when establishing connections with the Cloud Registrar.

To protect itself against DoS attacks, the Cloud Registrar SHOULD reject TLS connections when it can determine during TLS authentication that it cannot support the pledge, for example because the pledge cannot provide an IDevID signed by a CA recognized/supported by the Cloud Registrar.

3.1.3. Pledge Sends Voucher Request Message

After the pledge has established a mutually authenticated TLS connection with the Cloud Registrar, the pledge generates a voucher request message as outlined in BRSKI section 5.2, and sends the voucher request message to the Cloud Registrar.

3.2. Cloud Registrar Processes Voucher Request Message

The Cloud Registrar must determine pledge ownership. Prior to ownership determination, the Registrar checks the request for correctness and if it is unwilling or unable to handle the request, it MUST return a suitable 4xx or 5xx error response to the pledge as defined by [BRSKI] and HTTP. In the case of an unknown pledge a 404 is returned, for a malformed request 400 is returned, or in case of server overload 503 is returned.

If the request is correct and the Registrar is able to handle it, but unable to determine ownership at that time, then it MUST return a 401 Unauthorized response to the pledge. This signals to the pledge that there is currently no known owner domain for it, but that retrying later might resolve this situation. In this scenario, the Registrar SHOULD include a Retry-After header that includes a time to defer. The absense of a Retry-After header indicates to the pledge not to attempt again. The Pledge MUST restart the bootstrapping process from the beginning.

A pledge with some kind of indicator (such as a screen or LED) SHOULD consider all 4xx and 5xx errros to be a bootstrapping failure, and indicate this to the operator.

If the Cloud Registrar successfully determines ownership, then it MUST take one of the following actions:

  • error: return a suitable 4xx or 5xx error response (as defined by [BRSKI] and HTTP) to the pledge if the request processing failed for any reason

  • redirect to Owner Registrar: redirect the pledge to an Owner Registrar via 307 response code

  • redirect to owner EST server: issue a voucher (containing an est-domain attribute) and return a 200 response code

3.2.1. Pledge Ownership Look Up

The Cloud Registrar needs some suitable mechanism for knowing the correct owner of a connecting pledge based on the presented identity certificate. For example, if the pledge establishes TLS using an IDevID that is signed by a known manufacturing CA, the Registrar could extract the serial number from the IDevID and use this to look up a database of pledge IDevID serial numbers to owners.

The mechanism by which the Cloud Registrar determines pledge ownership is, however, out-of-scope of this document. The Cloud Registrar is strongly tied to the manufacturers' processes for device identity.

3.2.2. Bootstrap via Cloud Registrar and Owner Registrar

Once the Cloud Registrar has determined pledge ownership, the Cloud Registrar MAY redirect the pledge to the Owner Registrar in order to complete bootstrap. If the owner wants the Cloud Registrar to redirect pledges to their Owner Registrar, the owner must register their Owner Registrar URI with cloud Registrar. The mechanism by which pledge owners register their Owner Registrar URI with the Cloud Registrar is out-of-scope of this document.

In case of redirection, the Cloud Registrar replies to the voucher request with an HTTP 307 Temporary Redirect response code, including the owner's local domain in the HTTP Location header.

3.2.3. Bootstrap via Cloud Registrar and Owner EST Service

If the Cloud Registrar issues a voucher, it returns the voucher in an HTTP response with a 200 response code.

The Cloud Registrar MAY issue a 202 response code if it is willing to issue a voucher, but will take some time to prepare the voucher.

The voucher MUST include the new "est-domain" field as defined in [RFC8366bis]. This tells the pledge where the domain of the EST service to use for completing certificate enrollment.

The voucher MAY include the new "additional-configuration" field. This field points the pledge to a URI where pledge specific additional configuration information may be retrieved. For example, a SIP phone might retrieve a manufacturer specific configuration file that contains information about how to do SIP Registration. One advantage of this mechanism over current mechanisms like DHCP options 120 defined in [RFC3361] or option 125 defined in [RFC3925] is that the voucher is returned in a confidential (TLS-protected) transport, and so can include device-specific credentials for retrieval of the configuration.

The exact pledge and Registrar behavior for handling and specifying the "additional-configuration" field is out-of-scope of this document.

3.3. Pledge Handles Cloud Registrar Response

3.3.1. Bootstrap via Cloud Registrar and Owner Registrar

The Cloud Registrar has returned a 307 response to a voucher request. The Cloud Registrar may be redirecting the pledge to the Owner Registrar, or to a different Cloud Registrar operated by a VAR.

The pledge MUST restart its bootstrapping process by sending a new voucher request message (with a fresh nonce) using the location provided in the HTTP redirect.

The pledge SHOULD attempt to validate the identity of the Cloud VAR Registrar specified in the 307 response using its Implicit Trust Anchor Database. If validation of this identity succeeds using the Implicit Trust Anchor Database, then the pledge MAY accept a subsequent 307 response from this Cloud VAR Registrar.

The pledge MAY continue to follow a number of 307 redirects provided that each 307 redirect target Registrar identity is validated using the Implicit Trust Anchor Database.

However, if validation of a 307 redirect target Registrar identity using the Implicit Trust Anchor Database fails, then the pledge MUST NOT accept any further 307 responses from the Registrar. At this point, the TLS connection that has been established is considered a Provisional TLS, as per [BRSKI], Section 5.1. The Pledge then (re)sends a voucher-request on this connection. This connection is validated using the pinned data from the voucher, which is the standard BRSKI mechanism.

The pledge MUST process any error messages as defined in [BRSKI], and in case of error MUST restart the process from its provisioned Cloud Registrar. The exception is that a 401 Unauthorized code SHOULD cause the pledge to retry a number of times over a period of a few hours.

The pledge MUST never visit a location that it has already been to, in order to avoid any kind of cycle. If it happens that a location is repeated, then the pledge MUST fail the bootstrapping attempt and go back to the beginning, which includes listening to other sources of bootstrapping information as specified in [BRSKI] section 4.1 and 5.0. The pledge MUST also have a limit on the total number of redirects it will a follow, as the cycle detection requires that it keep track of the places it has been. That limit MUST be in the dozens or more redirects such that no reasonable delegation path would be affected.

When the pledge cannot validate the connection, then it MUST establish a Provisional TLS connection with the specified local domain Registrar at the location specified.

The pledge then sends a voucher request message via the local domain Registrar.

After the pledge receives the voucher, it verifies the TLS connection to the local domain Registrar and continues with enrollment and bootstrap as per standard BRSKI operation.

The pledge MUST process any error messages as defined in [BRSKI], and in case of error MUST restart the process from its provisioned Cloud Registrar.

The exception is that a 401 Unauthorized code SHOULD cause the pledge to retry a number of times over a period of a few hours.

3.3.2. Bootstrap via Cloud Registrar and Owner EST Service

The Cloud Registrar returned a voucher to the pledge. The pledge MUST perform voucher verification as per BRSKI section 5.6.1.

The pledge SHOULD extract the "est-domain" field from the voucher, and SHOULD continue with EST enrollment as per standard EST operation. Note that the pledge has been instructed to connect to the EST server specified in the "est-domain" field, and therefore SHOULD use EST mechanisms, and not BRSKI mechanisms, when connecting to the EST server.

4. Protocol Details

4.1. Bootstrap via Cloud Registrar and Owner Registrar

This flow illustrates the "Bootstrap via Cloud Registrar and Owner Registrar" use case. A pledge is bootstrapping in a remote location with no local domain Registrar. The assumption is that the Owner Registrar domain is accessible, and the pledge can establish a network connection with the Owner Registrar. This may require that the owner network firewall exposes the Owner Registrar on the public internet.

Pledge Cloud Registrar 1. Mutually-authenticated TLS 2. Voucher Request 3. 307 Location: owner-ra.example.com Owner MASA Registrar 4. Provisional TLS 5. Voucher Request 6. Voucher Request 7. Voucher Response 8. Voucher Response 9. Verify TLS 10. etc.

The process starts, in step 1, when the pledge establishes a Mutual TLS channel with the Cloud Registrar using artifacts created during the manufacturing process of the pledge.

In step 2, the pledge sends a voucher request to the Cloud Registrar.

The Cloud Registrar determines pledge ownership look up as outlined in Section 3.2.1, and determines the Owner Registrar domain. In step 3, the Cloud Registrar redirects the pledge to the Owner Registrar domain.

Steps 4 and onwards follow the standard BRSKI flow. The pledge establishes a Provisional TLS connection with the Owner Registrar, and sends a voucher request to the Owner Registrar. The Registrar forwards the voucher request to the MASA. Assuming the MASA issues a voucher, then the pledge verifies the TLS connection with the Registrar using the pinned-domain-cert from the voucher and completes the BRSKI flow.

4.2. Bootstrap via Cloud Registrar and Owner EST Service

This flow illustrates the "Bootstrap via Cloud Registrar and Owner EST Service" use case. A pledge is bootstrapping in a location with no local domain Registrar. The Cloud Registrar is instructing the pledge to connect directly to an EST server for enrolment using EST mechanisms. The assumption is that the EST domain is accessible, and the pledge can establish a network connection with the EST server.

Pledge Cloud Registrar / MASA 1. Mutually-authenticated TLS 2. Voucher Request 3. Voucher Response {est-domain:fqdn} RFC7030 EST Server 4. Authenticated TLS 5a. /voucher_status POST success ON FAILURE 5b. /voucher_status POST 6. EST Enroll 7. Certificate 8. /enrollstatus

The process starts, in step 1, when the pledge establishes a Mutual TLS channel with the Cloud Registrar/MASA using artifacts created during the manufacturing process of the pledge. In step 2, the pledge sends a voucher request to the Cloud Registrar/MASA, and in the response in step 3, the pledge receives an [RFC8366bis] format voucher from the Cloud Registrar/MASA that includes its assigned EST domain in the est-domain attribute.

In step 4, the pledge establishes a TLS connection with the EST RA specified in the voucher est-domain attribute. The connection may involve crossing the Internet requiring a DNS look up on the provided name. It may also be a local address that includes an IP address literal including both [RFC1918] and IPv6 Unique Local Addresses [RFC4193]. The artifact provided in the pinned-domain-cert is trusted as a trust anchor, and is used to verify the EST server identity. The EST server identity MUST be verified using the pinned-domain-cert value provided in the voucher as described in [RFC7030] section 3.3.1.

There is a case where the pinned-domain-cert is the identical End-Entity (EE) Certificate as the EST server. It also explicitly includes the case where the EST server has a self-signed EE Certificate, but it may also be an EE certificate that is part of a larger PKI. If the certificate is not a self-signed or EE certificate, then the pledge SHOULD apply [RFC9525] DNS-ID verification on the certificate against the domain provided in the est-domain attribute. If the est-domain was provided by with an IP address literal, then it is unlikely that it can be verified, and in that case, it is expected that either a self-signed certificate or an EE certificate will be pinned by the voucher.

The pledge also has the details it needs to be able to create the CSR request to send to the RA based on the details provided in the voucher.

In steps 5.a and 5.b, the pledge may optionally notify the Cloud Registrar/MASA of the success or failure of its attempt to establish a secure TLS channel with the EST server.

The pledge then follows that, in step 6, with an EST Enroll request with the CSR and obtains the requested certificate. The pledge must verify that the issued certificate in step 7 has the expected identifier obtained from the Cloud Registrar/MASA in step 3.

5. Lifecycle Considerations

BRSKI and the Cloud Registrar support provided in this document are dependant upon the manufacturer maintaining the required infrastructure.

[BRSKI], Section 10.7 and Section 11.5 and 11.6 detail some additional considerations about device vs manufacturer life span.

The well-known URL that is used is specified by the manufacturer when designing it's firmware, and is therefore completely under the manufacturer's control. If the manufacturer wishes to change the URL, or discontinue the service, then the manufacturer will need to arrange for a firmware update where appropriate changes are made.

6. YANG extension for Voucher based redirect

[RFC8366bis] contains the two needed voucher extensions: est-domain and additional-configuration which are needed when a client is redirected to a local EST server.

7. IANA Considerations

This document makes no IANA requests.

8. Implementation Considerations

8.1. Captive Portals

A pledge may be deployed in a network where a captive portal or an intelligent home gateway that provides access control on all connections is also deployed. Captive portals that do not follow the requirements of [RFC8952] section 1 may forcibly redirect HTTPS connections. While this is a deprecated practice as it breaks TLS in a way that most users can not deal with, it is still common in many networks.

When the pledge attempts to connect to the Cloud Registrar, an incorrect connection will be detected because the pledge will be unable to verify the TLS connection to its Cloud Registrar via DNS-ID check [RFC9525], Section 6.3. That is, the certificate returned from the captive portal will not match.

At this point a network operator who controls the captive portal, noticing the connection to what seems a legitimate destination (the Cloud Registrar), may then permit that connection. This enables the first connection to go through.

The connection is then redirected to the Registrar via 307, or to an EST server via est-domain in a voucher. If it is a 307 redirect, then a Provisional TLS connection will be initiated, and it will succeed. The Provisional TLS connection does not do [RFC9525], Section 6.3 DNS-ID verification at the beginning of the connection, so a forced redirection to a captive portal system will not be detected. The subsequent BRSKI POST of a voucher will most likely be met by a 404 or 500 HTTP code.

It is RECOMMENDED therefore that the pledge look for [RFC8910] attributes in DHCP, and if present, use the [RFC8908] API to learn if it is captive.

The scenarios outlined here when a pledge is deployed behind a captive portal may result in failure scenarios, but do not constitute a security risk, as the pledge is correctly verifying all TLS connections as per [BRSKI].

8.2. Multiple HTTP Redirects

If the Redirect to Registrar method is used, as described in Section 4.1, there may be a series of 307 redirects. An example of why this might occur is that the manufacturer only knows that it resold the device to a particular value added reseller (VAR), and there may be a chain of such VARs. It is important the pledge avoid being drawn into a loop of redirects. This could happen if a VAR does not think they are authoritative for a particular device. A "helpful" programmer might instead decide to redirect back to the manufacturer in an attempt to restart at the top: perhaps there is another process that updates the manufacturer's database and this process is underway. Instead, the VAR MUST return a 404 error if it cannot process the device. This will force the device to stop, timeout, and then try all mechanisms again.

There are additional considerations regarding TLS certificate validation that must be accounted for as outlined in {redirect-response}. When the pledge follows a 307 redirect from the default Cloud Registrar, it will attempt to establish a TLS connection with the redirected target Registrar. The pledge implementation will typically register a callback with the TLS stack, where the TLS stack allows the implementation to validate the identity of the Registrar. The pledge should check whether the identity of the Registrar can be validated with its Implicit Trust Anchor Database and track the result, but should always return a successful validation result to the TLS stack, thus allowing the [BRSKI] Provisional TLS connection to be established. The pledge will then send a Voucher Request to the Registrar. If the Registrar returns a 307 response, the pledge MUST NOT follow this redirect if the Registrar identity was not validated using its Implicit Trust Anchor Database. If the Registrar identity was validated using the Implicit Trust Anchor Database, then the pledge MAY follow the redirect.

9. Security Considerations

The Cloud Registrar described in this document inherits all the strong security properties that are described in [BRSKI], and none of the security mechanisms that are defined in [BRSKI] are bypassed or weakened by this document. The Cloud Registrar also inherits all the potential issues that are described in [BRSKI]. This includes dependency upon continued operation of the manufacturer provided MASA, as well as potential complications where a manufacturer might interfere with resale of a device.

In addition to the dependency upon the MASA, the successful enrollment of a device using a Cloud Registrar depends upon the correct and continued operation of this new service. This internet accessible service may be operated by the manufacturer and/or by one or more value-added-resellers. All the considerations for operation of the MASA also apply to operation of the Cloud Registrar.

9.1. Security Updates for the Pledge

Unlike many other uses of BRSKI, in the Cloud Registrar case it is assumed that the pledge has connected to a network, such as the public Internet, on which some amount of connectivity is possible, but there is no other local configuration available. (Note: there are many possible configurations in which the device might not have unlimited connectivity to the public Internet, but for which there might be connectivity possible. For instance, the device could be without a default route or NAT44, but able to make HTTP requests via an HTTP proxy configured via DHCP)

There is another advantage to being online: the pledge may be able to contact the manufacturer before bootstrapping in order to apply the latest firmware updates. This may also include updates to the Implicit list of Trust Anchors. In this way, a pledge that may have been in a dusty box in a warehouse for a long time can be updated to the latest (exploit-free) firmware before attempting bootstrapping.

9.2. Trust Anchors for Cloud Registrar

The Implicit Trust Anchor database is used to authenticate the Cloud Registrar. This list is built-in by the manufacturer along with a DNS name to which to connect. (The manufacturer could even build in IP addresses as a last resort)

The Cloud Registrar may have a certificate that can be verified using a public (WebPKI) anchor. If one or more public WebPKI anchors are used, it is recommended to limit the number of WebPKI anchors to only those necessary for establishing trust with the Cloud Registrar. As another option, the Cloud Registrar may have a certificate that can be verified using a Private/Cloud PKI anchor as described in [I-D.irtf-t2trg-taxonomy-manufacturer-anchors] section 3. The trust anchor, or trust anchors, to use is an implementation decision and out of scope of this document.

The pledge may have any kind of Trust Anchor built in: from full multi-level WebPKI to the single self-signed certificate used by the Cloud Registrar. There are many tradeoffs to having more or less of the PKI present in the pledge, which is addressed in part in [I-D.irtf-t2trg-taxonomy-manufacturer-anchors] in sections 3 and 5.

9.3. Considerations for HTTP Redirect

When the default Cloud Registrar redirects a pledge using HTTP 307 to an Owner Registrar, or another Cloud Registrar operated by a VAR, the pledge MUST establish a Provisional TLS connection with the Registrar as specified in [BRSKI]. The pledge is unable to determine whether it has been redirected to another Cloud Registrar that is operated by a VAR, or if it has been redirected to an Owner Registrar, and does not differentiate between the two scenarios.

9.4. Considerations for Voucher est-domain

A Cloud Registrar supporting the same set of pledges as a MASA may be integrated with the MASA to avoid the need for a network based API between them, and without changing their external behavior as specified here.

When a Cloud Registrar handles the scenario described in {bootstrapping-with-no-owner-registrar} by the returning "est-domain" attribute in the voucher, the Cloud Registrar actually does all the voucher processing as specified in [BRSKI]. This is an example deployment scenario where the Cloud Registrar may be operated by the same entity as the MASA, and it may even be integrated with the MASA.

When a voucher is issued by the Cloud Registrar and that voucher contains an "est-domain" attribute, the pledge MUST verify the TLS connection with this EST server using the "pinned-domain-cert" attribute in the voucher.

The reduced operational security mechanisms outlined in [BRSKI] sections 7.3 and 11 MAY be supported when the pledge connects with the EST server. These mechanisms reduce the security checks that take place when the pledge enrolls with the EST server. Refer to [BRSKI] sections 7.3 and 11 for further details.

Acknowledgements

The authors would like to thank for following for their detailed reviews: (ordered by last name): Esko Dijk, Sheng Jiang.

References

Normative References

[BRSKI]
Pritikin, M., Richardson, M., Eckert, T., Behringer, M., and K. Watsen, "Bootstrapping Remote Secure Key Infrastructure (BRSKI)", RFC 8995, DOI 10.17487/RFC8995, , <https://www.rfc-editor.org/rfc/rfc8995>.
[I-D.ietf-lamps-rfc7030-csrattrs]
Richardson, M., Friel, O., von Oheimb, D., and D. Harkins, "Clarification and enhancement of RFC7030 CSR Attributes definition", Work in Progress, Internet-Draft, draft-ietf-lamps-rfc7030-csrattrs-11, , <https://datatracker.ietf.org/doc/html/draft-ietf-lamps-rfc7030-csrattrs-11>.
[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>.
[RFC6066]
Eastlake 3rd, D., "Transport Layer Security (TLS) Extensions: Extension Definitions", RFC 6066, DOI 10.17487/RFC6066, , <https://www.rfc-editor.org/rfc/rfc6066>.
[RFC7030]
Pritikin, M., Ed., Yee, P., Ed., and D. Harkins, Ed., "Enrollment over Secure Transport", RFC 7030, DOI 10.17487/RFC7030, , <https://www.rfc-editor.org/rfc/rfc7030>.
[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>.
[RFC8366]
Watsen, K., Richardson, M., Pritikin, M., and T. Eckert, "A Voucher Artifact for Bootstrapping Protocols", RFC 8366, DOI 10.17487/RFC8366, , <https://www.rfc-editor.org/rfc/rfc8366>.
[RFC8366bis]
Watsen, K., Richardson, M., Pritikin, M., Eckert, T. T., and Q. Ma, "A Voucher Artifact for Bootstrapping Protocols", Work in Progress, Internet-Draft, draft-ietf-anima-rfc8366bis-12, , <https://datatracker.ietf.org/doc/html/draft-ietf-anima-rfc8366bis-12>.
[RFC8994]
Eckert, T., Ed., Behringer, M., Ed., and S. Bjarnason, "An Autonomic Control Plane (ACP)", RFC 8994, DOI 10.17487/RFC8994, , <https://www.rfc-editor.org/rfc/rfc8994>.

Informative References

[I-D.irtf-t2trg-taxonomy-manufacturer-anchors]
Richardson, M., "A Taxonomy of operational security considerations for manufacturer installed keys and Trust Anchors", Work in Progress, Internet-Draft, draft-irtf-t2trg-taxonomy-manufacturer-anchors-04, , <https://datatracker.ietf.org/doc/html/draft-irtf-t2trg-taxonomy-manufacturer-anchors-04>.
[RFC1918]
Rekhter, Y., Moskowitz, B., Karrenberg, D., de Groot, G. J., and E. Lear, "Address Allocation for Private Internets", BCP 5, RFC 1918, DOI 10.17487/RFC1918, , <https://www.rfc-editor.org/rfc/rfc1918>.
[RFC3361]
Schulzrinne, H., "Dynamic Host Configuration Protocol (DHCP-for-IPv4) Option for Session Initiation Protocol (SIP) Servers", RFC 3361, DOI 10.17487/RFC3361, , <https://www.rfc-editor.org/rfc/rfc3361>.
[RFC3925]
Littlefield, J., "Vendor-Identifying Vendor Options for Dynamic Host Configuration Protocol version 4 (DHCPv4)", RFC 3925, DOI 10.17487/RFC3925, , <https://www.rfc-editor.org/rfc/rfc3925>.
[RFC4193]
Hinden, R. and B. Haberman, "Unique Local IPv6 Unicast Addresses", RFC 4193, DOI 10.17487/RFC4193, , <https://www.rfc-editor.org/rfc/rfc4193>.
[RFC8908]
Pauly, T., Ed. and D. Thakore, Ed., "Captive Portal API", RFC 8908, DOI 10.17487/RFC8908, , <https://www.rfc-editor.org/rfc/rfc8908>.
[RFC8910]
Kumari, W. and E. Kline, "Captive-Portal Identification in DHCP and Router Advertisements (RAs)", RFC 8910, DOI 10.17487/RFC8910, , <https://www.rfc-editor.org/rfc/rfc8910>.
[RFC8952]
Larose, K., Dolson, D., and H. Liu, "Captive Portal Architecture", RFC 8952, DOI 10.17487/RFC8952, , <https://www.rfc-editor.org/rfc/rfc8952>.
[RFC9525]
Saint-Andre, P. and R. Salz, "Service Identity in TLS", RFC 9525, DOI 10.17487/RFC9525, , <https://www.rfc-editor.org/rfc/rfc9525>.

Authors' Addresses

Owen Friel
Cisco
Rifaat Shekh-Yusef
Ernst & Young
Michael Richardson
Sandelman Software Works