1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Public library surface for KeyClaw.
//!
//! KeyClaw is a local MITM proxy that rewrites secrets out of outbound LLM
//! traffic before it leaves the machine, then resolves placeholders back into
//! inbound responses for the local client.
/// Operator-controlled allowlist primitives for suppressing known-safe matches.
/// Persistent audit-log helpers for recording redaction events without raw secrets.
/// Runtime CA certificate generation and validation.
/// Runtime configuration loaded from defaults, `~/.keyclaw/config.toml`, and env vars.
/// High-entropy token detection used alongside provider-specific rules.
/// Error types and deterministic error-code helpers.
/// Bundled gitleaks rule loading, compilation, and matching.
/// Second-pass secret scanning backed by Kingfisher.
/// CLI entrypoints and launched-tool integration.
/// Operator-facing runtime logging utilities.
/// Log scrubbing utilities for redacting secrets from operator-visible output.
/// Request rewrite and placeholder-resolution pipeline.
/// Placeholder generation, parsing, and resolution helpers.
/// Proxy server entrypoint and handler wiring.
/// JSON-walking utilities and redaction-notice injection.
/// Audit-log backed CLI stats summaries.
/// AES-GCM encrypted local secret storage.
/// Top-level runtime configuration for KeyClaw.
pub use Config;