<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc SYSTEM "rfc2629-xhtml.ent">
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc strict="yes" ?>
<?rfc toc="yes"?>
<?rfc tocdepth="4"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="std" docName="draft-ietf-sidrops-aspa-profile-08" ipr="trust200902" obsoletes="" updates="" submissionType="IETF" xml:lang="en">
  <front>
    <title abbrev="ASPA Profile"> A Profile for Autonomous System Provider Authorization </title>
    <author fullname="Alexander Azimov" initials="A" surname="Azimov">
      <organization>Yandex</organization>
      <address>
        <email>a.e.azimov@gmail.com</email>
      </address>
    </author>
    <author fullname="Eugene Uskov" initials="E" surname="Uskov">
      <organization>JetLend</organization>
      <address>
        <email>eu@jetlend.ru</email>
      </address>
    </author>
    <author fullname="Randy Bush" initials="R" surname="Bush">
      <organization>Internet Initiative Japan</organization>
      <address>
        <email>randy@psg.com</email>
      </address>
    </author>
    <author fullname="Keyur Patel" initials="K" surname="Patel">
      <organization abbrev="Arrcus">Arrcus, Inc.</organization>
      <address>
        <email>keyur@arrcus.com</email>
      </address>
    </author>
    <author fullname="Job Snijders" initials="J." surname="Snijders">
      <organization>Fastly</organization>
      <address>
        <postal>
          <street/>
          <code/>
          <city>Amsterdam</city>
          <country>The Netherlands</country>
        </postal>
        <email>job@fastly.com</email>
      </address>
    </author>
    <author fullname="Russ Housley" initials="R" surname="Housley">
      <organization abbrev="Vigil Security">Vigil Security, LLC</organization>
      <address>
        <postal>
          <street>918 Spring Knoll Drive</street>
          <city>Herndon</city>
          <region>VA</region>
          <code>20170</code>
          <country>USA</country>
        </postal>
        <email>housley@vigilsec.com</email>
      </address>
    </author>
    <date/>
    <keyword>BGP</keyword>
    <keyword>Route leak</keyword>
    <keyword>Hijacks</keyword>
    <abstract>
      <t>
                This document defines a standard profile for Autonomous System Provider Authorization in the Resource Public Key Infrastructure.
                An Autonomous System Provider Authorization is a digitally signed object that provides a means of validating that a Customer Autonomous System holder has authorized members of Provider set to be its upstream providers or provide route server service at internet exchange point.
                For the Providers it means that they are legal to send prefixes received from the Customer Autonomous System in all directions including providers and peers.
      </t>
    </abstract>
    <note title="Requirements Language">
      <t>
                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 <xref target="RFC2119" pageno="false" format="default"/> <xref target="RFC8174" pageno="false" format="default"/> when, and
                only when, they appear in all capitals, as shown here.
      </t>
    </note>
  </front>
  <middle>
    <section title="Introduction" anchor="intro" numbered="true" toc="default">
      <t>
                The primary purpose of the Resource Public Key Infrastructure (RPKI) is to improve routing security.
                (See <xref target="RFC6480" pageno="false" format="default"/> for more information.)
                As part of this infrastructure, a mechanism is needed to validate that a AS has permission from a Customer AS (CAS) holder to send routes in all directions.
                The digitally signed Autonomous System Provider Authorization (ASPA) object provides this validation mechanism.
      </t>
      <t>
                The ASPA uses the template for RPKI digitally signed
                objects <xref target="RFC6488" pageno="false" format="default"/>, which defines a
                Cryptographic Message Syntax (CMS) <xref target="RFC5652" pageno="false" format="default"/> wrapper for the ASPA content as well
                as a generic validation procedure for RPKI signed
                objects.  As ASPAs need to be validated with RPKI
                certificates issued by the current infrastructure, we
                assume the mandatory-to-implement algorithms in <xref target="RFC6485" pageno="false" format="default"/>, or its successor.
      </t>
      <t>To complete the specification of the ASPA (see
		Section 4 of <xref target="RFC6488" pageno="false" format="default"/>), this document
		defines:
                <list style="numbers">
          <t>
                        The object identifier (OID) that identifies the ASPA signed object.
                        This OID appears in the eContentType field of the encapContentInfo object as well as the content-type signed attribute within the signerInfo structure).
          </t>
          <t>
                        The ASN.1 syntax for the ASPA content, which is the payload signed by the CAS.
                        The ASPA content is encoded using the ASN.1 <xref target="X680" pageno="false" format="default"/> Distinguished Encoding Rules (DER) <xref target="X690" pageno="false" format="default"/>.
          </t>
          <t>
                        The steps required to validate an ASPA beyond the validation steps specified in <xref target="RFC6488" pageno="false" format="default"/>).
          </t>
        </list>
      </t>
    </section>
    <section title="The ASPA Content Type" anchor="content-type" numbered="true" toc="default">
      <t>
                The content-type for an ASPA is defined as id-ct-ASPA, which has the numerical value of 1.2.840.113549.1.9.16.1.49.

                This OID MUST appear both within the eContentType in the encapContentInfo structure as well as the content-type signed attribute within the signerInfo structure (see <xref target="RFC6488" pageno="false" format="default"/>).
      </t>
    </section>
    <section title="The ASPA eContent" anchor="content" numbered="true" toc="default">
      <t>
                The content of an ASPA identifies the Customer AS (CAS) as well as the Set of Provider ASes (SPAS) that are authorized to further propagate announcements received from the customer.
      </t>
      <t>
                Not all route servers at internet exchange points are transparent, e.g. in some cases they are present in the ASPATH.
                In this case route server AS is acting as provider AS, which propagates routes between its customers.
                Thus, a customer MUST add both upstream providers and route sever AS it is connected to its SPAS.
      </t>
      <t>
                If customer is connected to multiple transit providers/route servers they MUST be registered in a single ASPA object.
                This rule is important to avoid possible race conditions during updates.
      </t>
      <t>
                The eContent of an ASPA is an instance of ASProviderAttestation, formally defined by the following ASN.1 <xref target="X680" pageno="false" format="default"/> module:
      </t>
      <sourcecode type="asn.1" originalSrc="RPKI-ASPA-2022.asn">RPKI-ASPA-2022
  { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
     pkcs-9(9) smime(16) modules(0) id-mod-rpki-aspa-2020(TBD) }

