-
Notifications
You must be signed in to change notification settings - Fork 92
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
Enable testcontainers tests once ryuk
docker image is replaced with some less vulnerable
#250
Comments
Hi @dnestoro let me share that past week
All language implementations of Testcontainers are not using that version in the current releases yet. But there is a workaround to use a different image for Ryuk: https://www.testcontainers.org/features/configuration/#customizing-ryuk-resource-reaper At ${HOME}/.testcontainers.properties:
or if you prefer using the env:
Hope it helps in bypassing those security issues described in this ticket 🙏 |
|
This is fantastic! Thank you @mdelapenya and @eddumelendez! Do you possibly know when we can expect a new release? |
My question is: do we really need Ryuk in CI? At Micronaut we disable it with the env |
Disabling it is a good step, but we would still download it then, the vulnerability scanner would still find it. |
@alvarosanchez FYI if you disable Ryuk then an in-JVM ShutdownHook-based implementation will still be used :) |
|
After implementing the feature that disables docker pull for docker images that are not listed in
Allowed docker images list
, it is discovered thatTestcontainers
test usestestcontainers/ryuk
image under the hood. This image has been scanned (alongside other allowed docker images from the list) withgrype
tool, which found that this image contains many high/critical vulnerabilities. Since this image is used by default in testcontainers, we cannot prevent its download. Until testcontainers replace usage of this image with some less vulnerable, we have to disable this test.Once the image is changed, we can enable this test again.
The text was updated successfully, but these errors were encountered: