zeroclaw/src/security
simianastronaut 376579f9fa fix(security): allow absolute paths within workspace when workspace_only is set (#2880)
When workspace_only=true, is_path_allowed() blanket-rejected all
absolute paths.  This blocked legitimate tool calls that referenced
files inside the workspace using an absolute path (e.g. saving a
screenshot to /home/user/.zeroclaw/workspace/images/example.png).

The fix checks whether an absolute path falls within workspace_dir or
any configured allowed_root before rejecting it, mirroring the priority
order already used by is_resolved_path_allowed().  Paths outside the
workspace and allowed roots are still blocked, and the forbidden-paths
list continues to apply to all other absolute paths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 11:59:35 -04:00
..
audit.rs chore: Remove blocking read strings 2026-02-19 14:52:29 +08:00
bubblewrap.rs readd tests, remove markdown files 2026-02-18 14:42:39 +08:00
detect.rs fix(channels): execute tool calls in channel runtime (#302) 2026-02-16 05:07:01 -05:00
docker.rs readd tests, remove markdown files 2026-02-18 14:42:39 +08:00
domain_matcher.rs feat(security): add otp and estop phase-1 foundation 2026-02-21 23:19:36 +08:00
estop.rs feat(security): add otp and estop phase-1 foundation 2026-02-21 23:19:36 +08:00
firejail.rs readd tests, remove markdown files 2026-02-18 14:42:39 +08:00
landlock.rs readd tests, remove markdown files 2026-02-18 14:42:39 +08:00
leak_detector.rs fix(security): strip URLs before high-entropy token extraction (#3064) (#3321) 2026-03-12 13:53:38 +00:00
mod.rs fix(onboard): use provider-aware env var hint in quick setup next steps 2026-02-24 16:03:01 +08:00
otp.rs feat(security): add otp and estop phase-1 foundation 2026-02-21 23:19:36 +08:00
pairing.rs feat(gateway): add --new flag to get-paircode for non-disruptive pairing code generation 2026-03-11 04:30:58 -04:00
policy.rs fix(security): allow absolute paths within workspace when workspace_only is set (#2880) 2026-03-12 11:59:35 -04:00
prompt_guard.rs fix(ci): address strict-delta clippy blockers 2026-02-24 16:03:01 +08:00
secrets.rs chore: Remove blocking read strings 2026-02-19 14:52:29 +08:00
traits.rs docs(code): expand doc comments on security, observability, runtime, and peripheral traits 2026-02-19 13:19:46 -08:00