Commit Graph
1027 Commits
Author SHA1 Message Date
Martin HoffmannandGitHub 3253d3c4b6 Reformat to 78 character lines. (#1218) 2024-06-26 10:28:34 +02:00
Martin HoffmannandGitHub 7f6ceadb7c Upgrade to edition 2021. (#1217)
This PR upgrades the codebase to Rust edition 2021.

This mostly just means removing a number of use statements for TryFrom and
TryInto. There are no actual code changes.
2024-06-25 16:20:40 +02:00
Martin HoffmannandGitHub 45eb8f857b Fix Clippy warnings and enable Clippy in CI. (#1216)
This PR fixes all warnings from nightly Clippy as of today and enables a
Clippy run in the CI workflow for the stable channel with all features
enabled.
2024-06-25 15:16:15 +02:00
Martin HoffmannandGitHub 24a1d3d41c Fix an infinite recursion in PKCS11 error conversion. (#1215)
This PR fixes a potential endless recursion when converting an error in the PKCS11 signer.
2024-06-25 14:12:01 +02:00
Martin HoffmannandGitHub 5a86110a92 Upgrade cryptoki to 0.7. (#1212)
This PR upgrades cryptoki to 0.7. It doesn’t take advantage of the changes
yet. This will happen in follow-up PRs.
2024-06-24 17:53:19 +02:00
Martin HoffmannandGitHub fff64ce16f Update hyper to 1.3.1 and reqwest to 0.12.5. (#1211)
This PR updates hyper, reqwest, and the rustls stack to their current versions.
2024-06-24 17:32:43 +02:00
Martin HoffmannandGitHub 3837a4d4a1 Upgrade most dependencies. (#1202)
This PR updates the dependencies that don’t require complex changes.
2024-06-24 17:04:34 +02:00
Martin HoffmannandGitHub d61c6913a8 Don’t try to revoke child keys for non-existing resource classes. (#1208)
This PR adds a check whether the resource class exists before applying a
“child revoke key” command. This fixes a crash where revoking a parent
removed a resource class which then lead to children revoking keys for that
now non-existing resource class. The change will cause to simply send an OK
response to such requests.
2024-06-17 17:54:19 +02:00
Tim BruijnzeelsandGitHub ea72c1ec0f Fix locking when downloading RIS dump files (#1177) (#1179)
This PR does not lock the 'seen' announcements while downloading new RIR dump
files. This prevented read access to the announcement during download. This
change postpones getting the write lock until after the download is
completed, so it only keeps it for the shortest possible time.
2024-06-12 12:10:22 +02:00
Martin HoffmannandGitHub 9311cca221 Remove deprecated chrono functions. (#1199)
This PR replaces a now deprecated use of chrono with its current equivalent.
2024-06-12 12:04:19 +02:00
Tim BruijnzeelsandGitHub 244e71c699 Allow overriding the TA manifest number. (#1178)
This PR allows overriding the initial manifest number, either by specifying
--initial_manifest_number if the CLI is used to initialise the TA signer, or
by including ta_mft_nr_override: #nr in the ImportTa JSON.

It also allows overriding the TA manifest number when signing a TA proxy
request by specifying --ta_mft_number_override in the CLI.
2024-06-11 17:28:17 +02:00
Tim BruijnzeelsandGitHub daad29810b Don't create an RRDP delta for publishers entries without content #1180 (#1181)
This PR prevents empty RRDP deltas from being produced by not staging empty
publication deltas for the publisher and skipping them in the decision
process to decide whether to produce a new RRDP delta.

Krill CAs do not send empty publication deltas but empty RRDP deltas were
still produced possibly because non-Krill publishers sent them.
2024-06-11 12:56:19 +02:00
Tim BruijnzeelsandGitHub 0ede4730a6 Update documentation and comment. (#1091) 2024-01-09 12:49:26 +01:00
ximon18andTim Bruijnzeels 6de97a3b8b Updated to krill-ui v0.8.0. 2023-12-06 09:55:57 +01:00
Tim Bruijnzeels ae90c4f88c Update dependencies and code to allow using rpki-rs 0.18.0 (#1166)
* Update rpki-rs, backoff, tokio_rustls, and include rustls_pemfile
* Clean up extern crate statements
2023-12-06 09:55:57 +01:00
Tim Bruijnzeels ab7a3a592f Ignore corrupt status files and use default. 2023-12-06 09:55:57 +01:00
Tim Bruijnzeels 8dcbc193e9 Fix aspa migration issues (#1163)
* Pre 0.14.x AspaDefinitionUpdates also used plain Asn for "remove"
* Fix handling of skipped ASPA migration commands, and ASPA events in other commands.
* Fix upgraded for 0.9.6 (and use better testdata)
* Improve test data
2023-12-06 09:55:57 +01:00
Tim Bruijnzeels 0be1b15a96 Skip surplus commands when migrating. #1147 2023-11-06 13:17:14 +01:00
Tim Bruijnzeels 62994f8b57 Skip surplus directories in migration #1147 2023-11-03 11:57:31 +01:00
Tim Bruijnzeels e4e68ecdb0 Fix test on slow CI machines. 2023-10-27 09:17:07 +02:00
Sander SteffannandTim Bruijnzeels cd6c165b70 Fix prometheus type for krill_cas_bgp_roas_total 2023-10-26 16:55:30 +02:00
Tim Bruijnzeels 0cf0b3800a Move test files so they are not on .gitignore. 2023-10-23 12:00:46 +02:00
Tim Bruijnzeels 25a777f90a Remove trace log statement. 2023-10-23 12:00:46 +02:00
Tim Bruijnzeels 9102a16352 Migrate old ASPA configs 2023-10-23 12:00:46 +02:00
Tim Bruijnzeels 04cbfdadea Depend on latest rpki-rs with ASPA v1. 2023-10-23 12:00:46 +02:00
Tim Bruijnzeels 4f6ff8b30c Show ROA delete when no BGP info is available (#1139)
Updates to krill-ui 463bd30a75ff53c661bce6e40d47060478ba4f94
2023-10-18 09:33:04 +02:00
Tim Bruijnzeels 2ad806c23c Reschedule BGP announcements download immediately after restart. #1137 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 7f174f9b48 Add test for ImportChild json format. 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 1d83534000 Use alias for backward compatibility. 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels ec42abed0a Import delegated ca 1133 (#1136)
* Add mapping to support that parent and child use different rc names.
* Export child (so that we can test importing it).
* Import child.
* Force parent refresh in resource check loop.
2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 375ff4dcad Use correct timing for issued cert under TA. (related #1097) 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 8c4c397412 Check for init command to conclude aggregate exists (ignore empty dir). 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 1feeccae73 Ignore leftover CaObjects (see #1103) when republishing CAs. 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 669ce89262 Fix clippy warnings. 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 97e87c0d57 Do not reschedule start task while it's running. 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 4f4eafdfd3 Crash Krill if a fatal error is encountered by the task scheduler. (#1132)
* Crash Krill if a fatal error is encountered by the task scheduler.
* Do not finish running task when just adding a new task.
2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 9d55e12826 Improve log levels. 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 801fb28b69 Rename inner error type to be more clear. 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 23dc4e16da Fix KeyValueStore::is_empty for disk. 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels bfc1eb0a1b Skip all tasks for CAs that are removed. 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels c7c6c35014 Improve error if version of data is higher than Krill version. #1115 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 816469eb8c Let testbed automatically renew TA manifest and CRL #1095 (#1124) 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 1d7c424f74 Remove library that is no longer used. 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels c046a95422 Ta timing config #1097 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 87cb814408 Fix delete ca #1103 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels c907478059 Remove no longer needed 'always_recover_data' function #1086 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels d03022f495 Use kvx based transactional task queue #1090 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 0417ccd04e Do not show announcement disallowed by AS0 ROA. 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels e1bd433a3d Show delete button for AS0 ROA covering announcement(s). 2023-10-17 15:31:11 +02:00
Tim Bruijnzeels 2817033248 Kvstore tx (#1110)
* Use transactions for all (non-migration) functions in Krill KeyValueStore
* Reorder functions.
2023-10-17 15:31:11 +02:00