authCredentials
field in your
config YAML file. Here’s an example:
--config
command line flag when starting
Subtrace:
Cookie
header on the requestSet-Cookie
header on the responseAuthorization
header on the responseredact
will redact the auth credential completely (default).hash
will replace the value with a SHA256 hash of the original value (see below).keep
will trace the full auth credential string in cleartext (NOT recommended).authCredentials: "hash"
authCredentials: "hash"
allows you to cross-match credentials across
different requests safely without storing raw auth credentials in cleartext.
For example, let’s say a client makes an API call with following request
header:
authCredentials: "hash"
will hash the value when the request is traced:
Authorization
header will have the same redacted
hash. If you know the original API key, you can also compute the hash yourself
using the sha256sum
command: