How boadadf/secret_keeper works
Secret Keeper is a local outbound privacy proxy. A client routes HTTP and WebSocket traffic through the proxy; outgoing content is checked against a local policy, then either forwarded or blocked with local feedback. Optional capture records attempted content in machine-readable and readable forms. The README documents these capabilities, but the runtime source was not sampled, so the graph avoids asserting internal calls beyond those documented.
Main entry points: request_capture.py Proxy addon · payload_capture.py Payload capture · rules.py Rule evaluation · config.py Policy configuration
Components 17
Traffic inspection
- Proxy addon
src/secret_keeper/request_capture.py - HTTP inspection
src/secret_keeper/request_capture.py - WebSocket inspection
src/secret_keeper/request_capture.py - Project CLI
src/secret_keeper/cli.py
Rules and policy
- Policy configuration
src/secret_keeper/config.py - Local policy
config/secret-keeper-policy.json - Rule evaluation
src/secret_keeper/rules.py - Inspection engine
src/secret_keeper/engine.py - Response provenance
src/secret_keeper/response_provenance.py
Blocking and feedback
- HTTP rejection
src/secret_keeper/request_capture.py - WebSocket reply
src/secret_keeper/ws_response_builder.py
Local capture
- Payload capture
src/secret_keeper/payload_capture.py - Capture records
src/secret_keeper/payload_capture.py - Readable capture
src/secret_keeper/readable_capture.py - Capture viewer
scripts/read-capture.py
Other components
- AI client
- External server
Connections 17
- AI client → Proxy addon: routes traffic
README.md - Proxy addon → HTTP inspection: inspects HTTP
README.md - Proxy addon → WebSocket inspection: inspects messages
README.md - Proxy addon → Policy configuration: uses policy
README.md - Policy configuration → Local policy: loads policy
README.md - HTTP inspection → Rule evaluation: checks content
README.md - WebSocket inspection → Rule evaluation: checks content
README.md - Rule evaluation → Inspection engine: evaluates locally
README.md - HTTP inspection → HTTP rejection: rejects blocked
README.md - WebSocket inspection → WebSocket reply: formats rejection
README.md - Proxy addon → External server: forwards allowed
README.md - Proxy addon → Response provenance: checks prior output
README.md - Proxy addon → Payload capture: optionally captures
README.md - Payload capture → Capture records: writes records
README.md - Payload capture → Readable capture: creates companion
README.md - Capture viewer → Readable capture: formats records
scripts/read-capture.py - AI client → Project CLI: may use separately
README.md