Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust ASPA to new drafts. #264

Merged
merged 5 commits into from
Jul 3, 2023
Merged

Adjust ASPA to new drafts. #264

merged 5 commits into from
Jul 3, 2023

Conversation

partim
Copy link
Member

@partim partim commented Jun 26, 2023

This PR changes the ASPA implementation to the new versions of the Internet drafts.

It changes the ASPA object in the repository module to profile draft version 15. For RTR, it drops the address family attribute but sticks to the PDU format in the old draft and just always sets the AFI flags to zero.

Because the provider AS set is now essentially an encoded version of SmallAsnSet, the PR also adds a conversion from the former into the latter that omits the unnecessary checks.

The code now also enforces a non-empty provider AS set upon parsing.

@partim partim requested a review from timbru June 26, 2023 09:32
Copy link
Contributor

@timbru timbru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. It may be a while before I can use this in Krill - holidays and all - but I expect no issues.

@partim partim merged commit 803a6bf into main Jul 3, 2023
@partim partim deleted the modified-aspa branch July 3, 2023 12:10
partim added a commit that referenced this pull request Jul 5, 2023
Breaking changes

* Dropped dependency on _routecore_ again and moved all used types into
  _rpki-rs_. The new module `resources` contains the AS and IP address
  resources. The BGPsec key identifier is now an actual type in
  `crypto::keys`. ([#261])
* Changed the implementation of ASPA objects to conform with version 15
  of the profile draft. ([#264], [#265])
* Changed the ASPA RTR PDU to not use the AFI flags any more and always
  set it to 0. ([#264])

New

* Made `rtr::server::NotifyReceiver` public. ([#259])
* Added an exclusion check to SLURM’s router key filters and provided
  type-specific check methods for the other types. ([#260])
* Added a new module `util::base64` that provides Base 64 encoding of data
  for various scenarios. ([#263])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants