<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE rfc SYSTEM "rfc2629.dtd">

<rfc category="std" ipr="trust200902" docName="draft-tbruijnzeels-sidrops-signed-tal-01">

<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>

<?rfc toc="yes" ?>
<?rfc symrefs="yes" ?>
<?rfc sortrefs="yes"?>
<?rfc iprnotified="no" ?>
<?rfc strict="yes" ?>
<?rfc compact="yes" ?>

  <front>
    <title>RPKI signed object for TAL</title>
    <author initials='T.' surname="Bruijnzeels" fullname='Tim Bruijnzeels'>
      <organization>RIPE NCC</organization>
      <address>
        <email>tim@ripe.net</email>
      </address>
    </author>
    <author initials='C.' surname="Martinez" fullname='Carlos Martinez'>
      <organization>LACNIC</organization>
      <address>
        <email>carlos@lacnic.net</email>
      </address>
    </author>
    <date />
    <abstract>
      <t>
        Trust Anchor Locators (TALs) <xref target="RFC7730" /> are used by Relying Parties
        in the RPKI to locate and validate Trust Anchor certificates used in RPKI validation.
        This document defines an RPKI signed object <xref target="RFC6488" /> for a Trust
        Anchor Locator (TAL) that can be published by Trust Anchor to communicate a new TAL
        to already deployed Relying Parties. The two primary use cases for this are that
        1) a Trust Anchor may wish to change the locations where its TA certificate may be
        found, and 2) a Trust Anchor may wish to perform a planned migration to a new key.
        Note that unplanned key rolls are considered out of scope for this document.
      </t>
    </abstract>
  </front>

  <middle>
    <section title="Requirements notation">
      <t>
        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 <xref target="RFC2119" />.
      </t>
    </section>

    <section title="Introduction">
      <t>
        Trust Anchor Locator (TAL) files <xref target="RFC7730" /> are used in the Resource
        Public Key Infrastructure (RPKI) to help Relying Parties locate and verify a trust
        anchor certificate. A TAL file consists of:
        <list style="symbols">
          <t>One or more rsync URIs <xref target="RFC5781" /></t>
          <t>A subjectPublicKeyInfo <xref target="RFC5280" /> in DER format
            <xref target="X.509"/>, encoded in Base64</t>
        </list>
      </t>
      <t>
        The TAL can be distributed out-of-band to Relying Parties (RP), and it allows the
        RP to retrieve the most recent version of the Trust Anchor (TA) certificate from
        the cited location, and verify that public key of this certificate matches the TAL.
        This is useful as it allows selected data in the trust anchor to change, without
        needing to effect redistribution of the trust anchor per se. In particular the
        Internet Number Resources (INRs) extension <xref target="RFC3779" /> and the
        publication points defined in the Subject Information Access
        <xref target="RFC6487" /> may be updated this way. 
      </t>
      <t>
        The assumption is that both the URIs and key of the TA certificate remain stable.
        However, an organisation operating a TA may wish to change either of these
        properties, because of a need to:
        <list style="symbols">
          <t>change one or more URIs</t>
          <t>perform a planned key roll</t>
        </list>
      </t>
      <t>
        In this document we describe a method for TA operators to publish a an updated TAL
        in a secure a well-defined fashion, so that RPs can be alerted about these changes.
      </t>
      <t>
        Note that <xref target="RFC5011" /> describes Automated Updates of DNS Security
        (DNSSEC) Trust Anchors and can provide some useful insight here as well. However,
        concepts like a set of Trust Anchors, standby Trust Anchors, and TTLs are not
        applicable to the RPKI. Therefore we believe that an alternative approach based
        on already existing concept of the Trust Anchor Locator <xref target="RFC7730" />
        is appropriate.
      </t>

    </section>
    
    <section title="Signed TAL definition">
      <t>
        A signed TAL is an RPKI signed object, as specified in <xref target="RFC6488"/>.
        The RPKI signed object template requires specification of the following data
        elements in the context of the manifest structure.
      </t>
      
      <section title="The Signed TAL Content Type">          
        <t>This document requests an OID for signed-Tal as follows:</t>
        <t><figure><artwork>
signed-Tal OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840)
           rsadsi(113549) pkcs(1) pkcs9(9) 16 id-smime (1) TBD }
</artwork></figure></t>

        <t>This OID MUST appear both within the eContentType in the encapContentInfo
        object as well as the content-type signed attribute in the signerInfo object (see
        <xref target="RFC6488" />).</t>
      </section>
      
      <section title="The Signed TAL eContent">
        <t>The content of a Signed TAL is ASN.1 encoded using the Distinguished Encoding
           Rules (DER) <xref target="X.690"/>, and is defined as follows:</t>
        <t><figure><artwork>
SignedTalContent ::= IA5String
</artwork></figure></t>
        
        <t>The "SignedTalContent" contains the content of the new TAL encoded in Base64
           <xref target="RFC4648"/>.</t>

      </section>
      
      <section title="Signed TAL Validation">
        <t>Before a Relying Party can use a Signed TAL, the relying party MUST first
        validate the Signed TAL.  To validate a Signed TAL, the relying party MUST perform
        all the validation checks specified in <xref target="RFC6488" /> as well as the
        following additional specific validation step.<list style="symbols">

            <t>The eContentType in the EncapsulatedContentInfo has OID
                1.2.840.113549.1.9.16.1.TBD.</t>
        
           <t>The EE certificate of this Signed TAL is signed by a known Trust Anchor</t>
           <t>The decoded TAL content conforms to the format defined in
               <xref target="RFC7730"/></t>
        
        </list>
        If the above procedure indicates that the manifest is invalid, then the Signed
        TAL MUST be discarded and treated as though no Signed TAL were present.</t>
      </section>

    </section>
    
    <section title="Signed TAL Generation" anchor="generateTal">
      <t>
        A TA MAY choose to generate a single Singed TAL object to publish in its TA
        certificate publication point(s) in the RPKI. The TA MUST perform the following
        steps to generate the Signed TAL:
        <list style="symbols">
          <t>Generate a key pair for a "one-time-use" EE certificate to use for the Signed
             TAL</t>
          <t>Generate a one-time-use EE certificate for the Signed TAL</t>
          <t>This EE certificate MUST have an SIA extension access description field with
             an accessMethod OID value of  id-ad-signedobject, where the associated
             accessLocation references the publication point of the Sigend TAL as an
             object URL.</t>
          <t>As described in <xref target="RFC6487" />, an <xref target="RFC3779" />
             extension is required in the EE certificate used for this object. However,
             because the resource set is irrelevant to this object type, this certificate
             MUST describe its Internet Number Resources (INRs) using the "inherit"
             attribute, rather than explicit description of a resource set.</t>
          <t>This EE certificate MUST have a "notBefore" time that is before the moment
             that the Signed TAL will be published.</t>
          <t>This EE certificate MUST have a "notAfter" time that reflects the intended
             time that this Signed TAL will be published. If the EE certificate for a
             Signed TAL is expired, it MUST no longer be publish, but of course it MAY
             be replaced by a newly generated Signed TAL object with similar content and
             an updated "notAfter" time.</t>
        </list>
      </t>
    </section>
    
    <section title="Signed TAL Publication" anchor="publishTal">
      <t>
        A TA MAY publish a single Signed TAL object directly under its CA repository
        publication points. A non-normative guideline for naming this object is that the
        filename chosen for the signed TAL in the publication repository be a value
        derived from the public key part of the entity's key pair, using the algorithm
        described for CRLs in section 2.2 of <xref target="RFC6481" /> for generation
        of filenames. The filename extension of ".tal" MUST be used to denote the object
        as a signed TAL. Note that this is in-line with filename extensions defined in
        section 7.2 of <xref target="RFC6481" />.
      </t>
    </section>

    <section title="Supporting a TA Key Roll">
        <t>
          A Signed TAL MAY be used to communicate a planned key roll for the TA.
        </t>
        <section title="Preparing a new TA key">
          <t>Prior to publishing the Signed TAL for the new key the TA MUST perform the
             following steps:</t>
          <t><list style="symbols">
              <t>Generate a new key pair for the new TA certificate</t>
              <t>Generate a new TA Certificate, using a Subject Information Access for CA
                 certificates (see section 4.8.8.1 of <xref target="RFC6487" />) that
                 references the URIs that will be used by the new key to publish objects,
                 that are different from the URIs used by the TA certificate for the
                 current key.</t>
              <t>ALL current signed certificates and other objects, with the exception of
                 the old CRL, Manifest and Signed TAL, must be re-issued by the new key
                 and published under the new publication point(s).</t>
              <t>The new TA certificate itself MUST be published in a (number of)
                 new location(s) that are different from where the TA certificate for the
                 current key is published.</t>
          </list></t>
          <t>After these steps are performed a new Signed TAL MUST be generated as
             described in <xref target="generateTal" />, and published as described in
             <xref target="publishTal" />.</t>
        </section>
        <section title="Staging period - Using both the old and the new TA key">
          <t>
            The staging period is initiated by the initial publication of a Signed TAL for
            the new key and must be last at least 24 HOURS. During the staging period the
            TA MUST continue to operate both the old and the new TA key. Note that this is
            the same staging period used for key roll of normal CAs in the RPKI, described
            in <xref target="RFC6489" />.</t>
        </section>
        
        <section title="Preserving the Signed TAL">
        
           <t>The TA SHOULD preserve a Signed TAL for the old key after the staging period
              as a hint for RPs that missed the key roll. The following process can be used
              to achieve this:</t>
          <t>
            <list style="symbols">
              <t>Produce a new long-lived CRL that revokes all previously signed
                 certificates</t>
              <t>Produce a new long-lived Signed TAL</t>
              <t>Produce a new long-lived manifest that includes the CRL and Signed TAL</t>
              <t>Publish the CRL, MFT and Signed TAL</t>
              <t>Destroy the old TA key</t>
            </list> 
          </t>
        </section>

        <section title="Retiring the old key">        
           <t>The TA SHOULD retire and delete its old key after the staging period is over.</t>
        </section>
        
        <section title="Relying Party Use">
           <t>When an RP discovers a valid Signed TAL signed under a TA, and it notices
              that the contained TAL is different from its current TAL for this TA and
              that the "subjectPublicKeyInfo" has changed, then the RP MUST replace the
              TAL for this TA with the new TAL, abort the current top-down validation
              operation, and initiate a new top-down validation operation using the
              updated TAL.</t>
            <t>It is RECOMMENDED that the software informs the operator of this event.</t>
        </section>

    </section>
      
    <section title="Supporting changing TA certificate publication point(s)">
      
      <t>A signed TAL MAY be used to communicate an addition or removal of one or more
         publication locations where the TA certificate can be found.</t>
        
       <section title="Adding a publication point">
          <t>When adding a publication point for a TA certificate, the TA MUST publish the
             certificate in the new location(s) prior to publication of the Signed TAL.</t>
        </section>
        
        <section title="Withdrawing a publication point">
          <t>When removing a publication point for TA certificate, the TA SHOULD observe a
             staging period of at least 24 Hours. The staging period is initiated by the
             publication of an updated Signed TAL where the publication point has been
             removed. During the staging period the TA SHOULD keep the old publication
             point up to date and available.</t>
        </section>
        
        <section title="Publishing the Signed TAL">
        
           <t>It is RECOMMENDED that a Trust Anchor publishes a valid Signed TAL for what
              it believes its current TAL should be at all times.
           </t>
              
        </section>
        
        <section title="Relying Party Use">
           <t>When an RP discovers a valid Signed TAL signed under a TA, and it notices
              that the contained TAL is different from its current TAL for this TA and
              that the "subjectPublicKeyInfo" has not changed, then the RP MUST replace
              the TAL for this TA with the new TAL for future use, but can continue the
              current top-down validation operation.</t>
            <t>It is RECOMMENDED that the software informs the operator of this event.</t>        
        </section>
        
    </section>

    
    
    <section title="IANA Considerations">
      <section title="OID">
      	 <t>IANA is to add the following to the "RPKI Signed Objects" registry:</t>
      	 <t><figure><artwork><![CDATA[ 
      Decimal  Description                       References

      TBD      signed-Tal                       [section 3.1]
]]></artwork></figure></t>      	 
      	 
      </section>
      <section title="File Extension">
        <t>IANA is to add an item for the Signed TAL file extension to the "RPKI Repository
          Name Scheme" created by <xref target="RFC6481"/> as follows:</t>
        <t><figure><artwork>
      Extension      RPKI Object           Reference
      -------------------------------------------------------
         .tal        Signed TAL            [this document]
