department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
284 stars 206 forks source link

Resolve Use of Python 2 #59552

Open pjhill opened 1 year ago

pjhill commented 1 year ago

Description

Given that Python 2 has been EOL since January 1st, 2020 we need to upgrade our tools and infrastructure to Python 3. At the moment, we are aware of at least one security risk in a dependency for a Jenkins task that needs to be resolved. Are there others?

Context for the requests library issue:

Acceptance Criteria

cyriltech commented 1 year ago

Need ref to the Jenkinsfile that is using the python dependent packages, also specially where the "requests" library is getting invoked

pjhill commented 1 year ago

Thought from Chris -- virtualenv is pinned to a given Python version????

pjhill commented 1 year ago

Jenkins link

cyriltech commented 1 year ago

image.png findings in progress

cyriltech commented 1 year ago

image.png

flooose commented 1 year ago

I noticed today that we are still using centos:6 in this Dockerfile, which still only has python2. If the Jenkins runners use containers based on this file, that might be the problem.

pjhill commented 1 year ago

No updates for this ticket as of today -- this work will continue into the next sprint.