-
Notifications
You must be signed in to change notification settings - Fork 16
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
[WIP] [security] Fix Erlang CVEs #3
base: master
Are you sure you want to change the base?
Conversation
Something looks wrong with this dockerfile. tpnode does not work on erlang-22, because we have migrated to erlang-24 few years ago. I found a dockerfile at our buildhost, here it is
It builds on top of ubuntu, probably building on top of erlang will be better, smaller image, but it requires testing. |
I will update the Dockerfile based on this new one, I will try to do multistage builds. I also checked the runtime container, it seems that the entrypoint is: Could you explain a bit this command? So, I can reproduce a suitable entrypoint? |
It looks like something specific to the buildhost's installation. Looks like there must be something else there
|
Summary of changes
Issue
When scanning tpnode with Docker scout, we find 3 critical and 29 high severity CVEs, which is originated from Erlang 22 image.
Solution
To resolve the issue, we upgrade erlang from 22 to 22.3.4-slim.
Results
We succeed in security by fixing CVEs, but we gained in size from 146MB to 260MB, which we can fix in another PR is important.
Other information and links
The fix is based on the newest image of erlang that is free of critical CVEs.
Change checklist