Skip to content

Commit 2e15ba4

Browse files
author
Tim Bruijnzeels
committed
Skip cleanup of redundant ROAs - release 0.8.2
1 parent 9b58437 commit 2e15ba4

File tree

6 files changed

+18
-158
lines changed

6 files changed

+18
-158
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
# Note: some of these values are also used when building Debian packages below.
33
name = "krill"
4-
version = "0.8.2-pre"
4+
version = "0.8.2"
55
edition = "2018"
66
authors = [ "The NLnet Labs RPKI team <[email protected]>" ]
77
description = "Resource Public Key Infrastructure (RPKI) daemon"

Changelog.md

+12
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
Please see [here](https://github.com/NLnetLabs/krill/projects?query=is%3Aopen+sort%3Aname-asc)
44
for planned releases.
55

6+
## 0.8.2 'Can't touch this'
7+
8+
As it turned out the previous release (0.8.1) still insisted on cleaning up 'redundant ROAs'
9+
when migrating to that version. This clean-up would not cause any issues with regards to the
10+
validity of your announcements. However, we realised in 0.8.1 that users should be the once
11+
to decide whether they want to have extra ROAs or not. Therefore this clean-up should have
12+
been removed then.
13+
14+
This release removes this clean-up and introduces no other changes. We recommend that users
15+
who did not upgrade already upgrade to this release. However, if you already successfully
16+
upgraded to 0.8.1, then upgrading to this release is not needed.
17+
618
## 0.8.1 'The Gentle Art'
719

820
The ROA guidance introduced in release 0.8.0 was more strict than it should be. This release

src/commons/eventsourcing/store.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ pub enum KeyStoreVersion {
5858
V0_8,
5959
V0_8_1_RC1,
6060
V0_8_1,
61+
V0_8_2,
6162
}
6263

6364
impl KeyStoreVersion {
6465
pub fn current() -> Self {
65-
KeyStoreVersion::V0_8_1_RC1
66+
KeyStoreVersion::V0_8_2
6667
}
6768
}
6869

src/upgrades/mod.rs

+2-18
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ use crate::daemon::ca::CertAuth;
1515
use crate::daemon::krillserver::KrillServer;
1616
use crate::pubd::Repository;
1717
use crate::upgrades::fix_info_last_event_0_8_0::FixInfoFiles;
18-
use crate::upgrades::roa_cleanup_0_8_0::RoaCleanupError;
1918

2019
pub mod fix_info_last_event_0_8_0;
2120
pub mod pre_0_6_0;
22-
pub mod roa_cleanup_0_8_0;
2321

2422
//------------ UpgradeError --------------------------------------------------
2523

@@ -40,9 +38,6 @@ pub enum UpgradeError {
4038
#[display(fmt = "Cannot load: {}", _0)]
4139
CannotLoadAggregate(Handle),
4240

43-
#[display(fmt = "Cannot clean up redundant roas: {}", _0)]
44-
RoaCleanup(RoaCleanupError),
45-
4641
#[display(fmt = "{}", _0)]
4742
Custom(String),
4843
}
@@ -81,12 +76,6 @@ impl From<io::Error> for UpgradeError {
8176
}
8277
}
8378

84-
impl From<RoaCleanupError> for UpgradeError {
85-
fn from(e: RoaCleanupError) -> Self {
86-
UpgradeError::RoaCleanup(e)
87-
}
88-
}
89-
9079
//------------ UpgradeStore --------------------------------------------------
9180

9281
/// Implement this for automatic upgrades to key stores
@@ -112,13 +101,8 @@ pub fn pre_start_upgrade(work_dir: &PathBuf) -> Result<(), UpgradeError> {
112101
}
113102

114103
/// Should be called right after the KrillServer is initiated.
115-
pub async fn post_start_upgrade(work_dir: &PathBuf, server: &KrillServer) -> Result<(), UpgradeError> {
116-
let ca_store: AggregateStore<CertAuth> = AggregateStore::new(work_dir, "cas")?;
117-
if ca_store.get_version()? < KeyStoreVersion::V0_8_0_RC1 {
118-
info!("Will clean up redundant ROAs for all CAs and update version of storage dirs");
119-
roa_cleanup_0_8_0::roa_cleanup(server).await?;
120-
}
121-
104+
pub async fn post_start_upgrade(_work_dir: &PathBuf, _server: &KrillServer) -> Result<(), UpgradeError> {
105+
// Put future post start upgrade actions here
122106
Ok(())
123107
}
124108

src/upgrades/roa_cleanup_0_8_0.rs

-137
This file was deleted.

0 commit comments

Comments
 (0)