feat: add RPKISPOOL data source with CCR format parsing#32
Merged
Conversation
Add support for loading historical RPKI data from RPKISPOOL archives (draft-snijders-rpkispool-format). Parses CCR files (draft-ietf-sidrops-rpki-ccr) from the rpkispool .tar.zst archive, which contains all validated ROA and ASPA payloads for one vantage point snapshot. - Add `bcder` and `zstd` dependencies under the `rpki` feature flag - Implement CCR DER parser using `bcder` for VRPs and VAPs extraction - Add `RpkiSpoolsCollector` enum with three mirrors (sobornost.net, attn.jp, kerfuffle.net) - Add `RpkiSpools` variant to `HistoricalRpkiSource` - Expose public `parse_ccr()` and `parse_rpkispools_archive()` functions - Add example demonstrating RPKISPOOL lookup for 1.1.1.0/24
Add BgpkitCommons::rpki_lookup_aspa(customer_asn) to look up ASPA records by customer ASN. Extend the rpkispools example to demonstrate ASPA lookup for AS400644.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.tar.zstarchives usingbcderfor DER decodingRpkiSpoolsCollectorwith three mirrors: sobornost.net, attn.jp, kerfuffle.net.roaDER files from initstate archivesbcder(DER parsing) andzstd(decompression), both behind therpkifeature flagTest plan
test_collector_urls,test_collector_from_str,test_default_collector)test_from_rpkispools,test_parse_ccr_from_stream—#[ignore])cargo clippy --all-features -- -D warningspassescargo run --example rpkispools --features rpki