I just upgraded the JIRA Python module from 0.32 to 1.0.7. (Duplicated the virtenv first, then did the upgrade.) My main JIRA Python script connects to our JIRA server over HTTPS, but, because it uses a cert signed by our internal CA, I have it disable verification. When I run the script, I get a bunch of these warnings:
/Users/foo/python-virtualenvs/new-jira-ve/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:843: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Longterm, I would like to figure out how to add our internal CA to whatever CA store that the validator is using, but for the time being, I'd just like to turn off these warnings. Going to the urllib3 URL explains how to fix the problem, but if I add
import urllib3
urllib3.disable_warnings()
to my script, I still get the above warnings.
Judging from the path of the above warning, I suspect that the JIRA module is using requests, which is using an embedded urllib3 module. Is there a way to pass call the disable_warnings() method from the embedded-in-requests urllib3 library or is there a better way to handle this?
(And even better, anyone have a suggestion for how to tell the validator to use our internal-only CA cert to validate the connection to our JIRA server?)