Internet-Draft | CDNI Client Access Control Metadata | January 2025 |
Chaudhari, et al. | Expires 7 July 2025 | [Page] |
This specification adds to the basic client access control metadata in RFC8006, providing content providers and upstream content delivery networks (uCDNs) extended capabilities in defining location and time window restrictions. Support is also provided to define required Transport Layer Security (TLS) certificates and encryption levels. The specification also defines configuration metadata for the Common Access Token (CAT), developed jointly by the Streaming Video Technology Alliance (SVTA) and Consumer Technology Association Web Application Video Ecosystem (CTA-WAVE).¶
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 7 July 2025.¶
Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
The [RFC8006] LocationACL and TimeWindowACL objects provide basic capabilities to gate a client's access to content. This specification details alternatives to these objects (using LocationACLExtended and TimeWindowACLExtended), that allow for the configuration of a Hypertext Transfer Protocol (HTTP) response in cases where requests are denied. Additional objects allow for the specification of metadata for required TLS certificates, encryption levels, and authentication tokens leveraging the CTA-WAVE Common Access Token standard [CTA-5007] The specification also introduces standardized names for HTTP2 and HTTP3 protocols.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].¶
MI.LocationACLExtended is an alternative to the Content Delivery Network Interconnection (CDNI) standard MI.LocationACL object that defines the locations (footprints) a User Agent needs to be in, in order to be able to receive the associated content. MI.LocationACLExtended uses ACL rules of type MI.LocationRuleExtended, providing rules for handling denied requests.¶
This object conforms to the specification defined for the behavior of MI.LocationACL and the two are mutually exclusive. Note that MI.LocationACLExtended instances that deny access are handled as terminating objects (as defined in [I-D.goldstein-processing-stages-metadata]) in that processing is terminated upon execution.¶
Property: rules¶
Description: List of allow/deny rules per user location.¶
Type: array of MI.LocationRuleExtended objects.¶
Mandatory-to-Specify: Yes¶
The following is an example of MI.LocationACLExtended with "allow/deny" rules:¶
MI.LocationRuleExtended is a subobject of MI.LocationACLExtended that defines pairs of user locations and allow/deny actions.¶
Property: locations¶
Description: An array of client footprints to match against. These footprints, defined by pairs of MI_footprinttype_ex and MI_footprintvalue_ex respectively, extend the CDNI MI_footprinttype and MI_footprintvalue On top of the four footprint types defined by the CDNI in [RFC8006] (ipv4cidr,ipv6cidr,asn,countrycode), three new types are added:(ipv4range, ipv6range, subdivisioncode)¶
Type: Array of MI.Footprint objects¶
Mandatory-to-Specify: Yes¶
Property: action¶
Description: The action to take place upon a location match.¶
Type: String, one of (allow | deny)¶
Mandatory-to-Specify: No. The default is "deny".¶
Property: comment¶
Description: An optional text comment for user readability and for incorporating in logging.¶
Type: String¶
Mandatory-to-Specify: No¶
Property: deny-response¶
Description: The configuration of the entire response to the client in case of a "Deny" action.¶
Type: MI.SyntheticResponse¶
Mandatory-to-Specify: No. The default is { "response-status" : 403 }.¶
Property: match-all-locations¶
MI.TimeWindowACLExtended is an alternative to the CDNI standard MI.TimeWindow object for implementing time-based access restrictions. It uses ACL rules of type MI.TimeWindowRuleExtended to provide rules for handling denied requests.¶
This object conforms to the specification defined for the behavior of MI.TimeWindowACL and the two are mutually exclusive. Note that MI.TimeWindowACLExtended instances that deny access are handled as terminating objects [I-D.goldstein-processing-stages-metadata] in that processing is terminated upon execution.¶
Property: rules¶
Description: List of time window allow deny rules.¶
Type: An array of MI.TimeWindowRuleExtended objects.¶
Mandatory-to-Specify: Yes¶
The following is an example of MI.TimeWindowACLExtended with "allow" rules:¶
Property: windows¶
Description: Array of time windows to which the rule applies.¶
Type: Array of MI.TimeWindow objects, as defined in RFC8006], using time values expressed in seconds since the UNIX epoch (i.e., zero hours, zero minutes, zero seconds, on January 1, 1970) Coordinated Universal Time (UTC).¶
Mandatory-to-Specify: Yes¶
Property: action¶
Description: The action to take place upon a time window match.¶
Type: String, one of (allow | deny)¶
Mandatory-to-Specify: No. The default is "deny".¶
Property: comment¶
Description: An OPTIONAL text comment for user readability and for incorporating in logging.¶
Type: String¶
Mandatory-to-Specify: No¶
Property: deny-response¶
To allow for secure delivery of content, a downstream CDN (dCDN) MUST be configured to support Hypertext Transfer Protocol Secure (HTTPs). The MI.CertificateMetadata object is used to configure the dCDN's HTTPs attributes, such as TLS certificate credentials, encryption levels, protocols, and ciphers.¶
Property: encryption-level¶
Description: A reference to an MI.EncryptionLevelMetadata object that specifies the TLS protocols and ciphers to use.¶
Type: MI.EncryptionLevelMetadata¶
Mandatory-to-Specify: Yes¶
Property: delegated-credentials¶
Description: A reference to the certificate's delegated credentials to use when establishing a TLS session with the client.¶
Type: MI.CertificateCredentialsMetadata¶
Mandatory-to-Specify: Yes¶
Property: ocsp-enabled¶
Description: When ocsp-enabled is set to "True", the dCDN will check the revocation status of the configured certificate and include that information with the response to the client. See [RFC6066], section 8¶
Type: Boolean¶
Mandatory-to-Specify: No. The default is "False".¶
Property: prefer-server-ciphers¶
Description: When prefer-server-ciphers is set to "False" (the default), the dCDN will prefer to use cipher suites in the order presented by the client when negotiating the TLS handshake. When prefer-server-ciphers is set to "True", cipher suites will be selected in the order preferred by the dCDN server.¶
Type: Boolean¶
Mandatory-to-Specify: No. The default is "False".¶
The following is an example of MI.CertificateMetadata:¶
MI.EncryptionLevelMetadata is a subobject of MI.CertificateMetadata to support HTTPS content delivery. MI.EncryptionLevelMetadata specifies the protocols and ciphers to be used by the associated MI.CertificateMetadata object. Externalizing MI.EncryptionLevelMetadata from MI.CertificateMetadata allows security policy (TLS protocols and ciphers) to be defined once and referenced by many configurations.¶
Property: encryption-level-name¶
Description: A descriptive name for the MI.EncryptionLevelMetadata object. This name is expected to be used by operators to reference the MI.EncryptionLevelMetadata configuration.¶
Type: String¶
Mandatory-to-Specify: Yes¶
Property: protocols¶
Description: An array that lists the allowed protocols for the TLS session.¶
Type: Array of enumerated values. Must be one of: "TLSv1.0", "TLSv1.1", "TLSv1.2" , "TLSv1.3", "SSLv3".¶
Mandatory-to-Specify: Yes¶
Property: ciphers¶
Description: An array that lists the allowed ciphers for the TLS session, using cipher suite names defined in [RFC5289] For example, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 or TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384.¶
Type: Array of strings¶
Mandatory-to-Specify: Yes¶
The following is an example of MI.EncryptionLevelMetadata:¶
MI.CertificateCredentialsMetadata is a subobject of MI.CertificateMetadata and defines the credentials to use when establishing a TLS session between a dCDN and a client.¶
Note: This document does not define any DelegatedCredentials methods. Individual DelegatedCredentials methods are defined separately, e.g., MI.DelegatedCredentials and Acme-Delegations (see CDNI Metadata for Delegated Credentials [ietf-cdni-https-delegation-subcerts] and CDNI extensions for HTTPS delegation [ietf-cdni-interfaces-https-delegation]).¶
Property: delegated-credentials-type¶
Description: The DelegatedCredentials type (the CDNI Payload Type [RFC7736] of the GenericMetadata object contained in the delegated-credentials-value property).¶
Type: String¶
Mandatory-to-Specify: Yes¶
Property: delegated-credentials-value¶
Description: An object conforming to the specification associated with the DelegatedCredentials type.¶
Type: GenericMetadata object¶
Mandatory-to-Specify: Yes¶
The following is an example of MI.CertificateCredentialsMetadata:¶
The MI.ClientAuthMetadata object defines how a dCDN authenticates client requests.¶
Property: delivery-auth¶
Description: Authentication method to use when granting access to a resource requested by a client.¶
Type: MI.Auth object, as defined in [RFC8006] section 4.2.7¶
Mandatory-to-Specify: Yes¶
Following is a simple example:¶
The MI.CATAuth object defines the configuration for a dCDN to authenticate client requests using the Common Access Token standard. The MI.CATAuth metadata object is used in the auth-value property of the MI.Auth object, as defined in [RFC8006] section 4.2.7, and MAY be applied to to client requests by including it under the MI.ClientAuthMetadata.delivery-auth property.¶
Property: version¶
Description: Specifies the version of the CAT token. dCDN must reject a token for an unsupported version number. A rejected token results in the client response being defined by the ‘verification-action' property.¶
Type: Unsigned Integer. A value greater than 0¶
Mandatory-to-Specify: No. The default value is 1¶
Property: token-object-name¶
Description: Specifies the name of the token object that captures the results of the token verification. The verification result is available for inspection in all processing stages [I-D.goldstein-processing-stages-metadata]¶
Type: MI.CATTokenObject¶
Mandatory-to-Specify: No¶
Property: tokens¶
Description: Specifies the location in the client request where one or more tokens are present and read for evaluation. When multiple tokens are present, the tokens are read and processed per section 4.4 of [CTA-5007]¶
Type: Array of MI.CATTokenLocator objects¶
Mandatory-to-Specify: Yes¶
Property: configuration¶
Description: Specifies the configuration parameters needed to verify a token.¶
Type: MI.CATTokenConfiguration object¶
Mandatory-to-Specify: Yes¶
Property: verification-action¶
Description: Specifies how an invalid token OR a valid but rejected token defines the response returned to the client.¶
Type: MI.CATTokenVerificationAction object¶
Mandatory-to-Specify: Yes¶
The MI.CATTokenLocator object defines the location to read one or more tokens from the client request.¶
Property: location¶
Description: Specifies the location name to find one or more tokens in the client request. Valid location names are:¶
Type: String¶
Mandatory-to-Specify: Yes¶
Property: scheme¶
Description: The scheme for the Authorization request header that contains the CAT token¶
Type: String¶
Mandatory-to-Specify: Yes, only if the location property is ‘Authorization-Header'. Otherwise, his property is ignored.¶
Property: names¶
Description: The names of the url-path-style parameter, query parameter or HTTP cookies that contain one or more CAT tokens.¶
Type: String¶
Mandatory-to-Specify: Yes, only if the location property is either ‘url-path-style-parameter', ‘query-parameter', or ‘cookie'. Otherwise, his property is ignored.¶
The MI.TokenConfiguration object defines the configuration parameters for verifying a CAT token.¶
Property: integrity-algo¶
Description: The algorithm used for integrity protection of the CAT token. The minimum set of values to support are "hs256" (see [RFC9053], section 3.1)and "es256" (see [RFC9053], section 2.1)¶
Type: String¶
Mandatory-to-Specify: Yes¶
Property: integrity-algo-key¶
Description: The value of the key used for integrity protection of the CAT token.¶
Type: MI.SecretValue object that can either contain the hex version of the key in the clear (not recommended) or as a reference in an external key store. See the Protected Secrets Metadata standard [I-D.ietf-cdni-protected-secrets-metadata] for more details.¶
Mandatory-to-Specify: Yes.¶
Property: encryption-algo¶
Description: The algorithm used in the ‘enc' claim. The minimum value to support is "ecdh-ss+a128kw" (see [RFC9053], section 6.4.1).¶
Type: MI.SecretValue object that can either contain the hex version of the symmetric key in the clear (not recommended) or as a reference in an external key store. See the Protected Secrets Metadata standard [I-D.ietf-cdni-protected-secrets-metadata] for more details.¶
Mandatory-to-Specify: Yes¶
Property: encryption-algo-key¶
Description: The value of the key used for encryption in the ‘enc' claim.¶
Type: MI.SecretValue object that can either contain the hex version of the key in the clear (not recommended) or as a reference in an external key store. See the Protected Secrets Metadata standard [I-D.ietf-cdni-protected-secrets-metadata] for more details.¶
Mandatory-to-Specify: Yes¶
The MI.CATTokenVerificationAction object defines how a client response is created for an invalid OR valid but rejected token.¶
Property: rejected-token-action¶
Description: An enumeration of ways in which a client response is created. Valid values are:¶
"fail" for returning a HTTP 403 response.¶
"allow" for ignoring the result of token validation, as if the token was not present. This typically would result in serving a HTTP 200 for the requested resource.¶
"token-defined" for constructing the client response per the parameters defined within the token. For a valid but rejected CAT token, the ‘catif' claim is used to construct the client response.¶
Type: String¶
Mandatory-to-Specify: Yes¶
Property: token-defined-response¶
Description: Specifies how the token values are used to create the client response for an invalid OR valid but rejected token. This property gets used when the value of ‘rejected-token-action' property is ‘token-defined'. Use of this property for any other value of ‘rejected-token-action' is an invalid configuration.¶
Type: MI.CATTokenDefinedResponse object¶
Mandatory-to-Specify: Yes, if ‘rejected-token-action' property is ‘token-defined'¶
The MI.CATTokenDefinedResponse object defines how a client response is constructed using the token's available ‘catif' claim or some fallback.¶
Property: fallback-response¶
Description: An enumeration defining a fallback response when the token defined values are inapplicable. Valid values are:¶
For CAT, this fallback-response will get used under the following conditions:¶
Property: catif¶
Description: Specifies the configuration for processing the ‘catif' claim to construct the client response for a valid but rejected CAT token.¶
Type: MI.CATIF object¶
Mandatory-to-Specify: Yes, when the rejected-token-action property for the MI.CATTokenVerificationAction object is set to ‘token-defined'¶
The MI.CATIF object specifies the processing of the ‘catif' claim to construct the client response for a valid but rejected CAT token. See Section 4.9.1 of [CTA-5007]¶
Property: response-header-names-force-add¶
Description: For specific named headers of a rejected claim within the ‘catif' claim, these will be added to the client response, even if headers with same names were already going to be added to the response via other means.¶
Type: Array of Strings¶
Mandatory-to-Specify: No. If not specified, header names of a rejected claim within ‘catif' claim will be skipped in the client response if similarly named headers were to be added via other means.¶
The MI.CATTokenObject object defines a read-only object that captures the results of the token verification. The verification result is available for inspection in all processing stages [I-D.goldstein-processing-stages-metadata]¶
Property: status¶
Description: Captures the verification status of the CAT token via the following string values:¶
Type: String¶
Property: token¶
Property: status_details¶
Description: Specifies details about the token verification result when the token verification ‘status' is ‘failure', else it is an empty string. This string contains one of the following values:¶
Type: String¶
The following example shows use of the CAT scheme as the authentication mechanism for client requests at the dCDN. Some notable points are:¶
The FCI and MI objects defined in the this document are transferred via the interfaces defined in CDNI [RFC8006] which describes how to secure these interfaces by protecting integrity and confidentiality while ensuring the authenticity of the dCDN and uCDN.¶
This document requests the registration of the following entries under the "CDNI Payload Types" registry hosted by IANA:¶
Payload Type | Specification |
---|---|
MI.LocationACLExtended | RFCthis |
MI.LocationRuleExtended | RFCthis |
MI.TimeWindowACLExtended | RFCthis |
MI.TimeWindowRuleExtended | RFCthis |
MI.CertificateMetadata | RFCthis |
MI.EncryptionLevelMetadata | RFCthis |
MI.CertificateCredentialsMetadata | RFCthis |
MI.ClientAuthMetadata | RFCthis |
MI.CATAuth | RFCthis |
MI.CATTokenLocator | RFCthis |
MI.CATTokenConfiguration | RFCthis |
MI.CATTokenVerificationAction | RFCthis |
MI.CATTokenDefinedResponse | RFCthis |
MI.CATIF | RFCthis |
MI.CATTokenObject | RFCthis |
The Internet Assigned Numbers Authority (IANA) "CDNI Metadata Protocol Types" registry in the "Content Delivery Network Interconnection Parameters" registry group defines the valid Protocol object values used by the ProtocolACL object defined in [RFC8006]¶
The following table defines the new protocol values needed for the ProtocolACL object defined in [RFC8006] such that CDN delivery restrictions can be configured for these protocols.¶
Protocol Type | Description | Type Specification | Protocol Specification |
---|---|---|---|
http/2 | Hypertext Transfer Protocol Version 2 (unencrypted) | RFCthis | [RFC9113] |
https/2 | Hypertext Transfer Protocol Version 2 (encrypted) | RFCthis | [RFC9113] |
h2 | Hypertext Transfer Protocol Version 2, alternate name | RFCthis | [RFC9113] |
https/3 | Hypertext Transfer Protocol Version 3 | RFCthis | [RFC9114] |
h3 | Hypertext Transfer Protocol Version 3, alternate name | RFCthis | [RFC9114] |
The authors would like to express their gratitude to the members of the Streaming Video Technology Alliance [SVTA] Open Caching Working Group for their contributions and guidance.¶
Particulary the following people contribute in one or other way to the content of this draft:¶