Add gated agent update planning, preserved handoff and Linux worker ports
Rust development slice / linux (push) Failing after 6s
Rust development slice / linux (push) Failing after 6s
This commit is contained in:
@@ -326,6 +326,9 @@ pub async fn authorize(
|
||||
principal: &str,
|
||||
job: &JobPayload,
|
||||
) -> Result<(), Error> {
|
||||
if matches!(job.action, Action::UpdateAgent { .. }) {
|
||||
return crate::agent_update_policy::authorize(tx, principal, job).await;
|
||||
}
|
||||
match job.execution_identity.as_str() {
|
||||
"system" => return crate::windows_policy::authorize(tx, principal, job).await,
|
||||
"agent_service" => return Ok(()),
|
||||
|
||||
Reference in New Issue
Block a user