migrate security parser to sh-syntax and async validation
This commit is contained in:
@@ -104,7 +104,7 @@ Actors can emit events in `ActorExecutionResult.events`. Pipeline status also em
|
||||
|
||||
## Security Middleware
|
||||
|
||||
- Shell command parsing uses `bash-parser` AST traversal and extracts `Command`/`Word` nodes.
|
||||
- Shell command parsing uses async `sh-syntax` (WASM-backed mvdan/sh parser) with fail-closed command/redirect extraction.
|
||||
- Rules are validated with strict Zod schemas (`src/security/schemas.ts`) before execution.
|
||||
- `SecurityRulesEngine` enforces:
|
||||
- binary allowlists
|
||||
|
||||
Reference in New Issue
Block a user