DEFINITIONS IMPLICIT TAGS ::=
BEGIN

IMPORTS
  CONTENT-TYPE
  FROM CryptographicMessageSyntax-2010  -- RFC 6268
    { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
       pkcs-9(9) smime(16) modules(0) id-mod-cms-2009(58) } ;

id-ct-ASPA OBJECT IDENTIFIER ::=
  { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
    pkcs-9(9) id-smime(16) id-ct(1) 49 }

ct-ASPA CONTENT-TYPE ::=
  { TYPE ASProviderAttestation IDENTIFIED BY id-ct-ASPA }

ASProviderAttestation ::= SEQUENCE {
  version [0]   ASPAVersion DEFAULT v0,
  customerASID  ASID,
  providers     ProviderASSet }

ASPAVersion ::= INTEGER  { v0(0) }

ProviderASSet ::= SEQUENCE (SIZE(1..MAX)) OF ProviderAS

ProviderAS ::= SEQUENCE {
  providerASID  ASID,
  afiLimit      AddressFamilyIdentifier OPTIONAL }

ASID ::= INTEGER

AddressFamilyIdentifier ::= OCTET STRING (SIZE (2))

END
</sourcecode>
      <t>
                Note that this content appears as the eContent within the encapContentInfo as specified in <xref target="RFC6488" pageno="false" format="default"/>.
      </t>
      <section title="version" numbered="true" toc="default">
        <t>
                    The version number of the ASProviderAttestation MUST be v0.
        </t>
      </section>
      <section title="customerASID" numbered="true" toc="default">
        <t>
                    The customerASID field contains the AS number of the Autonomous System (AS) that authorizes a collection of provider ASes (as listed in the providerASSet) to propagate prefixes in the specified address family to other ASes.
        </t>
      </section>
      <section title="providers" numbered="true" toc="default">
        <t>
                    The providers field contains the listing of ASes that are authorized to further propagate announcements in the specified address family received from the customer.
        </t>
        <t>
                    Each element contained in the providers field is an instance of ProviderAS.
        </t>
        <section title="ProviderAS" numbered="true" toc="default">
          <section title="providerASID" numbered="true" toc="default">
            <t>
                            The providerASID field contains the AS number of an AS that has been authorized by the customer AS to propagate prefixes in the specified address family to other ASes.
            </t>
          </section>
          <section title="afiLimit" numbered="true" toc="default">
            <t>
                            The afiLimit field optionally constrains the authorization given to the provider AS to a single address family.
            </t>
            <t>
                            If present, it contains the two-octet Address Family Identifier (AFI) for which the relation between the customer and provider is authorized.
                            AFI values are specified in <xref target="IANA-AF" pageno="false" format="default"/>.
            </t>
            <t>
                            If omitted, the authorization is valid for both IPv4 and IPv6 announcements.
            </t>
          </section>
        </section>
      </section>
    </section>
    <section title="ASPA Validation" anchor="validation" numbered="true" toc="default">
      <t>
                Before a relying party can use an ASPA to validate a routing announcement, the relying party MUST first validate the ASPA object itself.
                To validate an ASPA, the relying party MUST perform all the validation checks specified in <xref target="RFC6488" pageno="false" format="default"/> as well as the following additional ASPA-specific validation step.
                <list style="symbols">
          <t>
                        The autonomous system identifier delegation extension <xref target="RFC3779" pageno="false" format="default"/> is present in the
                        end-entity (EE) certificate (contained within the ASPA), and the customer AS number in the ASPA is
                        contained within the set of AS numbers specified by the EE certificate's autonomous system identifier
                        delegation extension.
          </t>
        </list>
      </t>
    </section>
    <section anchor="IANA" title="IANA Considerations" numbered="true" toc="default">
      <t>
                Please add the id-mod-rpki-aspa-2022 to the SMI Security for S/MIME Module Identifier (1.2.840.113549.1.9.16.0)
                registry (https://www.iana.org/assignments/smi-numbers/smi-numbers.xml#security-smime-0) as follows:
      </t>
      <figure title="" suppress-title="false" align="left" alt="" width="" height="">
        <artwork type="text" xml:space="preserve" name="" align="left" alt="" width="" height="">
    Decimal   | Description                   | Specification
    -----------------------------------------------------------
    TBD2      | id-mod-rpki-aspa-2022         | [ThisRFC]
                   </artwork>
      </figure>
      <t>
                Please add the ASPA to the SMI Security for S/MIME CMS Content Type (1.2.840.113549.1.9.16.1) registry
                (https://www.iana.org/assignments/smi-numbers/smi-numbers.xml#security-smime-1) as follows:
      </t>
      <figure title="" suppress-title="false" align="left" alt="" width="" height="">
        <artwork type="text" xml:space="preserve" name="" align="left" alt="" width="" height="">
    Decimal   | Description                   | Specification
    -----------------------------------------------------------
    49        | id-ct-ASPA                    | [ThisRFC]
                   </artwork>
      </figure>
      <t>
                Please add Autonomous System Provider Authorization to the RPKI Signed Object registry
                (https://www.iana.org/assignments/rpki/rpki.xhtml#signed-objects)
                as follows:
      </t>
      <figure title="" suppress-title="false" align="left" alt="" width="" height="">
        <artwork type="text" xml:space="preserve" name="" align="left" alt="" width="" height="">
    Name                                     | OID                         | Specification
    --------------------------------------------------------------------------------------
    Autonomous System Provider Authorization | 1.2.840.113549.1.9.16.1.49  | [ThisRFC]
                   </artwork>
      </figure>
      <t>
               Please add an item for the Autonomous System Provider Authorization
               file extension to the "RPKI Repository Name Scheme"
               registry created by <xref target="RFC6481" pageno="false" format="default"/> as follows:
      </t>
      <figure title="" suppress-title="false" align="left" alt="" width="" height="">
        <artwork xml:space="preserve" name="" type="" align="left" alt="" width="" height="">
<![CDATA[
   Filename
   Extension  RPKI Object                               Reference
   --------------------------------------------------------------------------------------
      .asa    Autonomous System Provider Authorization  [draft-ietf-sidrops-aspa-profile]
]]>
                </artwork>
      </figure>
    </section>
    <section anchor="Security" title="Security Considerations" numbered="true" toc="default">
      <t>
                While it's not restricted, but it's highly recommended maintaining for selected Customer AS a single ASPA object that covers all connected providers/route servers.
                Such policy should prevent race conditions during ASPA updates that might affect prefix propagation.
                The software that provides hosting for ASPA records SHOULD support enforcement of this rule.
                In the case of the transition process between different CA registries, the ASPA records SHOULD be kept identical in all registries.
      </t>
    </section>
    <section anchor="Acknowledgments" title="Acknowledgments" numbered="true" toc="default">
      <t>
            The authors would like to thank Ben Maddison for substantial review and contributions to the ASN.1 specification.
      </t>
    </section>
  </middle>
  <back>
    <references title="Normative References">
      <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" xml:base="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml" quote-title="true">
        <front>
          <title>Key words for use in RFCs to Indicate Requirement Levels</title>
          <author initials="S." surname="Bradner" fullname="S. Bradner">
            <organization/>
          </author>
          <date year="1997" month="March"/>
          <abstract>
            <t>In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
          </abstract>
        </front>
        <seriesInfo name="BCP" value="14"/>
        <seriesInfo name="RFC" value="2119"/>
        <seriesInfo name="DOI" value="10.17487/RFC2119"/>
      </reference>
      <reference anchor="RFC3779" target="https://www.rfc-editor.org/info/rfc3779" xml:base="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.3779.xml" quote-title="true">
        <front>
          <title>X.509 Extensions for IP Addresses and AS Identifiers</title>
          <author initials="C." surname="Lynn" fullname="C. Lynn">
            <organization/>
          </author>
          <author initials="S." surname="Kent" fullname="S. Kent">
            <organization/>
          </author>
          <author initials="K." surname="Seo" fullname="K. Seo">
            <organization/>
          </author>
          <date year="2004" month="June"/>
          <abstract>
            <t>This document defines two X.509 v3 certificate extensions.  The first binds a list of IP address blocks, or prefixes, to the subject of a certificate.  The second binds a list of autonomous system identifiers to the subject of a certificate.  These extensions may be used to convey the authorization of the subject to use the IP addresses and autonomous system identifiers contained in the extensions.  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="3779"/>
        <seriesInfo name="DOI" value="10.17487/RFC3779"/>
      </reference>
      <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" xml:base="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml" quote-title="true">
        <front>
          <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
          <author initials="B." surname="Leiba" fullname="B. Leiba">
            <organization/>
          </author>
          <date year="2017" month="May"/>
          <abstract>
            <t>RFC 2119 specifies common key words that may be used in protocol  specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the  defined special meanings.</t>
          </abstract>
        </front>
        <seriesInfo name="BCP" value="14"/>
        <seriesInfo name="RFC" value="8174"/>
        <seriesInfo name="DOI" value="10.17487/RFC8174"/>
      </reference>
      <reference anchor="RFC5652" target="https://www.rfc-editor.org/info/rfc5652" xml:base="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.5652.xml" quote-title="true">
        <front>
          <title>Cryptographic Message Syntax (CMS)</title>
          <author initials="R." surname="Housley" fullname="R. Housley">
            <organization/>
          </author>
          <date year="2009" month="September"/>
          <abstract>
            <t>This document describes the Cryptographic Message Syntax (CMS).  This syntax is used to digitally sign, digest, authenticate, or encrypt arbitrary message content.  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="STD" value="70"/>
        <seriesInfo name="RFC" value="5652"/>
        <seriesInfo name="DOI" value="10.17487/RFC5652"/>
      </reference>
      <reference anchor="RFC6485" target="https://www.rfc-editor.org/info/rfc6485" xml:base="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6485.xml" quote-title="true">
        <front>
          <title>The Profile for Algorithms and Key Sizes for Use in the Resource Public Key Infrastructure (RPKI)</title>
          <author initials="G." surname="Huston" fullname="G. Huston">
            <organization/>
          </author>
          <date year="2012" month="February"/>
          <abstract>
            <t>This document specifies the algorithms, algorithms' parameters, asymmetric key formats, asymmetric key size, and signature format for the Resource Public Key Infrastructure (RPKI) subscribers that generate digital signatures on certificates, Certificate Revocation Lists, and signed objects as well as for the relying parties (RPs) that verify these digital signatures.  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="6485"/>
        <seriesInfo name="DOI" value="10.17487/RFC6485"/>
      </reference>
      <reference anchor="RFC6481" target="https://www.rfc-editor.org/info/rfc6481" xml:base="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6481.xml" quote-title="true">
        <front>
          <title>A Profile for Resource Certificate Repository Structure</title>
          <author initials="G." surname="Huston" fullname="G. Huston">
            <organization/>
          </author>
          <author initials="R." surname="Loomans" fullname="R. Loomans">
            <organization/>
          </author>
          <author initials="G." surname="Michaelson" fullname="G. Michaelson">
            <organization/>
          </author>
          <date year="2012" month="February"/>
          <abstract>
            <t>This document defines a profile for the structure of the Resource Public Key Infrastructure (RPKI) distributed repository.  Each individual repository publication point is a directory that contains files that correspond to X.509/PKIX Resource Certificates, Certificate Revocation Lists and signed objects.  This profile defines the object (file) naming scheme, the contents of repository publication points (directories), and a suggested internal structure of a local repository cache that is intended to facilitate synchronization across a distributed collection of repository publication points and to facilitate certification path construction.  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="6481"/>
        <seriesInfo name="DOI" value="10.17487/RFC6481"/>
      </reference>
      <reference anchor="RFC6488" target="https://www.rfc-editor.org/info/rfc6488" xml:base="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6488.xml" quote-title="true">
        <front>
          <title>Signed Object Template for the Resource Public Key Infrastructure (RPKI)</title>
          <author initials="M." surname="Lepinski" fullname="M. Lepinski">
            <organization/>
          </author>
          <author initials="A." surname="Chi" fullname="A. Chi">
            <organization/>
          </author>
          <author initials="S." surname="Kent" fullname="S. Kent">
            <organization/>
          </author>
          <date year="2012" month="February"/>
          <abstract>
            <t>This document defines a generic profile for signed objects used in the Resource Public Key Infrastructure (RPKI).  These RPKI signed objects make use of Cryptographic Message Syntax (CMS) as a standard encapsulation format.  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="6488"/>
        <seriesInfo name="DOI" value="10.17487/RFC6488"/>
      </reference>
      <reference anchor="X680" quote-title="true">
        <front>
          <title>Information technology -- Abstract Syntax Notation One (ASN.1): Specification of basic notation</title>
          <author>
            <organization>ITU-T</organization>
          </author>
          <date year="2015"/>
        </front>
        <seriesInfo name="ITU-T" value="Recommendation X.680"/>
      </reference>
      <reference anchor="X690" quote-title="true">
        <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</organization>
          </author>
          <date year="2015"/>
        </front>
        <seriesInfo name="ITU-T" value="Recommendation X.690"/>
      </reference>
      <reference anchor="IANA-AF" target="https://www.iana.org/assignments/address-family-numbers/address-family-numbers.xhtml" quote-title="true">
        <front>
          <title>Address Family Numbers</title>
          <author>
            <organization>IANA</organization>
          </author>
          <date/>
        </front>
        <!-- <seriesInfo name="Reachable from" value="http://www.iana.org/numbers.html"/> -->
            </reference>
    </references>
    <references title="Informative References">
      <reference anchor="RFC6480" target="https://www.rfc-editor.org/info/rfc6480" xml:base="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6480.xml" quote-title="true">
        <front>
          <title>An Infrastructure to Support Secure Internet Routing</title>
          <author initials="M." surname="Lepinski" fullname="M. Lepinski">
            <organization/>
          </author>
          <author initials="S." surname="Kent" fullname="S. Kent">
            <organization/>
          </author>
          <date year="2012" month="February"/>
          <abstract>
            <t>This document describes an architecture for an infrastructure to support improved security of Internet routing.  The foundation of this architecture is a Resource Public Key Infrastructure (RPKI) that represents the allocation hierarchy of IP address space and Autonomous System (AS) numbers; and a distributed repository system for storing and disseminating the data objects that comprise the RPKI, as well as other signed objects necessary for improved routing security.  As an initial application of this architecture, the document describes how a legitimate holder of IP address space can explicitly and verifiably authorize one or more ASes to originate routes to that address space.  Such verifiable authorizations could be used, for example, to more securely construct BGP route filters.   This document is not an Internet Standards Track specification; it is published for informational purposes.</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="6480"/>
        <seriesInfo name="DOI" value="10.17487/RFC6480"/>
      </reference>
    </references>
  </back>
</rfc>
