Implement guarded Linux updater runtime and compatible baseline tooling
Rust development slice / linux (push) Failing after 8s

This commit is contained in:
2026-11-16 15:25:46 +01:00
parent 6497c79a91
commit 96a2b6e5ae
44 changed files with 6986 additions and 1024 deletions
+12 -4
View File
@@ -222,7 +222,8 @@ pub fn context(
let key = update::job_health_public_key(&job).map_err(anyhow::Error::msg)?;
let (header, journal) =
update::verify_inflight_proof(proof, key).map_err(anyhow::Error::msg)?;
if journal.phase() != Phase::ServicesStarted {
let rollback = journal.phase() == Phase::RollbackServicesStarted;
if journal.phase() != Phase::ServicesStarted && !rollback {
return Ok(None);
}
ensure!(
@@ -241,7 +242,8 @@ pub fn context(
.context("UPDATE_HEALTH_SERVICES_STARTED")?,
)?;
ensure!(
matches!(event.evidence, Evidence::ServicesStarted { .. }),
matches!(event.evidence, Evidence::ServicesStarted { .. }) && !rollback
|| matches!(event.evidence, Evidence::RollbackServicesStarted { .. }) && rollback,
"UPDATE_HEALTH_SERVICES_STARTED"
);
let (last, generation, fault, pending): (Option<String>, u64, Option<String>, Option<String>) =
@@ -424,8 +426,14 @@ pub async fn request(
.map_err(anyhow::Error::msg)?;
journal.prepare(
u64::try_from(now.timestamp())?,
Evidence::HealthVerified {
receipt: signed.clone(),
if journal.phase() == Phase::RollbackServicesStarted {
Evidence::RollbackHealthVerified {
receipt: signed.clone(),
}
} else {
Evidence::HealthVerified {
receipt: signed.clone(),
}
},
)?;
ensure!(Instant::now() < context.deadline, "UPDATE_HEALTH_EXPIRED");