Page MenuHomePhabricator

Solve InsecurePlatformWarning in ErfgoedBot
Closed, ResolvedPublic

Description

Right now the logs are filled with the following which causes a lot of noise:

WARNING: /mnt/nfs/labstore-secondary-tools-project/heritage/.venv/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:132: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning

While the long-term solution would be to upgrade to python 3 we should investigate if there is a quick fix for just muting these (but not all warnings)

Event Timeline

Change 457838 had a related patch set uploaded (by Jean-Frédéric; owner: Jean-Frédéric):
[labs/tools/heritage@master] Add security extra for requests Python dependencies

https://gerrit.wikimedia.org/r/457838

Change 457838 merged by jenkins-bot:
[labs/tools/heritage@master] Add security extra for requests Python dependencies

https://gerrit.wikimedia.org/r/457838

JeanFred renamed this task from Mute InsecurePlatformWarning to Solve InsecurePlatformWarning in ErfgoedBot.Jan 15 2019, 12:19 PM