sidrops J. Snijders Internet-Draft Fastly Intended status: Standards Track G. Huston Expires: 1 October 2023 APNIC 30 March 2023 A profile for RPKI Signed Lists of Prefixes draft-spaghetti-sidrops-rpki-prefixlist-00 Abstract This document defines a "RPKI Prefix List", a Cryptographic Message Syntax (CMS) protected content type for use with the Resource Public Key Infrastructure (RPKI) to carry the complete list of prefixes which an Autonomous System (AS) may originate to all or any of its routing peers. The validation of a RPKI Prefix List confirms that the holder of the listed ASN produced the object, and that this list is a current, accurate and complete description of address prefixes that may be announced into the routing system originated by this AS. Status of This Memo 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 1 October 2023. Copyright Notice Copyright (c) 2023 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 Snijders & Huston Expires 1 October 2023 [Page 1] Internet-Draft RPKI PrefixList March 2023 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. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 1.1. Requirements Language . . . . . . . . . . . . . . . . . . 3 2. RPKI Signed Prefix List Profile . . . . . . . . . . . . . . . 3 2.1. EE Certificates . . . . . . . . . . . . . . . . . . . . . 3 2.2. Object Filenames . . . . . . . . . . . . . . . . . . . . 3 3. eContentType . . . . . . . . . . . . . . . . . . . . . . . . 4 3.1. The PrefixList eContentType . . . . . . . . . . . . . . . 4 4. eContent . . . . . . . . . . . . . . . . . . . . . . . . . . 4 4.1. The PrefixList eContent . . . . . . . . . . . . . . . . . 4 4.1.1. Version . . . . . . . . . . . . . . . . . . . . . . . 5 4.1.2. asID . . . . . . . . . . . . . . . . . . . . . . . . 6 4.1.3. prefixlist . . . . . . . . . . . . . . . . . . . . . 6 5. PrefixList Validation . . . . . . . . . . . . . . . . . . . . 6 6. Operational Considerations . . . . . . . . . . . . . . . . . 7 7. Security Considerations . . . . . . . . . . . . . . . . . . . 7 8. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 7 8.1. SMI Security for S/MIME CMS Content Type (1.2.840.113549.1.9.16.1) . . . . . . . . . . . . . . . . 7 8.2. RPKI Signed Objects . . . . . . . . . . . . . . . . . . . 8 8.3. RPKI Repository Name Schemes . . . . . . . . . . . . . . 8 8.4. SMI Security for S/MIME Module Identifier (1.2.840.113549.1.9.16.0) . . . . . . . . . . . . . . . . 8 8.5. Media Types . . . . . . . . . . . . . . . . . . . . . . . 9 8.5.1. PrefixList Media Type . . . . . . . . . . . . . . . . 9 9. References . . . . . . . . . . . . . . . . . . . . . . . . . 9 9.1. Normative References . . . . . . . . . . . . . . . . . . 9 9.2. Informative References . . . . . . . . . . . . . . . . . 10 Appendix A. Acknowledgements . . . . . . . . . . . . . . . . . . 11 Appendix B. Example payloads . . . . . . . . . . . . . . . . . . 11 B.1. Example PrefixList eContent Payload . . . . . . . . . . . 11 Appendix C. Implementation status . . . . . . . . . . . . . . . 12 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 13 1. Introduction This document defines an "RPKI Prefix List", a Cryptographic Message Syntax (CMS) [RFC5652] [RFC6268] protected content type to carry a list of IP prefixes and an Autonomous System Number. The list of prefixes describes the maximal set of prefixes that the Autonomous System MAY announce to any of its routing peers. The content is signed by the holder of the RPKI private key associated with the listed ASN. Snijders & Huston Expires 1 October 2023 [Page 2] Internet-Draft RPKI PrefixList March 2023 RPKI Prefix Lists allow other RPKI-validating remote routing entities to audit the collection of announcements that have the subject ASN as the originating AS. Any prefixes originated by this AS not contained in a validated RPKI Prefix List SHOULD be regarded as invalid, but ultimately their consequent handling by the local routing entity that performed the audit function is a matter of local policy. The intent of this object is to offer a RPKI-based successor to the [RFC2622] 'route-set' class objects used in Internet Routing Registries (IRRs). The semantics of the route-set and the RPKI Prefix List are similair. The difference is that the RPKI signature allows a relying party of be assured of the currency and authenticity of the Prefix List as a complete enumeration of all prefixes that may be announced as originating by this AS if the object can be validated by the RPKI. 1.1. Requirements Language 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. 2. RPKI Signed Prefix List Profile RPKI Prefix List objects follow the Signed Object Template for the RPKI [RFC6488]. 2.1. EE Certificates The Certification Authority (CA) MUST sign only one PrefixList with each EE certificate and MUST generate a new key pair for each new PrefixList or PrefixList Opt-Out Listing. This type of EE certificate is termed a "one-time-use" EE certificate (see Section 3 of [RFC6487]). 2.2. Object Filenames A guideline for naming PrefixList is that the file name chosen in the repository be a value derived from the public key of the EE certificate. One such method of generating a publication name is described in Section 2.1 of [RFC4387]; convert the 160-bit hash of a EE's public key value into a 27-character string using a modified form of Base64 encoding, with an additional modification as proposed in Section 5, table 2, of [RFC4648]. Snijders & Huston Expires 1 October 2023 [Page 3] Internet-Draft RPKI PrefixList March 2023 3. eContentType 3.1. The PrefixList eContentType The eContentType for an PrefixList is defined as id-ct- rpkiSignedPrefixList, with Object Identifier (OID) 1.2.840.113549.1.9.16.1.TBD. This OID MUST appear within both the eContentType in the encapContentInfo object and the ContentType signed attribute in the signerInfo object (see [RFC6488]). 4. eContent 4.1. The PrefixList eContent The content of an PrefixList is a list of IP address prefixes and a single ASN. An PrefixList is formally defined as follows: Snijders & Huston Expires 1 October 2023 [Page 4] Internet-Draft RPKI PrefixList March 2023 RpkiSignedPrefixList-2023 { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) mod(0) id-mod-rpkiSignedPrefixList-2023(TBD) } DEFINITIONS EXPLICIT TAGS ::= BEGIN IMPORTS CONTENT-TYPE FROM CryptographicMessageSyntax-2010 -- in [RFC6268] { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) modules(0) id-mod-cms-2009(58) } ct-rpkiSignedPrefixList CONTENT-TYPE ::= { TYPE RpkiSignedPrefixList IDENTIFIED BY id-ct-rpkiSignedPrefixList } id-ct-rpkiSignedPrefixList OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) id-smime(16) id-ct(1) TBD } RpkiSignedPrefixList ::= SEQUENCE { version [0] INTEGER DEFAULT 0, asID ASID, prefixlist SEQUENCE (SIZE(1..2)) OF IPAddressFamily } IPAddressFamily ::= SEQUENCE { -- Note: addressFamily must be '0001'H (IPv4) or '0002'H (IPv6) -- addressFamily OCTET STRING (SIZE(2)), addresses SEQUENCE (SIZE(1..MAX)) OF IPAddress } ASID ::= INTEGER (1..4294967295) -- Note: if the ROAIPAddressFamily's addressFamily is IPv4, the -- -- IPAddress' size cannot exceed 32; conversely if addressFamily -- -- is IPv6, size can't exceed 128. -- IPAddress ::= BIT STRING (SIZE(0..128)) END 4.1.1. Version The version number of the RpkiSignedPrefixList MUST be 0. Snijders & Huston Expires 1 October 2023 [Page 5] Internet-Draft RPKI PrefixList March 2023 4.1.2. asID The Autonomous System Number contained here MUST be a contained within the set of AS Identifier resources listed by the EE certificate carried in the CMS certificates field. 4.1.3. prefixlist This field contains a SEQUENCE of IPAddressFamily. There MUST be only one instance of IPAddressFamily per unique AFI. The IPAddressFamily structure MUST NOT appear more than twice. The IPAddressFamily elements MUST be ordered in ascending order by numeric value of the addressFamily field. 4.1.3.1. Element IPAddressFamily This field contains a SEQUENCE which contains one instance of addressFamily and one instance of addresses. 4.1.3.1.1. addressFamily This field contains a OCTET STRING which is either '0001'H (IPv4) or '0002'H (IPv6). 4.1.3.1.2. addresses This field contains a SEQUENCE of elements of type IPAddress. The IPAddress type is a BIT STRING, see Section 2.2.3.8 of [RFC3779] for more information. 5. PrefixList Validation To validate an PrefixList, the RP MUST perform all the validation checks specified in [RFC6488]. In addition, the RP MUST perform the following validation steps: 1. The contents of the CMS eContent field MUST conform to all of the constraints described in Section 4. 2. The Autonomous System Identifier Delegation extension [RFC3779] MUST be present in the EE certificate contained in the CMS certificates field. 3. The AS identifier present in the RpkiSignedPrefixList eContent 'asID' field MUST be a subset of the AS Indentifiers present in the certificate extension. Snijders & Huston Expires 1 October 2023 [Page 6] Internet-Draft RPKI PrefixList March 2023 4. The Autonomous System Identifier Delegation extension MUST NOT contain "inherit" elements. 5. The IP Address Delegation Extension [RFC3779] is not used in PrefixList, and MUST NOT be present in the EE certificate. 6. Operational Considerations Multiple valid PrefixList objects could exist which contain the same asID. In such cases the union of address prefix members forms the complete set of members. It is highly RECOMMENDED that a compliant CA maintains a single PrefixList for a given asID. If an AS holder publishes a PrefixList, then relying parties SHOULD assume that the list is complete for that originating AS, and the presence of any route with the same AS as the originating AS and an address prefix that is not included in the Prefix List implies that the route has been propagated within the routing system without the permission of the originating AS. The construction of an 'allowlist' for a given EBGP session using RPKI PrefixList(s) compliments best practises [RFC7454] and rejecting RPKI-invalid BGP route announcements [RFC6811]. In other words, if a given BGP route is covered by a RPKI PrefixList, but also is "invalid" from a Route Origin Validation perspective, it is RECOMMENDED to reject the route announcement. 7. Security Considerations Relying Parties are warned that the data in an PrefixList is self- asserted by the AS holder. There is no implied authority from any IP prefix holder that grants the AS permission to originate a route for any prefixes. Such an authority is separately conveyed in the RPKI as a ROA. While a one-time-use EE certificate must only be used to generate and sign a single PrefixList object, CAs technically are not restricted from generating and signing multiple different PrefixList objects with a single key pair. Any PrefixList objects sharing the same EE certificate cannot be revoked individually. 8. IANA Considerations 8.1. SMI Security for S/MIME CMS Content Type (1.2.840.113549.1.9.16.1) IANA is requested to allocated the following in the "SMI Security for S/MIME CMS Content Type (1.2.840.113549.1.9.16.1)" registry: Snijders & Huston Expires 1 October 2023 [Page 7] Internet-Draft RPKI PrefixList March 2023 +=========+============================+=========================+ | Decimal | Description | References | +=========+============================+=========================+ | TBD | id-ct-rpkiSignedPrefixList | draft-spaghetti- | | | | sidrops-rpki-prefixlist | +---------+----------------------------+-------------------------+ Table 1 8.2. RPKI Signed Objects IANA is requested to register two OIDs in the "RPKI Signed Objects" registry [RFC6488] as follows: +============+=============================+==================+ | Name | OID | Reference | +============+=============================+==================+ | Signed | 1.2.840.113549.1.9.16.1.TBD | draft-spaghetti- | | PrefixList | | sidrops-rpki- | | | | prefixlist | +------------+-----------------------------+------------------+ Table 2 8.3. RPKI Repository Name Schemes IANA is requested to add the Signed PrefixList file extension to the "RPKI Repository Name Schemes" registry [RFC6481] as follows: +===========+============+=========================================+ | Filename | RPKI | Reference | | Extension | Object | | +===========+============+=========================================+ | .pfx | Signed | draft-spaghetti-sidrops-rpki-prefixlist | | | PrefixList | | +-----------+------------+-----------------------------------------+ Table 3 8.4. SMI Security for S/MIME Module Identifier (1.2.840.113549.1.9.16.0) IANA is requested to allocate the following in the "SMI Security for S/MIME Module Identifier (1.2.840.113549.1.9.16.0)" registry: Snijders & Huston Expires 1 October 2023 [Page 8] Internet-Draft RPKI PrefixList March 2023 +=========+=======================+=========================+ | Decimal | Description | References | +=========+=======================+=========================+ | TBD | id-mod-rpkiSignedPref | draft-spaghetti- | | | ixList-2023 | sidrops-rpki-prefixlist | +---------+-----------------------+-------------------------+ Table 4 8.5. Media Types IANA is requested to register the media type "application/rpki- prefixlist" in the "Media Types" registry as follows: 8.5.1. PrefixList Media Type Type name: application Subtype name: rpki-prefixlist Required parameters: N/A Optional parameters: N/A Encoding considerations: binary Security considerations: Carries an RPKI Signed PrefixList. This media type contains no active content. See Section 5 of draft- spaghetti-sidrops-rpki-prefixlist for further information. Interoperability considerations: N/A Published specification: draft-spaghetti-sidrops-rpki-prefixlist Applications that use this media type: RPKI operators Fragment identifier considerations: N/A Additional information: Content: This media type is a signed object, as defined in [RFC6488], which contains a payload of a list of checksums as defined in draft-spaghetti-sidrops-rpki- prefixlist. Magic number(s): N/A File extension(s): .pfx Macintosh file type code(s): N/A Person & email address to contact for further information: Job Snijders (job@fastly.com) Intended usage: COMMON Restrictions on usage: N/A Author: Job Snijders (job@fastly.com) Change controller: IETF 9. References 9.1. Normative References Snijders & Huston Expires 1 October 2023 [Page 9] Internet-Draft RPKI PrefixList March 2023 [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC2622] Alaettinoglu, C., Villamizar, C., Gerich, E., Kessens, D., Meyer, D., Bates, T., Karrenberg, D., and M. Terpstra, "Routing Policy Specification Language (RPSL)", RFC 2622, DOI 10.17487/RFC2622, June 1999, . [RFC3779] Lynn, C., Kent, S., and K. Seo, "X.509 Extensions for IP Addresses and AS Identifiers", RFC 3779, DOI 10.17487/RFC3779, June 2004, . [RFC5652] Housley, R., "Cryptographic Message Syntax (CMS)", STD 70, RFC 5652, DOI 10.17487/RFC5652, September 2009, . [RFC6481] Huston, G., Loomans, R., and G. Michaelson, "A Profile for Resource Certificate Repository Structure", RFC 6481, DOI 10.17487/RFC6481, February 2012, . [RFC6487] Huston, G., Michaelson, G., and R. Loomans, "A Profile for X.509 PKIX Resource Certificates", RFC 6487, DOI 10.17487/RFC6487, February 2012, . [RFC6488] Lepinski, M., Chi, A., and S. Kent, "Signed Object Template for the Resource Public Key Infrastructure (RPKI)", RFC 6488, DOI 10.17487/RFC6488, February 2012, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . 9.2. Informative References [RFC4387] Gutmann, P., Ed., "Internet X.509 Public Key Infrastructure Operational Protocols: Certificate Store Access via HTTP", RFC 4387, DOI 10.17487/RFC4387, February 2006, . Snijders & Huston Expires 1 October 2023 [Page 10] Internet-Draft RPKI PrefixList March 2023 [RFC4648] Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, DOI 10.17487/RFC4648, October 2006, . [RFC6268] Schaad, J. and S. Turner, "Additional New ASN.1 Modules for the Cryptographic Message Syntax (CMS) and the Public Key Infrastructure Using X.509 (PKIX)", RFC 6268, DOI 10.17487/RFC6268, July 2011, . [RFC6811] Mohapatra, P., Scudder, J., Ward, D., Bush, R., and R. Austein, "BGP Prefix Origin Validation", RFC 6811, DOI 10.17487/RFC6811, January 2013, . [RFC7454] Durand, J., Pepelnjak, I., and G. Doering, "BGP Operations and Security", BCP 194, RFC 7454, DOI 10.17487/RFC7454, February 2015, . Appendix A. Acknowledgements The authors wish to thank TBD TBD and TBD TBD for feedback. Appendix B. Example payloads B.1. Example PrefixList eContent Payload Below an example of a DER encoded PrefixList eContent is provided with annotation following the '#' character. Snijders & Huston Expires 1 October 2023 [Page 11] Internet-Draft RPKI PrefixList March 2023 $ cat << EOF | xxd -r -ps | openssl asn1parse -inform DER -i -dump 3081a202023cca30819b306d04020001306703040043ddf5030400a5fee1 030506a5feff00030400c093a8030400c22047030400c63a03030401cc02 1e030400d11800030400d11801030407d11880030404d11810030400d118 03030405d11820030402d11804030406d11840030403d11808030400d118 08302a04020002302403070120010418144e0307002001067c208c030700 200107fbfd040307002607fae00245 EOF 0:d=0 hl=3 l= 153 cons: SEQUENCE 3:d=1 hl=2 l= 2 prim: INTEGER :3CCA # AS 15562 7:d=1 hl=3 l= 146 cons: SEQUENCE 10:d=2 hl=2 l= 109 cons: SEQUENCE 12:d=3 hl=2 l= 2 prim: OCTET STRING 0000 - 00 01 .. # IPv4 AFI 16:d=3 hl=2 l= 103 cons: SEQUENCE 18:d=4 hl=2 l= 4 prim: BIT STRING 0000 - 00 43 dd f5 .C.. # 67.221.245.0/24 24:d=4 hl=2 l= 4 prim: BIT STRING 0000 - 00 a5 fe e1 .... # 165.254.225.0/24 30:d=4 hl=2 l= 5 prim: BIT STRING 0000 - 06 a5 fe ff .... # 165.254.255.0/26 0005 - ... snip ... 121:d=2 hl=2 l= 33 cons: SEQUENCE 123:d=3 hl=2 l= 2 prim: OCTET STRING 0000 - 00 02 .. 127:d=3 hl=2 l= 27 cons: SEQUENCE 129:d=4 hl=2 l= 7 prim: BIT STRING 0000 - 01 20 01 04 18 14 4e . ....N # 2001:418:144e::/47 138:d=4 hl=2 l= 7 prim: BIT STRING 0000 - 00 20 01 06 7c 20 8c . ..| . # 2001:67c:208c::/48 147:d=4 hl=2 l= 7 prim: BIT STRING 0000 - 00 20 01 07 fb fd 04 . ..... # 2001:7fb:fd04::/48 156:d=4 hl=2 l= 7 prim: BIT STRING 0000 - 00 26 07 fa e0 02 45 .&....E # 2607:fae0:245::/48 Appendix C. Implementation status This section is to be removed before publishing as an RFC. This section records the status of known implementations of the protocol defined by this specification at the time of posting of this Internet-Draft, and is based on a proposal described in RFC 7942. The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs. Please note that the listing of any individual implementation here does not imply endorsement by the IETF. Furthermore, no effort Snijders & Huston Expires 1 October 2023 [Page 12] Internet-Draft RPKI PrefixList March 2023 has been spent to verify the information presented here that was supplied by IETF contributors. This is not intended as, and must not be construed to be, a catalog of available implementations or their features. Readers are advised to note that other implementations may exist. According to RFC 7942, "this will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature. It is up to the individual working groups to use this information as they see fit". * Example .pfx files were created by Job Snijders with the use of asn1c and OpenSSL. Authors' Addresses Job Snijders Fastly Amsterdam Netherlands Email: job@fastly.com Geoff Huston APNIC 6 Cordelia St South Brisbane QLD 4101 Australia Email: gih@apnic.net Snijders & Huston Expires 1 October 2023 [Page 13]