feat(security-sidecar): implement a security tooling sidecar with tiered installer and protocol
- Add `zesdex_sec_daemon` module with main entry point for running the security daemon. - Implement `TieredInstaller` for installing security tools from various sources (pip, binaries, gems). - Create a newline-delimited JSON frame protocol for communication between the daemon and tools. - Introduce a `ToolRegistry` for managing and dispatching tool executions. - Add various tools including HTTP, SQLMap, Nuclei, and more with their respective execution logic. - Establish health check and installation commands for tool management. - Include prompts for classifier and quality reviewer to enhance code review and safety checks. - Document the system's tools and guidelines for usage.
This commit is contained in:
@@ -82,8 +82,6 @@ fn run_single_process() -> Result<()> {
|
||||
.internet_mode(state.settings.internet_mode.clone())
|
||||
.origin(crate::app::state::types::Origin::Main)
|
||||
.build();
|
||||
|
||||
// Read ToolCtx unused fields
|
||||
let _ = &ctx.session_dir;
|
||||
let _ = &ctx.memory_dir;
|
||||
let _ = &ctx.download_dir;
|
||||
@@ -108,8 +106,6 @@ fn run_single_process() -> Result<()> {
|
||||
let _ = tool::DEFERRED_TOOLS;
|
||||
let _ = tool::fs::helpers::arg_str(&serde_json::json!({"test": "value"}), "test");
|
||||
let _ = tool::fs::helpers::not_found_help(&ctx, std::path::Path::new("/nonexistent"), "test");
|
||||
|
||||
// shell_filter function references
|
||||
let _ = tool::shell_filter::credentials::check_credential_read("echo safe");
|
||||
let _ = tool::shell_filter::git::check_git_destructive("git push");
|
||||
let _ = tool::shell_filter::git::check_git_destructive("git status");
|
||||
@@ -533,7 +529,6 @@ fn run_attach(session_id: &str) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
fn run_loop(
|
||||
state: &mut app::state::rest::AppStateRest,
|
||||
terminal: &mut Terminal<CrosstermBackend<io::Stdout>>,
|
||||
@@ -548,7 +543,6 @@ fn run_loop(
|
||||
result
|
||||
}
|
||||
|
||||
|
||||
fn run_loop_inner(
|
||||
state: &mut app::state::rest::AppStateRest,
|
||||
terminal: &mut Terminal<CrosstermBackend<io::Stdout>>,
|
||||
|
||||
Reference in New Issue
Block a user