My team leverages a few fields in our headers for authentication. Namely
x-api-key, x-api-secret, and x-api-password
Currently, we can redact all of those by providing the three individual strings to pino, but I was wondering if there's a way we could use the wildcard character to pass pino something like req.headers["x-api-*"] instead?
My team leverages a few fields in our headers for authentication. Namely
x-api-key
,x-api-secret
, andx-api-password
Currently, we can redact all of those by providing the three individual strings to pino, but I was wondering if there's a way we could use the wildcard character to pass pino something like
req.headers["x-api-*"]
instead?