<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<!-- This template is for creating an Internet Draft using xml2rfc,
  which is available here: http://xml.resource.org. -->
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<!-- used by XSLT processors -->
<!-- For a complete list and description of processing instructions (PIs),
  please see http://xml.resource.org/authoring/README.html. -->
<!-- Below are generally applicable Processing Instructions (PIs) that most I-Ds might want to use.
  (Here they are set differently than their defaults in xml2rfc v1.32) -->
<?rfc strict="no" ?>
<!-- give errors regarding ID-nits and DTD validation -->
<!-- control the table of contents (ToC) -->
<?rfc toc="yes"?>
<!-- Display comments -->
<?rfc comments="no"?>
<!-- generate a ToC -->
<?rfc tocdepth="4"?>
<?rfc inline="yes"?>
<!-- the number of levels of subsections in ToC. default: 3 -->
<!-- control references -->
<?rfc symrefs="yes"?>
<!-- use symbolic references tags, i.e, [RFC2119] instead of [1] -->
<?rfc sortrefs="yes" ?>
<!-- sort the reference entries alphabetically -->
<!-- control vertical white space
  (using these PIs as follows is recommended by the RFC Editor) -->
<?rfc compact="yes" ?>
<!-- do not start each main section on a new page -->
<?rfc subcompact="no" ?>
<!-- keep one hblank line between list items -->
<!-- end of list of popular I-D processing instructions -->
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" category="std" docName="draft-ietf-cdni-interfaces-https-delegation-06" consensus="true" obsoletes="" updates="" submissionType="IETF" xml:lang="en" tocInclude="true" tocDepth="4" symRefs="true" sortRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 3.9.0 -->
  <!-- category values: std, bCSP, info, exp, and historic
  ipr values: full3667, noModification3667, noDerivatives3667
  you can add the attributes updates="NNNN" and obsoletes="NNNN"
  they will automatically be output with "(if approved)" -->

	<!-- ***** FRONT MATTER ***** -->
	<front>
    <!-- The abbreviated title is used in the page header - it is only necessary if the
  full title is longer than 39 characters -->

		<title abbrev="CDNI extensions for HTTPS delegation">CDNI extensions for HTTPS delegation</title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-cdni-interfaces-https-delegation-06"/>
    <!-- add 'role="editor"' below for the editors if appropriate -->

		<!-- Another author who claims to be an editor -->

		<author fullname="Frederic Fieau" initials="F.F" surname="Fieau" role="editor">
      <organization>Orange</organization>
      <address>
        <postal>
          <street>40-48, avenue de la Republique</street>
          <!-- Reorder these if your country does things differently -->

					<city>Chatillon</city>
          <region/>
          <code>92320</code>
          <country>France</country>
        </postal>
        <email>frederic.fieau@orange.com</email>
        <!-- uri and facsimile elements may also be added -->
			</address>
    </author>
    <author fullname="Emile Stephan" initials="E.S" surname="Stephan">
      <organization>Orange</organization>
      <address>
        <postal>
          <street>2, avenue Pierre Marzin</street>
          <!-- Reorder these if your country does things differently -->

					<city>Lannion</city>
          <region/>
          <code>22300</code>
          <country>France</country>
        </postal>
        <email>emile.stephan@orange.com</email>
        <!-- uri and facsimile elements may also be added -->
			</address>
    </author>
    <author fullname="Sanjay Mishra" initials="S.M" surname="Mishra">
      <organization>Verizon</organization>
      <address>
        <postal>
          <street>13100 Columbia Pike</street>
          <!-- Reorder these if your country does things differently -->

					<city>Silver Spring</city>
          <region/>
          <code>MD 20904</code>
          <country>USA</country>
        </postal>
        <email>sanjay.mishra@verizon.com</email>
        <!-- uri and facsimile elements may also be added -->
			</address>
    </author>
    <date day="10" month="september" year="2021"/>
    <!-- If the month and year are both specified and are the current ones, xml2rfc will fill
  in the current day for you. If only the current year is specified, xml2rfc will fill
  in the current day and month for you. If the year is not the current one, it is
  necessary to specify at least a month (xml2rfc assumes day="1" if not specified for the
      purpose of calculating the expiry date).  With drafts it is normally sufficient to
  specify just the year. -->

		<!-- Meta-data Declarations -->

		<area>ART</area>
    <workgroup>CDNI Working Group</workgroup>
    <!-- WG name at the upperleft corner of the doc,
  IETF is fine for individual submissions.
  If this element is not present, the default is "Network Working Group",
  which is used by the RFC Editor as a nod to the history of the IETF. -->

		<keyword>CDNI, CDN, CSP, UA, Interconnection, HTTPS, API, TLS, delegation, LURK, private, key, certificate, STAR, OOB, SLC, SubCert, credential, credentials, delegated, metadata, interface, control, triggers</keyword>
    <!-- Keywords will be incorporated into HTML output
  files in a meta tag but they have no effect on text or nroff
  output. If you submit your draft to the RFC Editor, the
  keywords will be used for the search engine. -->

		<abstract>
      <t>
			The delivery of content over HTTPS involving multiple CDNs raises credential management issues. This document proposes extensions in  CDNI Control and Metadata interfaces to setup HTTPS delegation from an Upstream CDN (uCDN) to a Downstream CDN (dCDN). 
      </t>
    </abstract>
  </front>
  <middle>
    <section numbered="true" toc="default">
      <name>Introduction</name>
      <t>
		Content delivery over HTTPS using one or more CDNs along the path requires credential management.  This specifically applies when an entity delegates delivery of encrypted content to another trusted entity.  
      </t>
      <t>
		Several delegation methods are currently proposed within different IETF working groups. They specify different methods for provisioning HTTPS delivery credentials. 
      </t>
      <t>
		This document extends the CDNI Metadata interface to setup HTTPS delegation between an upstream CDN (uCDN) and downstream CDN (dCDN) using the Standardized delegation methods. Furthermore, it includes a proposal of IANA registry to enable adding    of new methods.
      </t>
      <t>
		Section 2 is about terminology used in this document. Section 3 presents delegation methods specified at the IETF. Section 4 addresses the extension for handling HTTPS delegation in CDNI. Section 5 describes simple data types. Section 6 addresses IANA registry for delegation methods. Section 7 covers the security issues. Section 8 is about comments and questions.
      </t>
    </section>
    <section numbered="true" toc="default">
      <name>Terminology</name>
      <t>
			This document uses terminology from CDNI framework documents such as: CDNI framework document <xref target="RFC7336" format="default"/>, CDNI requirements <xref target="RFC7337" format="default"/> and CDNI interface specifications documents: CDNI Metadata interface <xref target="RFC8006" format="default"/> and CDNI Control interface / Triggers <xref target="RFC8007" format="default"/>.
      </t>
    </section>
    <section numbered="true" toc="default">
      <name>Known delegation methods</name>
      <t>
			There are currently Internet drafts within the TLS and ACME working groups adopted to handle delegation of HTTPS delivery between entities. 
      </t>
      <t>
			This Internet Draft (I-D) proposes standardizing HTTPS delegation between the CDN entities using CDNI interfaces.
      </t>
      <t>This document only considers the Short-term, Automatically-Renewed (STAR) certificates in Automated Certificate Management Environment(ACME) <xref target="RFC8739" format="default"/> </t>
      <!--<t>- Delegated credentials <xref target="I-D.ietf-tls-subcerts"/> in the TLS Working Group.</t>-->
			<t>This document allows the extension to other delegation methods. Those methods can easily be extended to any further methods in the future.</t>
    </section>
    <section numbered="true" toc="default">
      <name>Extension to CDNI FCI</name>
      <t>In order for CDNs to negotiate on which methods are supported, the Footprint and Capabilities interface as defined in RFC8008, allows a uCDN to send a FCI capability type objects, named FCI.SupportedDelegationMethods, to dCDN.
      </t>
      <t>
	   The following example shows an exemple of the supported delegated methods capability object serialization for a CDN that supports STAR delegation method. 
      </t>
      <artwork type="drawing" name="" align="left" alt=""><![CDATA[

     {
     "capabilities": [
       {
         "capability-type": "FCI.SupportedDelegationMethods",
         "capability-value": {
           "delegation-methods": [
                    "AcmeStarDelegationDelegationMethod",
                    "... Other delegation methods ..."
           ]
         }
         "footprints": [
           <Footprint objects>
         ]
       }
     ]
   }

]]></artwork>
    </section>
    <section numbered="true" toc="default">
      <name>Extending the CDNI metadata model</name>
      <t>
		This section defines a CDNI extension to the current Metadata interface model that allows bootstrapping delegation methods between a uCDN and a delegate dCDN.
      </t>
      <section numbered="true" toc="default">
        <name>Extension to HostMetadata object</name>
        <t>
		This extension reuses HostMetadata object, as defined in <xref target="RFC8006" format="default"/>, and adds new "Delegation methods" objects as specified in the following sections.
        </t>
        <t>
		The existence of the delegation methods in a HostMetaData Object shall enable the use of one of this methods, chosen by the delegating entity. The delegation method will be activated for the set of Host defined in the   HostMatch.   See <xref target="methods" format="default"/> for more details about delegation methods metadata specification.
        </t>
        <t>Example:</t>
        <t>
		The HostMatch object can reference a host metadata that points at the delegation information. Delegation metadata are added to HostMetadata object.
        </t>
        <t>
		Below shows both HostMatch and HostMetadata objects related to a host,  for example, here is a HostMatch object referencing "video.example.com":
        </t>
        <artwork type="drawing" name="" align="left" alt=""><![CDATA[

HostMatch:
   {
     "host": "video.example.com",
     "host-metadata": {
       "type": "MI.HostMetadata",
       "href": "https://metadata.ucdn.example/host1234"
     }
   }

Following the example above, the HostMetadata can be modeled 
for ACMEStarDelegationMethod as: 

	{
    "hostmetadata": [	    
	    {
        "generic-metadata-type": "MI.AcmeStarDelegationMethod",
        "generic-metadata-value": {	
           "star-proxy": "10.2.2.2",
           "acme-server" : "10.2.3.3",
           "credentials-location-uri": “www.ucdn.com/credentials",
           "periodicity": 36000,
           "CSR-template": Json/Text of the CSR template (see 4.2)
	    }}]
	}
]]></artwork>
        <t>
		This extension allows to explicitly indicate support for a given method. Therefore, the presence (or lack thereof) of an AcmeStarDelegationMethod, and/or further delegation methods, implies support (or lack thereof) for the given method.
        </t>
      </section>
      <section numbered="true" toc="default">
        <name>Extension to PathMetadata object</name>
        <t>
		This extension reuses PathMetadata object, as defined in <xref target="RFC8006" format="default"/>, and adds new "Delegation methods" objects as specified in the following sections.
        </t>
        <t>This allows to explicitly indicate support for a given method. Therefore, the presence (or lack thereof) of an AcmeStarDelegationMethod, and/or further delegation methods, implies support (or lack thereof) for the given method.
        </t>
        <t>Example:</t>
        <t>
		The PathMatch object can reference a path-metadata that points at the delegation information. Delegation metadata are added to PathMetaData object.
        </t>
        <t>
		Below shows both PathMatch and PathMetaData objects related to a path,  for example, here /movies/* located at https://metadata.ucdn.example/video.example.com/movies
        </t>
        <artwork type="drawing" name="" align="left" alt=""><![CDATA[
PathMatch:
{
  "path-pattern": {
   "pattern": "/movies/*",
   "case-sensitive": true
  },
  "path-metadata": {
   "type": "MI.PathMetadata",
   "href": "https://metadata.ucdn.example/video.example.com/movies"
  }
}

Following the example above, the PathMetadata can be modeled 
for ACMEStarDelegationMethod as: 

{
 PathMetadata:
 {
  "metadata": [	    
    {
	"generic-metadata-type": "MI.AcmeStarDelegationMethod",
	"generic-metadata-value": {	
	"star-proxy": "10.2.2.2",
	"acme-server" : "10.2.3.3",
	"credentials-location-uri": “www.ucdn.com/credentials",
	"periodicity": 36000,
	"CSR-template": Json/Text of the CSR template (see section 4.2)
	}}]
 }
}

]]></artwork>
        <t>
		The existence of the "MI.AcmeStarDelegationMethod" object in a PathMetaData Object shall enable the use of one of the AcmeStarDelegation Methods, chosen by the delegating entity. The delegation method will be activated for the set of Path defined in the    PathMatch.   See <xref target="methods" format="default"/> for more details about delegation methods metadata specification.
        </t>
      </section>
    </section>
    <section anchor="methods" numbered="true" toc="default">
      <name>AcmeStarDelegationMethod object</name>
      <t>This section defines the AcmeStarDelegationMethod object which describes metadata related to the use of ACME/STAR API  presented in <xref target="RFC8739" format="default"/>
      </t>
      <t>
		As expressed in <xref target="RFC8739" format="default"/>, when an origin has set a delegation to a specific domain (i.e. dCDN), the dCDN should present to the end-user client, a short-term certificate bound to the master certificate.
      </t>
      <artwork type="drawing" name="" align="left" alt="">
<![CDATA[
dCDN                  uCDN             Content Provider           CA 
 |              ACME/STAR proxy        ACME/STAR client    ACME/STAR srv
 |                     |                     |                     |
 | 1. GET Metadata incl. Delegation Method object with CSR template|
 +-------------------->|                     |                     |
 | 200 OK + Metadata incl. CSR template [CDNI]                     |
 |<--------------------+                     |                     |
 | 2. Request delegation: video.dcdn.example + dCDN public key     |
 +-------------------->|                     |                     |
 |                     | 3. Request STAR Cert + dCDN public key    |
 |                     +-------------------->| 4. Request STAR cert|
 |                     |                     |    + Pubkey         |
 |                     |                     |-------------------->|
 |                     |                     | 5. STAR certificate |
 |                     | 6. STAR certificate |<--------------------|
 | 7. STAR certificate |<--------------------+                     |
 +<--------------------|                     |                     |
 |                     |                     |                     |
 | 8. Retrieve STAR certificate (credential-location-uri)          |
 +---------------------------------------------------------------->|                   
 |                     |                     |         9. renew +--|       
 |                     |                     |            cert  |  |         
 | 10. Star certificate                      |                  +->|      
 |<----------------------------------------------------------------+
 |  ...                |                     |                     |

Figure 1: Example call-flow of STAR delegation in CDNI showing 2 levels 
of delegation
]]></artwork>
      <t>Property: star-proxy</t>
      <ul empty="true" spacing="normal">
        <li>Description: Used to advertise the STAR Proxy to the dCDN. Endpoint type defined in RFC8006, Section 4.3.3.</li>
        <li>Type: Endpoint</li>
        <li>Mandatory-to-Specify: Yes</li>
      </ul>
      <t>Property: acme-server</t>
      <ul empty="true" spacing="normal">
        <li>Description: used to advertise the ACME server to the dCDN. Endpoint type is defined in RFC8006, Section 4.3.3.</li>
        <li>Type: Endpoint</li>
        <li>Mandatory-to-Specify: Yes</li>
      </ul>
      <t>Property: credentials-location-uri</t>
      <ul empty="true" spacing="normal">
        <li>Description: expresses the location of the credentials to be fetched by the dCDN. Link type is as defined in RFC8006, Section 4.3.1.</li>
        <li>Type: Link</li>
        <li>Mandatory-to-Specify: Yes</li>
      </ul>
      <t>Property: periodicity</t>
      <ul empty="true" spacing="normal">
        <li>Description: expresses the credentials renewal periodicity. See <xref target="period" format="default"/>.</li>
        <li>Type: Periodicity</li>
        <li>Mandatory-to-Specify: Yes</li>
      </ul>
      <t>Property: CSR-template</t>
      <ul empty="true" spacing="normal">
        <li>Description: The CSR template must be included in the metadata when dealing with AcmeStarDelegation Methods. It shall follow the description in <xref target="RFC8739" format="default"/> section 3. It should be included in JSON/text format.</li>
        <li>Type: JSON</li>
        <li>Mandatory-to-Specify: Yes</li>
      </ul>
    </section>
    <section numbered="true" toc="default">
      <name>Metadata Simple Data Type Descriptions</name>
      <t>This section describes the simple data types that are used for properties for objects in this document.</t>
      <section anchor="period" numbered="true" toc="default">
        <name>Periodicity</name>
        <t>A time value expressed in seconds to indicate a periodicity.</t>
        <t>Type: Integer</t>
      </section>
    </section>
    <section numbered="true" toc="default">
      <name>IANA considerations</name>
      <t>This document requests the registration of the following entries under the "CDNI Payload Types" registry hosted by IANA regarding "CDNI delegation":
      </t>
      <artwork type="drawing" name="" align="left" alt=""><![CDATA[
	
+-------------------------------+---------------+
| Payload Type                  | Specification |
+-------------------------------+---------------+
| MI.AcmeStarDelegationMethod   | RFCthis       |
+-------------------------------+---------------+

[RFC Editor: Please replace RFCthis with the published RFC number for
   this document.]


		]]></artwork>
      <section numbered="true" toc="default">
        <name>CDNI MI AcmeStarDelegationMethod Payload Type</name>
        <t>
		Purpose: The purpose of this Payload Type is to distinguish AcmeStarDelegationMethod MI objects (and any associated capability advertisement)
        </t>
        <t>
			Interface: MI/FCI
        </t>
        <t>
			Encoding: see Section 4.2.1
        </t>
      </section>
    </section>
    <section numbered="true" toc="default">
      <name>Security considerations</name>
      <t>Extensions proposed here do not alter nor change Security Considerations as outlined in the CDNI Metadata and Footprint and Capabilities RFCs <xref target="RFC8006" format="default"/>.</t>
    </section>
    <section numbered="true" toc="default">
      <name>Comments and questions</name>
      <t>
		Should dCDN be visible from the Content Provider or not? This would lead to different solutions to handle delegation towards the CP. In most cases, the dCDNs should never be visible to the CP, in order to reduce the burden of certificates generation for dCDN.
      </t>
    </section>
  </middle>
  <!--  *****BACK MATTER ***** -->

	<back>
    <!-- References split into informative and normative -->

		<!-- There are 2 ways to insert reference entries from the citation libraries:
     1. define an ENTITY at the top, and use "ampersand character"RFC2629; here (as shown)
     2. simply use a PI "less than character"?rfc include="reference.RFC.2119.xml"?> here
        (for I-Ds: include="reference.I-D.narten-iana-considerations-rfc2434bis.xml")

     Both are cited textually in the same manner: by using xref elements.
     If you use the PI option, xml2rfc will, by default, try to find included files in the same
     directory as the including file. You can also define the XML_LIBRARY environment variable
     with a value containing a set of directories to search.  These can be either in the local
     filing system or remote ones accessed by http (http://domain/dir/... ).-->



		<references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <!--?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml"?-->
			<!--&RFC2119;
	     
		  &RFC2629;-->
			<!--&RFC3568;-->
			<!-- &RFC6698; DANE-->			
			<!--&RFC2818; -->
			<!--&RFC5280;-->
			<!--&RFC6770;-->
			<!--&RFC6844;-->
			<!--&RFC7230;-->
			<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8006.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8007.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8739.xml"/>
        <!--<?rfc include="reference.I-D.ietf-tls-subcerts"?>
			<?rfc include="reference.I-D.ietf-acme-star-delegation"?>-->
			
			<!--&RFC7540;-->
		</references>
      <references>
        <name>Informative References</name>
        <!-- Here we use entities that we defined at the beginning. -->			
				
			<!--&I-D.thomson-http-scd;-->
			<!--&I-D.ietf-acme-caa;-->
			<!--<?rfc include="reference.I-D.thomson-http-bc"?>-->
			<!--<?rfc include="reference.I-D.thomson-http-mice"?>-->
			<!--<?rfc include="reference.I-D.ietf-httpbis-encryption-encoding"?>-->
			<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7336.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7337.xml"/>
        <!--			&RFC8446;-->

			<!--<?rfc include="reference.I-D.cairns-tls-session-key-interface"?>-->

						
			<!--<?rfc include="reference.I-D.ietf-cdni-redirection.xml"?>-->


			<!-- references to add		
				   [HTTPS-CDN] J. Liang, J. Jiang, H. Duan, K. Li, T. Wan, and J. Wu,
		   "When HTTPS Meets CDN: A Case of Authentication in Delegated
		   Service," in 2014 IEEE Symposium on Security and Privacy (SP), 2014,
		   pp. 67-82.

		   [SSL-Challenges] J. Clark and P. C. van Oorschot, "SoK: SSL and
		   HTTPS: Revisiting Past Challenges and Evaluating Certificate Trust
		   Model Enhancements," in 2013 IEEE Symposium on Security and Privacy
		   (SP), 2013, pp. 511-525.
		   
	



			<reference anchor="LURK_Mailing_List"
			           target="https://mailarchive.ietf.org/arch/search/?email_list=lurk">
				<front>
					<title>LURK Mailing List</title>

					<author fullname="">
						<organization/>
					</author>

					<date year=""/>
				</front>
			</reference>
	   -->
	   

		</references>
    </references>
    <!-- Change Log

v00 2006-03-15  EBD   Initial version

v01 2006-04-03  EBD   Moved PI location back to position 1 -
                      v3.1 of XMLmind is better with them at this location.
v02 2007-03-07  AH    removed extraneous nested_list attribute,
                      other minor corrections
v03 2007-03-09  EBD   Added comments on null IANA sections and fixed heading capitalization.
                      Modified comments around figure to reflect non-implementation of
                      figure indent control.  Put in reference using anchor="DOMINATION".
                      Fixed up the date specification comments to reflect current truth.
v04 2007-03-09 AH     Major changes: shortened discussion of PIs,
                      added discussion of rfc include.
v05 2007-03-10 EBD    Added preamble to C program example to tell about ABNF and alternative 
                      images. Removed meta-characters from comments (causes
                      problems).
    2015-04-17 AR     updated ipr attribute.  -->
	</back>
</rfc>
