Add fresh device trust, installer recovery and scoped patch runtime
This commit is contained in:
@@ -60,6 +60,8 @@ struct Settings {
|
||||
deserialize_with = "rmm_domain::jobs::deserialize_script_profiles"
|
||||
)]
|
||||
allowed_script_profiles: Option<Vec<PrivilegedScriptProfile>>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
windows_update_max_runtime_seconds: Option<u32>,
|
||||
}
|
||||
fn strict_hashes<'de, D: serde::Deserializer<'de>>(
|
||||
d: D,
|
||||
@@ -213,6 +215,7 @@ pub fn render(input: Inputs<'_>) -> Result<CodePairTransition> {
|
||||
ensure!(
|
||||
matches!(settings.schema_version, 1..=4)
|
||||
&& (settings.schema_version == 4 || !settings.allow_reboot)
|
||||
&& rmm_domain::jobs::valid_windows_update_limit(settings.windows_update_max_runtime_seconds, settings.allowed_script_profiles.as_deref())
|
||||
&& (1..=120).contains(&settings.max_runtime_seconds)
|
||||
&& settings.allowed_services.len() <= 16
|
||||
&& (settings.schema_version >= 2 || settings.allowed_msi_recipe_sha256.is_none())
|
||||
|
||||
Reference in New Issue
Block a user