eric-volz/DefichainPython

Protect Logging Secrets

Opened this issue · 1 comments

What would you like to be added:

Protect sensitive information during logging

Why is this needed:

The logging file is a pure text file. If secrets are logged, everyone can see them if they have access to the log file.

How to implement:

  • Adding a new boolean parameter to the Logging class: protected: bool = True
  • if this parameter is True and if a method is used that has to be protected the secrets in this request get filtered

Logging will get reworked when v3.0.0 is released