Skip to main content

Module secrets

Module secrets 

Source
Expand description

Secret detection and redaction in tool outputs.

Scans text for common secret patterns (API keys, tokens, passwords, base64 blobs) and provides redaction utilities.

Structs§

SecretMatch
A single detected secret with its location in the input text.

Enums§

SecretKind
The type/category of a detected secret.

Functions§

detect_secrets
Scan text for potential secrets.
redact_secrets
Redact all detected secrets in the text, replacing them with [REDACTED].