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:
@@ -67,6 +67,7 @@ pub enum PinTransition {
|
||||
UnchangedLinuxGeneralV1,
|
||||
LinuxGeneralFullV1,
|
||||
WindowsCodePairV1,
|
||||
WindowsCodePairClockV1,
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
@@ -78,6 +79,7 @@ pub enum FileRole {
|
||||
LinuxFullPin,
|
||||
WindowsSettings,
|
||||
WindowsPin,
|
||||
WindowsTimeProfile,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
@@ -197,6 +199,13 @@ impl Handoff {
|
||||
FileRole::WindowsSettings,
|
||||
FileRole::WindowsPin,
|
||||
],
|
||||
PinTransition::WindowsCodePairClockV1 => vec![
|
||||
FileRole::AgentBinary,
|
||||
FileRole::HelperBinary,
|
||||
FileRole::WindowsSettings,
|
||||
FileRole::WindowsPin,
|
||||
FileRole::WindowsTimeProfile,
|
||||
],
|
||||
};
|
||||
ensure!(roles == expected_roles, "HANDOFF_FILE_SET");
|
||||
for file in &self.files {
|
||||
@@ -210,7 +219,7 @@ impl Handoff {
|
||||
&& self.files[1].new_sha256 == self.target.helper_sha256,
|
||||
"HANDOFF_FILE_IMAGE_BINDING"
|
||||
);
|
||||
if self.files.len() == 4 {
|
||||
if self.files.len() >= 4 {
|
||||
ensure!(
|
||||
self.files[3].old_sha256 == self.predecessor.pin_sha256
|
||||
&& self.files[3].new_sha256 == self.target.pin_sha256,
|
||||
@@ -250,7 +259,7 @@ impl Handoff {
|
||||
],
|
||||
"HANDOFF_UNSUPPORTED_SERVICE_SET"
|
||||
),
|
||||
PinTransition::WindowsCodePairV1 => ensure!(
|
||||
PinTransition::WindowsCodePairV1 | PinTransition::WindowsCodePairClockV1 => ensure!(
|
||||
self.stop_set == [Service::WindowsAgent, Service::WindowsHelper],
|
||||
"HANDOFF_UNSUPPORTED_SERVICE_SET"
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user