Given a JSON.stringified object that may contain secrets, obfuscate them for logging. It will match parameters with "token," "key," and "secret" in strings and key/value pairs. Specifically looks for object values with : setters``, strings with = setters and Authorization headers.
This regex will p...
Submitted by
chadkluck -
8 months ago (Last modified 8 months ago)