Route OPNsense library and custom jobs through the standard order composer

This commit is contained in:
2026-11-20 08:15:07 +01:00
parent 8a1ea58d86
commit 1f3cd5ea0c
5 changed files with 12 additions and 58 deletions
+1 -1
View File
@@ -441,7 +441,7 @@ pub(crate) async fn plan_resolved(
let row = &rows[0];
let caps = capabilities(row.get("capabilities"))?;
let action = target_action(&input, &caps)?;
if input.execution_identity=="agent_service" && caps.iter().any(|s| s=="opnsense.base/1") &&
if input.execution_identity=="agent_service" && caps.iter().any(|s| s=="opnsense.base/1") && !caps.iter().any(|s| s=="opnsense.posix/1") &&
(input.max_runtime_seconds != 10 || input.max_output_bytes != 1024) {
return Err(fail("UNSUPPORTED_CAPABILITY"));
}