Add reviewed Windows scope completion and idle certificate renewal; deploy completion API
Rust development slice / linux (push) Failing after 7s
Rust development slice / linux (push) Failing after 7s
This commit is contained in:
@@ -72,9 +72,16 @@ export function validateAgentUpdateAction(value: unknown, identity: unknown): Re
|
||||
if (full.old_helper_sha256 !== predecessor.helper_sha256 || full.new_helper_sha256 !== record((release.manifest.artifacts as unknown[])[1]).sha256 || full.old_config_sha256 === full.new_config_sha256 || full.old_pin_sha256 === full.new_pin_sha256) throw new Error('Agentupdate: Fullpin-Codepaarbindung fehlt');
|
||||
transition = { profile: p.profile, general_pin_sha256: digest(p.general_pin_sha256), full };
|
||||
} else if (p.profile === 'windows_code_pair_v1') {
|
||||
exact(p, ['profile', 'old_settings_sha256', 'new_settings_sha256', 'old_pin_sha256', 'new_pin_sha256']); if (linux) throw new Error('Agentupdate: Windows-Pinprofil auf Linux');
|
||||
const hasTime = Object.prototype.hasOwnProperty.call(p, 'time_profile');
|
||||
exact(p, ['profile', 'old_settings_sha256', 'new_settings_sha256', 'old_pin_sha256', 'new_pin_sha256', ...(hasTime ? ['time_profile'] : [])]); if (linux) throw new Error('Agentupdate: Windows-Pinprofil auf Linux');
|
||||
transition = { profile: p.profile, old_settings_sha256: digest(p.old_settings_sha256), new_settings_sha256: digest(p.new_settings_sha256), old_pin_sha256: digest(p.old_pin_sha256), new_pin_sha256: digest(p.new_pin_sha256) };
|
||||
if (transition.old_settings_sha256 === transition.new_settings_sha256 || transition.old_pin_sha256 === transition.new_pin_sha256) throw new Error('Agentupdate: unveränderte Windows-Pinübergabe');
|
||||
if (hasTime) {
|
||||
const t = record(p.time_profile); exact(t, ['schema_version', 'old_time_profile_sha256', 'new_time_profile_sha256', 'agent_qualification_sha256', 'helper_qualification_sha256']);
|
||||
if (t.schema_version !== 1) throw new Error('Agentupdate: unbekanntes Windows-Zeitprofilschema');
|
||||
transition.time_profile = { schema_version: 1, old_time_profile_sha256: digest(t.old_time_profile_sha256), new_time_profile_sha256: digest(t.new_time_profile_sha256), agent_qualification_sha256: digest(t.agent_qualification_sha256), helper_qualification_sha256: digest(t.helper_qualification_sha256) };
|
||||
if (t.old_time_profile_sha256 === t.new_time_profile_sha256) throw new Error('Agentupdate: unverändertes Windows-Zeitprofil');
|
||||
}
|
||||
} else throw new Error('Agentupdate: unbekannter Peerpinübergang');
|
||||
return { action: 'update_agent', update: { schema_version: 1, profile: 'fixed_code_pair_v1', release_envelope: release.envelope, release_envelope_sha256: digest(u.release_envelope_sha256), manifest_sha256: digest(u.manifest_sha256), predecessor, updater, peer_pin_transition: transition, recovery: 'restore_exact_predecessor_once', health_profile: 'mtls_inventory_sync_v1', health_timeout_seconds: 180, no_reboot: true } };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user