Documentation
¶
Overview ¶
Package taint finds the values in a text that look like secrets, so that a session that read them can be stopped from sending them anywhere.
A canary catches a planted credential. Taint catches the real ones: when a tool result is private — it came from reading a .env file, a vault, a database of customers — the values in it that look like secrets are remembered for the session, and a later call that carries one of them out, plain or encoded, is noticed. Nothing here knows what a secret is; it knows what secrets look like: the value of a KEY=VALUE line whose key says so, and long strings with the randomness of a token.
Index ¶
Constants ¶
const MinLength = 12
MinLength is the shortest value worth remembering by default. Shorter ones match too much ordinary text.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.