Skip to content
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

GCR detects vulnerabilities (0 critical) in elsdoerfer/k8s-snapshots:v2.0 #77

Closed
mrtyler opened this issue May 1, 2019 · 3 comments
Closed

Comments

@mrtyler
Copy link
Contributor

mrtyler commented May 1, 2019

This is mostly an FYI for the maintainers and for users that the current upstream v2.0 image has some vulnerabilities according to the Google Container Registry vulnerability scanner:

Critical 0
High 176
Medium 457

Certainly, some of these vulnerabilities are not meaningful in the context of a Docker container running k8s-snapshots, e.g. an openssh vulnerability which "allows remote attackers to execute arbitrary local PKCS#11 modules by leveraging control over a forwarded agent-socket".

I rebuilt current master (b21015c) on top of the latest python:3.6 image. Doing this reduces the total to High 26, Medium 147.

I tried to build current master with python:3.6-alpine but it didn't work (I didn't dig any further):

ERROR: Could not build wheels for aiohttp which use PEP 517 and cannot be installed directly

I also tried with python:37-alpine (same buildtime error as above) and python:37 (runtime error: TypeError: 'async for' received an object from _aiter_ that does not implement _anext_: generator).

Feel free to close this if it isn't helpful. My team thought we should pass on what we'd noticed and learned. Thanks for k8s-snapshots. :)

@glesperance
Copy link
Contributor

@mrtyler have you tried using the dev image instead? the 2.0 tag seems to be really outdated.

@glesperance
Copy link
Contributor

Actually @mrtyler I managed to make it work with alpine ; see PR #82

@miracle2k
Copy link
Owner

Thanks for the PR, I've merged it. I'm not sure about how feasible it is chase the security scanner reports, since as you say, some of them may not be applicable/exploitable, but certainly some might be, and we should rebuild the image regularly with available fixes.

I am assuming with an alpine-base and the latest versions, the situation now looks better, but please open another PR if more can be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants