Documentation
¶
Overview ¶
Package redact applies layered, client-side secret redaction to captured session content BEFORE anything leaves the machine (SEC-3 / FR-12).
Three layers run in order:
- Provider patterns — known token shapes (AWS, GitHub, OpenAI, Stripe, Slack, Google, private-key blocks, JWTs, generic "key = value" assigns).
- High-entropy tokens — long base64/hex-ish runs whose Shannon entropy exceeds a threshold (catches secrets in tool output, diffs, pasted blobs that provider patterns miss).
- Path excludes — lines referencing a glob in excludePaths are dropped.
Redaction is best-effort by design: the server runs an authoritative scanner too (SEC-3b). This layer minimizes egress; it is not the sole defense.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.