Class SecretRedactor
java.lang.Object
io.jenkins.plugins.changeinvestigator.evidence.SecretRedactor
Best-effort redaction of common secret patterns from log text before it is ever
included in an evidence bundle or sent to an AI provider.
This redaction is not, and cannot be, exhaustive or guaranteed. It catches well-known, high-signal patterns (bearer tokens, common cloud provider key formats, private key blocks, obvious "password=" / "token=" assignments). Administrators are responsible for reviewing what data reaches an external AI provider before enabling it - see SECURITY.md.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringApplies all redaction rules to a single line and returns the (possibly modified) result.static StringredactMultiline(String text) Applies redactions that span multiple lines (currently: PEM private key blocks) to a full block of already-joined text.
-
Method Details
-
redact
Applies all redaction rules to a single line and returns the (possibly modified) result. -
redactMultiline
Applies redactions that span multiple lines (currently: PEM private key blocks) to a full block of already-joined text. Callers should still callredact(String)per line for the single-line patterns.
-