feat: v1.0 — profils sandbox par agent : commandes autorisées (allowlist, stem Windows), périmètre de répertoires, politique réseau best-effort, refus journalisés pour l'audit, --no-sandbox pour contourner (closes #79)
- src/sandbox.rs : profile_of + enforce (basename/stem allowlist, cwd starts_with périmètre, proxy env si network:false), EventKind::Sandbox - enforcement au run et au start (start_one, --parallel, restart) ; AgentDef.sandbox + doc config.yaml - 6 tests : défaut non sandboxé, refus + journalisation, stem .exe, périmètre cwd, env réseau, bypass --no-sandbox
This commit is contained in:
@@ -1778,6 +1778,7 @@ fn handle_line(
|
||||
profile: opt_value("--profile"),
|
||||
model: opt_value("--model"),
|
||||
provider: opt_value("--provider"),
|
||||
no_sandbox: flag("--no-sandbox"),
|
||||
..Default::default()
|
||||
}),
|
||||
"stop" => Command::Stop {
|
||||
@@ -1888,6 +1889,7 @@ fn handle_line(
|
||||
agent,
|
||||
model: opt_value("--model"),
|
||||
provider: opt_value("--provider"),
|
||||
no_sandbox: flag("--no-sandbox"),
|
||||
container: flag("--container"),
|
||||
args: rest[1..].iter().map(|s| s.as_str().into()).collect(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user