You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code snippet logs sensitive information, specifically the username and password, in clear text. This can expose sensitive data if the logs are accessed by unauthorized parties.
Sensitive information like passwords should not be logged. Instead, consider logging non-sensitive parts of the request or obfuscating sensitive data before logging.
Fixesspotify#3300
Remove logging of sensitive information in `luigi/contrib/pai.py`.
* Remove the logging of the `request_json` variable in the `__init_token` method of the `PaiTask` class.
* Add a new logging statement in the `__init_token` method to indicate that a token request is being made, without including sensitive information.
Fixesspotify#3300
Remove logging of sensitive information in `luigi/contrib/pai.py`.
* Remove the logging of the `request_json` variable in the `__init_token` method of the `PaiTask` class.
* Add a new logging statement in the `__init_token` method to indicate that a token request is being made, without including sensitive information.
Hi,
I am reporting a potential security issue has been identified in the file
luigi/contrib/pai.py
.luigi/luigi/contrib/pai.py
Lines 240 to 242 in 9e0898e
The code snippet logs sensitive information, specifically the username and password, in clear text. This can expose sensitive data if the logs are accessed by unauthorized parties.
Sensitive information like passwords should not be logged. Instead, consider logging non-sensitive parts of the request or obfuscating sensitive data before logging.
Thanks.
References
The text was updated successfully, but these errors were encountered: