Skip to main content

Module redact

Module redact 

Source
Expand description

The single redaction helper: configuration errors, the configuration explanation and every CLI report use it.

Secret-looking keys use is_secret_key, the same rule the configuration errors apply. Redaction errs toward hiding too much: a false positive only hides part of a message, a false negative leaks a credential.

Constants§

REDACTED
What a redacted value is replaced with.

Functions§

redact_field
Redact the value of a field called key: all of it when the key looks secret, otherwise any credentials inside it (see redact_text).
redact_text
Redact every credential found in text.