The logger simply writes the request to the logs, including the headers, without obfuscating anything. This is a problem when the headers contain stuff like Bearer 1234.... These sensitive values are written in clear to the logs.
I would suggest obfuscating these specific fields by default, with maybe a flag to disable the obfuscation.
Hi,
I was playing with Talker and the talker_http_logger package.
My app uses a piece of code very similar to the example:
Looking at the http logger:
The logger simply writes the request to the logs, including the headers, without obfuscating anything. This is a problem when the headers contain stuff like
Bearer 1234...
. These sensitive values are written in clear to the logs.I would suggest obfuscating these specific fields by default, with maybe a flag to disable the obfuscation.
Cheers