1
0
mirror of https://github.com/NLnetLabs/routinator.git synced 2024-05-19 06:50:04 +00:00

290 Commits

Author SHA1 Message Date
b4897b7c1c Update dependencies. (#879)
This PR updates the dependencies:

  o  since toml has changed too much, switches to toml_edit,
  o  with scoped threads and once writable cells now available in std, it
     also drops the crossbeam-utils and once_cell crates.

The PR also increases the minimum supported Rust version to 1.70. This makes
it a breaking change.
2023-07-11 10:28:07 +02:00
62a7bead93 Update rpki-rs. (#876)
This PR updates the rpki-rs crate to version 0.17.1.

This allows dropping the dependency on the base64 crate.
2023-07-06 11:28:12 +02:00
52a658dbd2 Move enabling of ASPA behind a feature flag. (#873)
This PR moves the config and command line options to enable ASPA behind a
feature flag aspa which is not part of the default features. All the actual
ASPA code is still there, it is just now impossible to enable ASPA without
the flag.

This change is necessary because the ASPA object format and RTR PDUs are
currently changing and we want to avoid people accidentally using a draft
version that is incompatible with the final standard. The feature will be
removed as soon as the standardization process has advanced sufficiently to
avoid this risk.

The PR removes the enable-aspa config and command line options from the
manual page.


---------

Co-authored-by: Alex Band <alex@nlnetlabs.nl>
2023-07-03 14:04:52 +02:00
6eda6ef54e Fix rpki-rs dependency. 2023-06-27 10:39:00 +02:00
95361b471a Drop dependency on routecore. (#871)
This PR removes the dependency on routecore and uses the types
defined in rpki-rs instead.
2023-06-26 13:21:47 +02:00
13ebc194e4 Increase minimal Rust version to 1.65. (#869) 2023-06-01 11:17:30 +02:00
4e86a95702 Add a notification endpoint to the json-delta protocol. (#863)
The PR adds a new endpoint /json-delta/notify that waits with responding
until new data is available and then returns a JSON object with the session
ID and serial number.

---------

Co-authored-by: Alex Band <alex@nlnetlabs.nl>
2023-05-31 14:45:21 +02:00
a5ea731a6e Rewrite logging. (#859)
This PR implements all log handling with the exception of actual syslog in
Routinator itself. It also implements support for log rotation when logging
into files by re-opening the log file when receiving SIGUSR2.

Error handling for logging is now such that if trying to log to file or
syslog fails, Routinator will exit. It will also exit if it receives SIGUSR2
and can’t open the log file.

The motivation for this is that the log is used by many people to determine
issues with the RPKI repositories, so silently not having logs seems bad.
Also, not being able to log is a good indication for bigger problems to
come.

---------

Co-authored-by: Luuk Hendriks <mail@luukhendriks.eu>
2023-05-30 12:05:16 +02:00
52c9527775 Switch to rpki-rs 0.16.1 and downgrade to Rust 1.63. (#853)
This PR switches the dependencies on rpki-rs to the released 0.16.1 and on
routecore to 0.3.1. As a consequence, the minimum required Rust version can
be lowered to 1.63.
2023-04-28 11:26:29 +02:00
124616e75b Add support for ASPA. (#847)
This PR adds support for ASPA to Routinator.

The PR adds a new config option ‘enable_aspa’ that is false by default. Only
if it is set to true will ASPAs be added to the payload set.

It adds support for processing ASPA objects to the engine, adds ASPA related
metrics, and completely refactors the payload storage to be able to deal
with the differing semantics of ASPA payload.

The PR adds a new "aspa" member to the jsonext format and the HTTP delta endpoint. It adds new members to the API status and adds new Prometheus
metrics.

It increases the minimum required Rust version to 0.65.

---------

Co-authored-by: Alex Band <alex@nlnetlabs.nl>
Co-authored-by: Luuk Hendriks <mail@luukhendriks.eu>
2023-04-25 12:37:13 +02:00
c085dccace Bump minimum Rust version to 1.64 and update dependencies. (#845)
This PR updates the dependencies and, in order to do that, needs to bump the
minimal supported Rust version to 1.64.
2023-03-27 13:20:04 +02:00
cc48102a7a Bump tokio from 1.22.0 to 1.24.2 (#837) 2023-03-27 11:54:54 +02:00
b63fa22859 Bump version. 2023-01-04 12:16:02 +01:00
3f647706cf Release 0.12.1 'Plan uw reis in de app.' (#835)
There are no changes since 0.12.1-rc2.
2023-01-04 12:09:37 +01:00
68b7dc72c2 Bump version. 2022-12-13 14:09:52 +01:00
cc37f14cd1 Release 0.12.1-rc2. (#833)
Bug Fixes

* Allow private keys prefixed both with `BEGIN PRIVATE KEY` and
  `BEGIN RSA PRIVATE KEY` in the files referred to by `http-tls-key` and
  `rtr-tls-key` configuration options. ([#831], [#832])
2022-12-13 14:04:40 +01:00
3be00089fd Bump version. 2022-12-05 15:59:27 +01:00
6eadecfeab Prepare for release 0.12.1-rc1. (#828) 2022-12-05 15:41:28 +01:00
238814549e Gracefully deal with failing timestamp conversions. (#826)
Co-authored-by: Luuk Hendriks <mail@luukhendriks.eu>
2022-12-05 14:15:47 +01:00
9138cb097a Upgrade reusable packaging workflow (#816)
This commit upgrades the pkg workflow to use the latest version of the
Ploutos reusable packaging workflow. See PR #816 for futher details.
2022-12-01 11:37:38 +01:00
b5ea696ff5 Bump version. 2022-11-10 13:13:54 +01:00
955795fb9f Release 0.12.0 ‘Brutalism and Gardening.’ (#819) 2022-11-10 13:01:55 +01:00
7c6254b0b9 Add missing rsync install-time dependency for cross-compiled DEBs. (#818) 2022-11-10 12:01:10 +01:00
0ceed64e81 Bump version. 2022-11-02 14:59:44 +01:00
080b25c9b0 Prepare for release 0.12.0-rc1. (#815) 2022-11-02 14:51:55 +01:00
a1ddd13f46 Update dependencies. (#814) 2022-11-02 14:25:25 +01:00
22de300fa8 Restructure TAL configuration and remove init command. (#796)
This commit restructures the TAL configuration in response to the dropped
requirement to opt into the ARIN TAL.

Routinator will now use the bundled RIR TALs directly unless told otherwise
by the new --no-rir-tals command line and config option. The additional
bundled TALs can be added via the new --tal command line and config option.
Additionally, the TAL directory can still be used via the --extra-tals-dir
option. The tal-dir option has been removed but will still be accepted – and
ignored – in the config file only.

The init command has been removed.

Co-authored-by: Alex Band <alex@nlnetlabs.nl>
Co-authored-by: ximon18 <3304436+ximon18@users.noreply.github.com>
Co-authored-by: Luuk Hendriks <mail@luukhendriks.eu>
2022-11-02 11:44:16 +01:00
f5ca39212b Convert command line parsing to clap’s derive API. (#795) 2022-10-10 10:20:59 +02:00
280daa91cd Update clap to version 4. (#791) 2022-10-04 14:08:27 +02:00
cc39bec822 Increase minimal Rust version to 1.60.0. (#792) 2022-10-03 16:04:14 +02:00
2d221146dc Migrate to NLnetLabs reusable packaging workflow (#780)
This commit replaces the current Packaging pkg.yml and Packaging Docker pkg-docker.yml workflows with a much simpler Packaging pkg.yml workflow that outsources the behaviour to a new equivalent reusable workflow defined in the NLnet Labs organisation wide https://github.com/NLnetLabs/.github repository.

This commit also adds Docker ARMv6, ARMv7 and ARM64 multi-arch support, ARMv6 DEB support, fixes a couple of RPM issues (postuninst script fails to run, user already exists on re-install), and resolves an unattended-upgrade TAR error.

Resolves #763, #773, #774, and #783.
2022-09-15 13:01:17 +02:00
b8c1bcb34d Use new cargo generate metadata overwrite feature (#759)
Upgrade cargo-generate-rpm and remove no longer needed workaround.
2022-08-17 15:30:13 +02:00
245e1b282a Correct a typo in Cargo.toml (#766) 2022-08-15 14:57:17 +02:00
540421de97 Adjust error handling to rpki-rs 0.15. (#755) 2022-08-09 15:47:09 +02:00
d8481b3639 Switch to Rust edition 2021. (#760) 2022-08-08 16:56:22 +02:00
3029722632 Bump version. 2022-04-20 13:37:40 +02:00
a5e347dfa5 Prepare for release 0.11.2. (#748) 2022-04-20 13:14:36 +02:00
6610aa5c32 Bump version. 2022-04-07 13:10:14 +02:00
236f44487a Prepare for release 0.11.1. (#746) 2022-04-07 13:06:09 +02:00
dbe7a4d22b Bump version. 2022-04-04 14:46:22 +02:00
f0afc8a2ac Prepare for release 0.11.1-rc1. (#744) 2022-04-04 14:41:26 +02:00
b2169355d4 Upgrade dependencies. 2022-04-04 14:15:31 +02:00
4a91e4c4eb Exclude ui feature for docs.rs. (#742) 2022-04-04 11:00:42 +02:00
b1e2aa033a Don’t include .github in Cargo package. 2022-03-31 12:35:27 +02:00
3d38261c09 Bump version. 2022-02-28 12:20:13 +01:00
8924496d1c Prepare for release 0.11.0. (#725) 2022-02-28 12:07:51 +01:00
e2ae01eed7 Bump version. 2022-02-21 15:49:01 +01:00
dae0644e36 Prepare for release 0.11.0-rc2. (#721) 2022-02-21 15:41:52 +01:00
1169593171 Fixes to DEB and RPM packaging (#717)
* Fix the logic for ensuring that RPMs built for release candidates have a tilda (~) in the package version so that (a) they are considered older than the final non-release candidate version when it is published and (b) the packaging process publishes them in the -proposed repo and not the production repo. This also fixes the wrong version number (with tilda instead of dash) being used in therelease tag URL included in DEB debian/changelog file.

* Don't cache the target directory as subsequent builds can end up with both new and old content in the dir such as an old RPM plus the new one!
2022-02-21 15:13:19 +01:00
5af3ff5454 Bump version. 2022-02-10 11:52:00 +01:00