internal/

directory
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: GPL-3.0

Directories

Path Synopsis
Package debuglog provides opt-in, leveled diagnostic logging for redactproxy, entirely separate from the normal operational log (startup, rules reload, errors) that always goes to stderr.
Package debuglog provides opt-in, leveled diagnostic logging for redactproxy, entirely separate from the normal operational log (startup, rules reload, errors) that always goes to stderr.
Package jsonwalk locates and surgically rewrites the content-carrying string fields inside an Anthropic Messages API request or response body (system prompt, message text, tool_result content, tool_use input), leaving every other byte (key order, protocol fields, unrelated values) untouched.
Package jsonwalk locates and surgically rewrites the content-carrying string fields inside an Anthropic Messages API request or response body (system prompt, message text, tool_result content, tool_use input), leaving every other byte (key order, protocol fields, unrelated values) untouched.
Package proxyserver implements the HTTP proxy that sits between Claude Code (pointed here via ANTHROPIC_BASE_URL) and the real Anthropic API.
Package proxyserver implements the HTTP proxy that sits between Claude Code (pointed here via ANTHROPIC_BASE_URL) and the real Anthropic API.
Package redact implements PII detection and bidirectional substitution (real value <-> token) over arbitrary text, backed by a tokenstore.Store.
Package redact implements PII detection and bidirectional substitution (real value <-> token) over arbitrary text, backed by a tokenstore.Store.
redacttest command
Command redacttest is a read-only manual-testing harness: it does not modify any redaction logic.
Command redacttest is a read-only manual-testing harness: it does not modify any redaction logic.
Package rules holds the persisted, per-engagement customization on top of the built-in redact detector set: which detector categories/ subcategories are disabled, and custom block/allow entries.
Package rules holds the persisted, per-engagement customization on top of the built-in redact detector set: which detector categories/ subcategories are disabled, and custom block/allow entries.
Package tokenstore provides a persistent, process-local, bidirectional mapping between real sensitive values (domains, IPs, emails, phone numbers) and fake token values, backed by bbolt with a full in-memory mirror for zero-disk-I/O lookups on the hot path.
Package tokenstore provides a persistent, process-local, bidirectional mapping between real sensitive values (domains, IPs, emails, phone numbers) and fake token values, backed by bbolt with a full in-memory mirror for zero-disk-I/O lookups on the hot path.
crashtest command
crashtest is a test helper, not a shipped binary: it continuously mints tokens for a known sequence of real values, printing each one to stdout immediately after it commits, so a driver (see internal/tokenstore/crash_test.go) can SIGKILL it at an arbitrary point and verify every value printed before the kill survives with the same token after a fresh Open, proving the token store is genuinely crash- consistent, not just safe across a clean Close.
crashtest is a test helper, not a shipped binary: it continuously mints tokens for a known sequence of real values, printing each one to stdout immediately after it commits, so a driver (see internal/tokenstore/crash_test.go) can SIGKILL it at an arbitrary point and verify every value printed before the kill survives with the same token after a fresh Open, proving the token store is genuinely crash- consistent, not just safe across a clean Close.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL