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
MGMT-16587: Migrate from dockertest to testcontainers to mitigate CVE-2024-21626 #6109
MGMT-16587: Migrate from dockertest to testcontainers to mitigate CVE-2024-21626 #6109
Conversation
@paul-maidment: This pull request references MGMT-16587 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.16.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6109 +/- ##
==========================================
- Coverage 68.32% 68.29% -0.03%
==========================================
Files 241 242 +1
Lines 35779 35781 +2
==========================================
- Hits 24445 24436 -9
- Misses 9211 9218 +7
- Partials 2123 2127 +4
|
…-2024-21626 This PR is to address CVE-2024-21626 which is ultimately caused by a vulnerable dependency on runc < 1.1.12 The dockertest library that is used for instantiation of a database container in some of our unit tests appears to use a vulnerable version of this library. The dockertest project has not had much activity in the last 12 months. This PR migrates away from Dockertest by removing the library and all code that uses it, replacing this instead with an implementation to use TestContainers-Go. TestContainers is a much more supported and updated library with more maintainers and has up to date dependencies, including a non vulnerable version of runc.
70058d7
to
c6246aa
Compare
/lgtm |
@paul-maidment Nice ! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danmanor, paul-maidment The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@paul-maidment: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
[ART PR BUILD NOTIFIER] This PR has been included in build ose-agent-installer-api-server-container-v4.16.0-202403261317.p0.gcf7218d.assembly.stream.el8 for distgit ose-agent-installer-api-server. |
This PR is to address CVE-2024-21626 which is ultimately caused by a vulnerable dependency on runc < 1.1.12 The dockertest library that is used for instantiation of a database container in some of our unit tests appears to use a vulnerable version of this library. The dockertest project has not had much activity in the last 12 months.
This PR migrates away from Dockertest by removing the library and all code that uses it, replacing this instead with an implementation to use TestContainers-Go. TestContainers is a much more supported and updated library with more maintainers and has up to date dependencies, including a non vulnerable version of runc.
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist