RFC 9677
Content Delivery Network Interconnection (CDNI) Metadata for Delegated Credentials
RFC 9677: Content Delivery Network Interconnection (CDNI) Metadata for Delegated Credentials π
Okay bestie, this one is about who holds the keys when content gets delivered over HTTPS through more than one CDN πβ¨ Here's the header info:
- Authors: F. Fieau, E. Stephan, G. Bichot and C. Neumann, from Orange and Broadpeak π
- Category: Standards Track π
- ISSN: 2070-1721
- Date: October 2024 πΈ
- Obsoletes / Updates: the header doesn't list anything it obsoletes or updates π¦
Abstract β¨
Okay so, delivering content over HTTPS when multiple Content Delivery Networks (CDNs) are involved gets messy with credentials π This doc defines metadata in the CDNI Control and Metadata interface so an upstream CDN (uCDN) can set up HTTPS delegation for a downstream CDN (dCDN) using delegated credentials. It's giving teamwork π«Ά
Status of This Memo π
This is an Internet Standards Track document.
It's a product of the Internet Engineering Task Force (IETF), so it represents the consensus of the IETF community. It went through public review and was approved for publication by the Internet Engineering Steering Group (IESG). If you want more info on Internet Standards, check Section 2 of RFC 7841 π§
For the current status, any errata, and how to give feedback, go to https://www.rfc-editor.org/info/rfc9677 π₯
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://trustee.ietf.org/license-info) as in effect on the date of publication. Please read these carefully, because they spell out your rights and restrictions for this document π Code Components pulled out of this document must include Revised BSD License text, as described in Section 4.e of the Trust Legal Provisions, and they come without warranty, as described in the Revised BSD License π
Table of Contents π
1. Introduction
2. Terminology
3. CDNI Footprint and Capabilities Advertisement Interface (FCI)
Capabilities Object for Delegated Credentials
3.1. FCI.DelegatedCredentials
3.2. Expected Usage of the Property Number of Supported
Delegated Credentials
4. CDNI Metadata Interface (MI) Metadata Object for Delegated
Credentials
5. Delegated Credentials Call Flow
6. IANA Considerations
6.1. CDNI MI.DelegatedCredentials Payload Type
6.2. CDNI FCI.DelegatedCredentials Payload Type
7. Security Considerations
8. Privacy Considerations
9. References
9.1. Normative References
9.2. Informative References
Authors' Addresses
1. Introduction π¦
Content delivery over HTTPS that uses one or more CDNs along the delivery path means you have to manage credentials π This gets especially important when an entity hands off HTTPS delivery of its content to another trusted entity π€
This document specifies the CDNI Metadata interface for setting up HTTPS delegation with delegated credentials, as defined in [RFC9345], between an upstream CDN (uCDN) and a downstream CDN (dCDN) π
2. 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 π (So only the all-caps versions count, lowercase ones are just regular words π )
This document uses terminology from the CDNI specifications: the CDNI framework [RFC7336], the CDNI requirements [RFC7337], and the CDNI Metadata interface [RFC8006] πΈ
3. CDNI Footprint and Capabilities Advertisement Interface (FCI) Capabilities Object for Delegated Credentials π
A dCDN should advertise its supported delegation methods using the Footprint and Capabilities Advertisement interface (FCI) as defined in [RFC8008]. The FCI.Metadata object lets a dCDN share its capabilities and the Metadata interface (MI) objects it supports β¨ To say it supports delegated credentials, the dCDN should announce support for MI.DelegatedCredentials, like in the example below π§
{
"capabilities": [
{
"capability-type": "FCI.Metadata",
"capability-value": {
"metadata": [
"MI.DelegatedCredentials",
"... other supported MI objects ..."
]
},
"footprints": [
"Footprint objects"
]
}
]
}
There's also an object that tells the uCDN how many delegated credentials the dCDN supports, so the uCDN can hand over the right amount π That object is FCI.DelegationCredentials π«Ά
3.1. FCI.DelegatedCredentials π
The FCI.DelegationCredentials object lets a dCDN advertise the maximum number of delegated credentials it supports. That number usually (but not always) matches the number of servers the dCDN has set aside for delegated credentials π₯οΈ
The property PrivateKeyEncryptionKey holds a public key from the dCDN. The uCDN MUST use it to encrypt private keys whenever those private keys get sent to the dCDN using MI.DelegatedCredentials (see Section 4) π (yes, MUST, it's not optional bestie π€)
Property: number-delegated-certs-supported
Description: Number of delegated credentials supported by the dCDN.
Type: integer
Mandatory-to-Specify: Yes
Property: PrivateKeyEncryptionKey
Description: Public key in JSON Web Key (JWK) format [RFC7517] of
the dCDN to be used by the uCDN to encrypt private keys.
Type: string
Mandatory-to-Specify: No
Here's an example of FCI.DelegatedCredentials π
{
"capabilities": [
{
"capability-type": "FCI.DelegatedCredentials",
"capability-value": {
"number-delegated-certs-supported": 10
}
"footprints": [
<Footprint objects>
]
}
]
}
3.2. Expected Usage of the Property Number of Supported Delegated Credentials π
The dCDN uses the FCI.DelegatedCredentials object to announce how many servers support delegated credentials πΈ
When the uCDN gets the FCI.DelegatedCredentials object, it can issue that many delegated credentials to the dCDN. When the uCDN configures the dCDN, it MAY decide to give the dCDN fewer than the maximum supported delegated credentials π¦ Also, different deployment setups for delegated credentials on the endpoints are possible inside a dCDN. The dCDN MAY use one single delegated credential and deploy it on multiple endpoints π§© Or the dCDN MAY deploy a different delegated credential for each endpoint (as long as the uCDN delivers enough different delegated credentials) β¨ That choice belongs to the dCDN, and it depends on how many delegated credentials the uCDN provided π
FCI.DelegationCredentials doesn't cover expiry or renewal of delegated credentials. Once the uCDN has provided delegated credentials via the MI, the uCDN SHOULD keep an eye on them and their expiry times, and SHOULD refresh the dCDN's credentials via the MI in a timely way π The uCDN may decide not to monitor the validity period or refresh the credentials, for example for short-term one-shot deployments, or once it has decided to deprovision a dCDN π But if the uCDN doesn't renew the delegated credential on time, the dCDN's servers that only have expired delegated credentials MUST refuse any new TLS connection that needs an up-to-date delegated credential π« That's a hard no π
4. CDNI Metadata Interface (MI) Metadata Object for Delegated Credentials π§
As described in [RFC9345], when a uCDN has delegated to a dCDN, the dCDN presents the "delegated_credential" (instead of its own certificate) during the TLS handshake [RFC8446] to the User Agent π€ That means the dCDN also has the private key that matches the public key in DelegatedCredential.cred [RFC9345] π This lets the User Agent verify the signature in a CertificateVerify message (Section 4.4.3 of [RFC8446]) that the dCDN sent and signed π
This section defines the MI.DelegatedCredentials object, which holds an array of delegated credentials and optionally the matching private keys π The CDNI MI [RFC8006] describes the CDNI metadata distribution mechanisms that let a dCDN fetch the MI.DelegatedCredentials object from the uCDN π
The properties of the MI.DelegatedCredentials object are these π
Property: delegated-credentials
Description: Array of delegated credentials
Type: Array of DelegatedCredentialObject objects
Mandatory-to-Specify: Yes
The DelegatedCredentialObject object is made of these properties π§©
Property: delegated-credential
Description: Base64-encoded (as defined in Section 4 of [RFC4648])
version of a CertificateEntry as defined in Section 4.4.2 of
[RFC8446]. The CertificateEntry MUST contain a
DelegatedCredential structure (as defined in [RFC9345]) using the
extension in the CertificateEntry of its end-entity certificate
(see Section 4.1.1 of [RFC9345]).
Type: string
Mandatory-to-Specify: Yes
Property: private-key
Description: Encrypted private key corresponding to the public key
contained in the DelegatedCredential. The envelope format for
this property is JSON Web Encryption (JWE) [RFC7516] using the
base64 compact serialization (Section 7.1 of [RFC7516]).
Type: string
Mandatory-to-Specify: No
The private-key property isn't mandatory. If it isn't specified, it's assumed that the dCDN generated the public-private key pair for the delegated credential itself and gave the public key info to the uCDN through an out-of-band mechanism π See Section 7 for the constraints on using the private key π‘οΈ
If the private-key property is used, the transported private key MUST be encrypted using the PrivateKeyEncryptionKey specified in FCI.DelegatedCredentials π The envelope format for this property MUST use JWE [RFC7516] with the base64 compact serialization (Section 7.1 of [RFC7516]), and the private key goes in as the JWE Ciphertext inside the JWE π«§ The JWE content-type field MAY be used to signal the media type of the encrypted key π
Here's an example of an MI.DelegatedCredentials object π
{
"generic-metadata-type": "MI.DelegatedCredentials",
"generic-metadata-value": {
"delegated-credentials": [
{"delegated-credential":
"cBBfm8KK6pPz/tdgKyedwA...
iXCCIAmzMM0R8FLI3Ba0UQ=="},
{"delegated-credential":
"4pyIGtjFdys1+9y/4sS/Fg...
J+h9lnRY/xgmi65RLGKoRw=="},
{"delegated-credential":
"6PWFO0g2AXvUaULXLObcVA...
HXoldT/qaYCCNEyCc8JM2A=="}
]
}
}
5. Delegated Credentials Call Flow β¨
okay so the call flow is where everything clicks π§ here's the step-by-step, and then there's a picture (Figure 1) that shows it all at once. The steps are as follows:
- It is assumed that the uCDN has been provisioned and configured with a certificate. Note that it is out of scope of CDNI and the present document how and from where (e.g., which Content Service Provider) the uCDN acquired its certificate. π
- The uCDN generates a set of delegated credentials (here it is assumed that public keys of the dCDN are known). Note that the uCDN may generate this material at different points in time, e.g., in advance to have a pool of delegated credentials or on demand when the dCDN announces its maximum number of supported delegated credentials. πΈ
- Using the CDNI FCI [RFC8008], the dCDN advertises MI.DelegatedCredentials capabilities to the uCDN. The dCDN further uses FCI.DelegatedCredentials to advertise the maximum number of supported delegated credentials. π£
- Using the CDNI MI [RFC8006], the dCDN acquires the MI.DelegatedCredentials, retrieving an array of delegated credentials. π¦
- The client establishes a TLS connection with an endpoint of the dCDN according to [RFC9345] using the delegated credentials retrieved in step 4. π
- When some delegated credentials are about to expire, the uCDN uses the CDNI MI [RFC8006] to provide new, valid delegated credentials. β°
Here's the picture, bestie π¦
User-Agent dCDN uCDN
| | |
| | [1. uCDN acquires its certificate
| | out of scope of CDNI]
| | |
| | [2. generation of
| | delegated credentials]
| | |
| 3. CDNI FCI used to
| advertise support of MI.DelegatedCredentials
| and announce number of delegated credentials
| supported using FCI.DelegatedCredentials
| |-------------------->+
| | |
| 4. CDNI MI used to
| provide the MI.DelegatedCredentials object
| |<--------------------+
| | |
.
.
.
[5. TLS handshake according |
to [RFC9345]] . |
|<------------------->| |
| | |
.
.
.
| 6. Some delegated credentials about to expire.
| CDNI MI used to
| provide new MI.DelegatedCredentials object
| |<--------------------+
| | |
Figure 1: Example Call Flow of Delegated Credentials in CDNI
6. IANA Considerations ποΈ
IANA has registered the following payload types in the "CDNI Payload Types" registry in the "Content Delivery Network Interconnection (CDNI) Parameters" registry group. Here's the table:
+==========================+===========+
| Payload Type | Reference |
+==========================+===========+
| MI.DelegatedCredentials | RFC 9677 |
+--------------------------+-----------+
| FCI.DelegatedCredentials | RFC 9677 |
+--------------------------+-----------+
Table 1
Sections 6.1 and 6.2 provide additional necessary information for the registration of those CDNI payload types (see Section 2.2 of [RFC7736]). β¨
6.1. CDNI MI.DelegatedCredentials Payload Type π
Purpose: The purpose of this payload type is to distinguish delegated credentials MI objects.
Interface: MI/FCI
Encoding: See Section 4.
6.2. CDNI FCI.DelegatedCredentials Payload Type π
Purpose: The purpose of this payload type is to advertise the number of delegated credentials needed (and any associated capability advertisement).
Interface: FCI
Encoding: See Section 3.1.
7. Security Considerations π
Okay, this section is serious, so let's go π«Ά The extensions defined here let you hand delegated credentials over to dCDNs. A delegated credential can only be used by a dCDN if it has the associated private key. Likewise, an attacker needs the private key to exploit a delegated credential and impersonate dCDN nodes. So leaking only the delegated credential, without the private key, is a limited security risk.
Delegated credentials and their associated private keys are short-lived (per default, the maximum validity period is set to 7 days in [RFC9345]), so a single leaked delegated credential with its private key is also a limited security risk. Still, it is NOT RECOMMENDED to send private keys through the MI. Leaving the private key out further limits the ways an attacker could exploit the delegated credential.
If this recommendation is not followed, i.e., the private key is communicated via the MI, the transported private key MUST be encrypted within a JWE envelope using the encryption key (PrivateKeyEncryptionKey) provided within the FCI.DelegatedCredentials by the dCDN. The JWE encryption key (PrivateKeyEncryptionKey) MUST have a strength equal to or larger than the private key it is encrypting for transport. Note that the specified encryption method does not offer forward secrecy. If the dCDN's encryption key becomes compromised in the future, then all encrypted JWEs will become compromised. Due to the short-lived nature of delegated credentials, the impact is limited. π¨
It is also important to ensure that an attacker is not able to systematically retrieve a consecutive or consistent set of delegated credentials and associated private keys. Such an attack would allow the attacker to systematically impersonate dCDN nodes. The MI objects defined in the present document are transferred via the interfaces defined in CDNI [RFC8006]. [RFC8006] describes how to secure these interfaces, protecting the integrity and confidentiality, as well as ensuring the authenticity of the dCDN and uCDN, which should prevent an attacker from systematically retrieving delegated credentials and associated private keys. π
8. Privacy Considerations π
The FCI and MI objects and the information defined in the present document do not contain any personally identifiable information (PII). As such, this document does not change or alter the confidentiality and privacy considerations outlined in Section 8.2 of [RFC8006] and Section 7 of [RFC8008]. π·
A single or systematic retrieval of delegated credentials and associated private keys would allow the attacker to decrypt any data sent by the end user intended for the end service, which may include PII. That's a lot, so keep this one in mind π
9. References π
9.1. Normative References
- [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, <https://www.rfc-editor.org/info/rfc2119>.
- [RFC4648] Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, DOI 10.17487/RFC4648, October 2006, <https://www.rfc-editor.org/info/rfc4648>.
- [RFC7516] Jones, M. and J. Hildebrand, "JSON Web Encryption (JWE)", RFC 7516, DOI 10.17487/RFC7516, May 2015, <https://www.rfc-editor.org/info/rfc7516>.
- [RFC7517] Jones, M., "JSON Web Key (JWK)", RFC 7517, DOI 10.17487/RFC7517, May 2015, <https://www.rfc-editor.org/info/rfc7517>.
- [RFC8006] Niven-Jenkins, B., Murray, R., Caulfield, M., and K. Ma, "Content Delivery Network Interconnection (CDNI) Metadata", RFC 8006, DOI 10.17487/RFC8006, December 2016, <https://www.rfc-editor.org/info/rfc8006>.
- [RFC8008] Seedorf, J., Peterson, J., Previdi, S., van Brandenburg, R., and K. Ma, "Content Delivery Network Interconnection (CDNI) Request Routing: Footprint and Capabilities Semantics", RFC 8008, DOI 10.17487/RFC8008, December 2016, <https://www.rfc-editor.org/info/rfc8008>.
- [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, <https://www.rfc-editor.org/info/rfc8174>.
- [RFC8446] Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 8446, DOI 10.17487/RFC8446, August 2018, <https://www.rfc-editor.org/info/rfc8446>.
- [RFC9345] Barnes, R., Iyengar, S., Sullivan, N., and E. Rescorla, "Delegated Credentials for TLS and DTLS", RFC 9345, DOI 10.17487/RFC9345, July 2023, <https://www.rfc-editor.org/info/rfc9345>.
9.2. Informative References
- [RFC7336] Peterson, L., Davie, B., and R. van Brandenburg, Ed., "Framework for Content Distribution Network Interconnection (CDNI)", RFC 7336, DOI 10.17487/RFC7336, August 2014, <https://www.rfc-editor.org/info/rfc7336>.
- [RFC7337] Leung, K., Ed. and Y. Lee, Ed., "Content Distribution Network Interconnection (CDNI) Requirements", RFC 7337, DOI 10.17487/RFC7337, August 2014, <https://www.rfc-editor.org/info/rfc7337>.
- [RFC7736] Ma, K., "Content Delivery Network Interconnection (CDNI) Media Type Registration", RFC 7736, DOI 10.17487/RFC7736, December 2015, <https://www.rfc-editor.org/info/rfc7736>.
Authors' Addresses π¦
FrΓ©dΓ©ric Fieau
Orange
40-48, avenue de la RΓ©publique
92320 ChΓ’tillon
France
Email: frederic.fieau@orange.com
Emile Stephan
Orange
2, avenue Pierre Marzin
22300 Lannion
France
Email: emile.stephan@orange.com
Guillaume Bichot
Broadpeak
3771 Boulevard des AlliΓ©s
35510 Cesson-SΓ©vignΓ©
France
Email: guillaume.bichot@broadpeak.tv
Christoph Neumann
Broadpeak
3771 Boulevard des AlliΓ©s
35510 Cesson-SΓ©vignΓ©
France
Email: christoph.neumann@broadpeak.tv
π¦ where this page comes from
- ietf: rfc9677 2024-10
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms