Provision the release-bound Windows maintenance helper on enrolled development devices

This commit is contained in:
2026-11-17 16:35:01 +01:00
parent a799272d91
commit 863dcb04b1
9 changed files with 215 additions and 34 deletions
@@ -40,6 +40,15 @@ pub fn qualified(
return Ok(vec![]);
}
pin.validate()?;
let (settings, _handles) = helper_system::read_settings()?;
ensure!(serde_json::to_vec(&settings.pin()?)? == serde_json::to_vec(pin)?, "system qualification pin");
if settings.windows_update_only() {
// The caller has verified an independent helper-role clock and the live
// peer. Only the two built-in scripts pass both local and server gates.
return Ok(vec!["helper.system.v1".into(), format!("helper.binary.sha256:{}",pin.helper.binary_sha256),
format!("helper.policy.sha256:{}",pin.policy_sha256), "system:run_script".into(),
rmm_domain::jobs::WINDOWS_UPDATE_LONG_CAPABILITY.into()]);
}
let ordinary = load_ordinary(pin);
let (q, result_bytes) = match ordinary {
Ok(sources) => sources,
@@ -66,7 +75,6 @@ pub fn qualified(
&& evidence["status"] == "passed",
"system native qualification evidence profile"
);
let (settings, _handles) = helper_system::read_settings()?;
ensure!(
serde_json::to_vec(&settings.pin()?)? == serde_json::to_vec(pin)?
&& settings.enable_effects,