Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e497801
refactor: streamlined upgrade
jot2re Feb 19, 2026
2565dd9
Update core/service/src/engine/migration.rs
jot2re Feb 19, 2026
fe522b5
Update core/service/src/engine/migration.rs
jot2re Feb 19, 2026
d13c7e4
Update core/service/src/engine/migration.rs
jot2re Feb 19, 2026
be139a2
fix: copilot test issue
jot2re Feb 19, 2026
f5fb963
Merge branch 'main' into tore/refactor/update-prss-upgrade-logic
jot2re Feb 19, 2026
07e974a
Update core/service/src/engine/migration.rs
jot2re Feb 19, 2026
c50af69
test: added extra tests as requested by Kelong
jot2re Feb 19, 2026
f8e28f4
docs: removed obsolete comment
jot2re Feb 19, 2026
91e897b
test: added test for epoched and non epoched data
jot2re Feb 23, 2026
7973229
fix: refactor test
jot2re Feb 23, 2026
213fb58
fix: bug with kms server
jot2re Feb 24, 2026
3173d4d
fix: get number of parties and threshold from context
jot2re Feb 25, 2026
7809670
chore: don't fail in case prss is missing
jot2re Feb 25, 2026
517b006
test: fix
jot2re Feb 25, 2026
d9eea41
Merge branch 'main' into tore/refactor/update-prss-upgrade-logic
jot2re Feb 25, 2026
f2e2b5b
chore: forward backported changes to support backup of legacy prss
jot2re Feb 25, 2026
8238486
fix: ensure we cannot redo prss if the epoch already exists
jot2re Feb 25, 2026
053e258
refactor: renamed future migrate endpoint
jot2re Feb 25, 2026
259d35d
fix: lint and method name
jot2re Feb 25, 2026
af3b648
Update core/service/src/engine/migration.rs
jot2re Feb 25, 2026
ef4956a
Update core/service/src/engine/migration.rs
jot2re Feb 25, 2026
ad59448
Merge branch 'main' into tore/refactor/update-prss-upgrade-logic
jot2re Feb 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions core/service/src/bin/kms-server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ use kms_lib::{
engine::{
base::BaseKmsStruct, centralized::central_kms::RealCentralizedKms,
context::SoftwareVersion, context_manager::create_default_centralized_context_in_storage,
migration::migrate_fhe_keys_v0_12_to_v0_13, run_server,
threshold::service::new_real_threshold_kms,
migration::migrate_to_0_13_1, run_server, threshold::service::new_real_threshold_kms,
},
grpc::MetaStoreStatusServiceImpl,
vault::{
Expand Down Expand Up @@ -512,9 +511,22 @@ async fn main_exec() -> anyhow::Result<()> {
Some(_) => KMSType::Threshold,
None => KMSType::Centralized,
};
migrate_fhe_keys_v0_12_to_v0_13(&mut private_storage, kms_type)
.await
.inspect_err(|e| tracing::warn!("Could not migrate legacy FHE keys: {e}"))?;
migrate_to_0_13_1(
&mut private_storage,
kms_type,
core_config
.threshold
.as_ref()
.map(|t| t.threshold)
.expect("Threshold configuration must be provided for migration"),
core_config
.threshold
.as_ref()
.and_then(|t| t.peers.as_ref().map(|p| p.len()))
.expect("Peer configuration must be provided for migration"),
)
.await
.expect("Could not complete migration: {e}");

let private_keychain = OptionFuture::from(
core_config
Expand Down
Loading
Loading