Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix logging of sensitive information in pai.py #3310

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

Ali-Razmjoo
Copy link
Contributor

Fixes #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.

Fixes spotify#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.
@Ali-Razmjoo Ali-Razmjoo requested review from dlstadther and a team as code owners September 4, 2024 13:56
Copy link
Collaborator

@dlstadther dlstadther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user/pass shouldn't have been getting logged, even at debug level. Thanks

@dlstadther dlstadther merged commit 7eeb723 into spotify:master Sep 5, 2024
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clear-text Logging of Sensitive Information in luigi/contrib/pai.py
2 participants