docs(security): document single-ampersand blocking in command policy
This commit is contained in:
parent
e8088f624e
commit
8cf6c89ebc
1 changed files with 1 additions and 0 deletions
|
|
@ -341,6 +341,7 @@ impl SecurityPolicy {
|
|||
/// - Blocks subshell operators (`` ` ``, `$(`) that hide arbitrary execution
|
||||
/// - Splits on command separators (`|`, `&&`, `||`, `;`, newlines) and
|
||||
/// validates each sub-command against the allowlist
|
||||
/// - Blocks single `&` background chaining (`&&` remains supported)
|
||||
/// - Blocks output redirections (`>`, `>>`) that could write outside workspace
|
||||
pub fn is_command_allowed(&self, command: &str) -> bool {
|
||||
if self.autonomy == AutonomyLevel::ReadOnly {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue