vectranetworks / vectraautomatedresponse

Other
3 stars 3 forks source link

urllib3 logger prints full URLs that include sensitive data like users and passwords #3

Open Alexanderis opened 4 months ago

Alexanderis commented 4 months ago

For example Sophos integration will log the full URL path including the defined username and password

Creating a specific logger for urllib3 and setting the level to WARNING resolves this issue

urllib3_logger = logging.getLogger("urllib3")
urllib3_logger.setLevel('WARNING')