Documentation
¶
Overview ¶
Package secrets provides a lightweight, dependency-free scanner for high-confidence secret patterns (cloud keys, provider tokens, private keys, JWTs). It complements the boundary scrubbing of the configured API key by catching OTHER secrets that a command or diff happens to print, so they are not echoed back into the model context. It deliberately favors precision over recall: only well-shaped, distinctive patterns match, to avoid false positives on ordinary output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
type Finding struct {
Type string // category, e.g. "aws_access_key_id"
Match string // the exact matched text (used for redaction)
}
Finding is one detected secret occurrence.
Click to show internal directories.
Click to hide internal directories.