pub struct FirewallVerifier { /* private fields */ }Expand description
Policy-enforcement verifier that inspects tool arguments for path traversal, environment-variable exfiltration, sensitive file access, and command chaining.
§Scope delineation with InjectionPatternVerifier
FirewallVerifier enforces configurable policy (blocked paths, env vars, sensitive
file patterns). InjectionPatternVerifier performs regex-based injection pattern
detection (prompt injection, SSRF, etc.). They are complementary — belt-and-suspenders,
the same intentional overlap documented at the top of this module.
Both verifiers may produce Block for the same call (e.g. command chaining detected
by both). The pipeline stops at the first Block result.
Implementations§
Source§impl FirewallVerifier
impl FirewallVerifier
Sourcepub fn new(config: &FirewallVerifierConfig) -> Self
pub fn new(config: &FirewallVerifierConfig) -> Self
Build a FirewallVerifier from config.
Invalid glob patterns in blocked_paths are logged at WARN level and skipped.
Trait Implementations§
Source§impl Debug for FirewallVerifier
impl Debug for FirewallVerifier
Auto Trait Implementations§
impl Freeze for FirewallVerifier
impl RefUnwindSafe for FirewallVerifier
impl Send for FirewallVerifier
impl Sync for FirewallVerifier
impl Unpin for FirewallVerifier
impl UnsafeUnpin for FirewallVerifier
impl UnwindSafe for FirewallVerifier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more