Noir::Redact
Masks credentials in option values before they reach a log line. -d
dumps every option, and debug output is what users paste into issues.
Constants
MASK = "***"
SECRET_KEYS = ["ai_key"] of ::String
Options whose whole value is a credential.
Class methods
Name: value → Name: ***. Without a separator (a malformed
--probe-header "Authorization Bearer xyz") everything after the first
word is hidden, and a lone word is hidden whole.
Every occurrence of each secret in text, for text a remote party wrote
(a provider error body that echoes the key it was sent). Secrets under
four characters are left alone: masking them would garble the message
and hide nothing worth hiding.
Mask userinfo and query values of every URL in text, keeping the
query parameter names.