</artwork></figure></t>
      </section>
    </section>

    <section title="Security Considerations">
      <t>TBD</t>
    </section>
    <section title="Acknowledgements">
      <t>TBD</t>
    </section>
  </middle>

  <back>
    <references title="Normative References">
        <?rfc include="reference.RFC.2119.xml"?>
        <?rfc include="reference.RFC.3779.xml"?>
        <?rfc include="reference.RFC.4648.xml"?>
        <?rfc include="reference.RFC.5280.xml"?>
        <?rfc include="reference.RFC.5781.xml"?>
        <?rfc include="reference.RFC.6481.xml"?>
        <?rfc include="reference.RFC.6487.xml"?>
        <?rfc include="reference.RFC.6488.xml"?>
        <?rfc include="reference.RFC.7730.xml"?>
        <reference anchor="X.509">
          <front>
            <title>
            Recommendation X.509: The Directory - Authentication Framework
            </title>
            <author>
              <organization>
              ITU-T Recommendation X.509 (2000)
              </organization>
            </author>
            <date year="2000"/>
          </front>
        </reference>
        
        <reference anchor="X.690">
          <front>
            <title>
            Information technology - ASN.1 encoding rules:
             Specification of Basic Encoding Rules (BER), Canonical
             Encoding Rules (CER) and Distinguished Encoding Rules
             (DER)
            </title>
            <author>
              <organization>
              ITU-T Recommendation X.690 (2002) | ISO/IEC 8825-1:2002
              </organization>
            </author>
            <date year="2002"/>
          </front>
        </reference>
    </references>
    <references title="Informative References">
            <?rfc include="reference.RFC.5011.xml"?>
            <?rfc include="reference.RFC.6489.xml"?>        
    </references>
  </back>

</rfc>
