Commit Graph

2165 Commits

Author SHA1 Message Date
Martin Hoffmann 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
Martin Hoffmann b6882216a5 Log a missing certificate under the CA cert URI. (#864)
This PR changes the logged string for the case of a missing manifest to
start with the CA certificate’s URI and mention the manifest URI after.
2023-05-30 11:54:40 +02:00
Martin Hoffmann 78ba16449d Update changelog. 2023-05-19 09:24:14 +02:00
Martin Hoffmann 7321b6adb7 Fix allowed ASN format in validity JSON input. (#861)
The PR restores the ability to parse ASNs in JSON input to the validity
command as either a string or a number.
2023-05-19 09:21:48 +02:00
Martin Hoffmann 953671cd46 Output item delimiters per payload type. (#858) 2023-05-01 14:21:04 +02:00
Martin Hoffmann 752c8a2f0e Increase serial number when constructing delta. (#857)
This PR fixes a bug in the new delta creation code which didn’t
increase the serial number in the produced delta.
2023-05-01 13:52:34 +02:00
Martin Hoffmann 2b3c9d197e Update changelog. 2023-04-28 11:27:03 +02:00
Martin Hoffmann 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
Martin Hoffmann ee6a9d619c Refer to (standalone) EE certs as router certs. (#854)
This PR changes renames functions and attributes etc. that refer to
standalone end-entity certificates to refer to them as ‘router certs’ to
better distinguish them from EE certificates that are part of signed
objects.

The only external change is in the HTTP status API where the `validEECerts`
member has been renamed to `validRouterCerts` but the old name has been
retained for now.

This is a breaking change.
2023-04-28 11:23:27 +02:00
ximon18 0135eb9bb6 Revert "Sanity check of pending Plout"
This reverts commit c9dbe0c81a.
2023-04-26 09:01:27 +00:00
Ximon Eighteen c9dbe0c81a Sanity check of pending Plout 2023-04-26 10:58:48 +02:00
Alex Band 320f4c7e10 Merge pull request #851 from NLnetLabs/rustversion
Automate minimum Rust version
2023-04-25 16:43:44 +02:00
Alex Band 5bba76c511 Add f 2023-04-25 16:33:34 +02:00
Alex Band 278a19eeb5 use rst_epilog 2023-04-25 16:29:20 +02:00
Alex Band 77ada547c4 Automate minimum Rust version 2023-04-25 16:01:19 +02:00
Martin Hoffmann 6ba213918b Update changelog. 2023-04-25 12:47:46 +02:00
Martin Hoffmann 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
Maarten Aertsen d9191fd411 Manual: Improve description of validity checker. (#846) 2023-03-29 10:52:12 +02:00
ximon18 fd75d2384d Fix failing Docker build caused by 'requires rustc 1.63.0 or newer' by upgrading Alpine to 3.17 which includes rust 1.64. 2023-03-27 16:33:21 +02:00
Martin Hoffmann 3046704f0b Update changelog. 2023-03-27 13:21:32 +02:00
Martin Hoffmann 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
dependabot[bot] cc48102a7a Bump tokio from 1.22.0 to 1.24.2 (#837) 2023-03-27 11:54:54 +02:00
Alex Band 0c163b024e Update inode considerations 2023-03-27 11:45:33 +02:00
Ximon Eighteen a1a4c7f69e Add package for RHEL 9 like OSs. (#838) 2023-03-27 11:39:42 +02:00
Martin Hoffmann 63511d0677 Print the error type if the RTR server exists. (#839) 2023-03-27 11:38:10 +02:00
Martin Hoffmann 294d716083 Clippy-suggested fixes. (#841) 2023-03-27 11:26:21 +02:00
Alex Band df4b63cbbe Fix Twitter, add Mastodon badge 2023-01-24 10:45:00 +01:00
Alex Band 3a3e507b28 Update Twitter badge 2023-01-24 10:35:55 +01:00
Alex Band 5077fb6602 Add Mastodon link 2023-01-04 16:19:06 +01:00
Alex Band 6dfd3ce659 Add Mastodon shield 2023-01-04 15:55:23 +01:00
Martin Hoffmann b63fa22859 Bump version. 2023-01-04 12:16:02 +01:00
Martin Hoffmann 3f647706cf Release 0.12.1 'Plan uw reis in de app.' (#835)
There are no changes since 0.12.1-rc2.
v0.12.1
2023-01-04 12:09:37 +01:00
Martin Hoffmann 68b7dc72c2 Bump version. 2022-12-13 14:09:52 +01:00
Martin Hoffmann 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])
v0.12.1-rc2
2022-12-13 14:04:40 +01:00
Martin Hoffmann b47482c358 Update changelog. 2022-12-13 13:38:15 +01:00
Martin Hoffmann 22546b068c Fix the loop in reading private keys. (#832) 2022-12-13 13:37:39 +01:00
Martin Hoffmann d8bdb12692 Update changelog. 2022-12-13 10:57:39 +01:00
Martin Hoffmann 3353592756 Accept both PRIVATE KEY and RSA PRIVATE KEY items in PEM files. (#831)
This commit changes the code that reads the private key file for both HTTP
and RTR to accept both the PRIVATE KEY items from PKCS#8 and RSA PRIVATE KEY
items from PKCS#1.
2022-12-13 10:54:32 +01:00
Martin Hoffmann 3be00089fd Bump version. 2022-12-05 15:59:27 +01:00
Martin Hoffmann 6eadecfeab Prepare for release 0.12.1-rc1. (#828) v0.12.1-rc1 2022-12-05 15:41:28 +01:00
Martin Hoffmann b8ed6cfbe4 Update dependencies. (#827) 2022-12-05 15:13:20 +01:00
Martin Hoffmann 238814549e Gracefully deal with failing timestamp conversions. (#826)
Co-authored-by: Luuk Hendriks <mail@luukhendriks.eu>
2022-12-05 14:15:47 +01:00
Martin Hoffmann ce5121007a Update changelog. 2022-12-01 11:39:37 +01:00
Ximon Eighteen 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
Sander van Delden 5415d1e310 fix(http_listener): set correct error message on missing tls options (#824)
This commit fixes the error messages printed when the http-tls-key or
http-tls-cert options are missing to actually refer to HTTP rather than
RTR.
2022-12-01 11:14:42 +01:00
Martin Hoffmann 3be86c865e Chdir to chroot if no working dir is given. (#823)
This commit changes the behavior on Unix by setting the working directory to
the chroot directory if a chroot is requested but no working directory
is explicitly provided.
2022-12-01 11:11:48 +01:00
Martin Hoffmann 5f369eca93 Update changelog. 2022-11-25 11:14:15 +01:00
Martin Hoffmann c78deeaf64 Only set extra-tals-dir command line option if present. (#821) 2022-11-25 11:10:27 +01:00
Ximon Eighteen 5601e9df9f Follow move of reusable pkg workflow to new ploutos repo. 2022-11-17 23:07:41 +01:00
Alex Band 631f050394 Typo fix 2022-11-11 13:50:50 +01:00