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

Automatically rebuild images when detecting "critical" CVEs #136

Open
3 tasks
alessfg opened this issue Mar 16, 2023 · 4 comments
Open
3 tasks

Automatically rebuild images when detecting "critical" CVEs #136

alessfg opened this issue Mar 16, 2023 · 4 comments

Comments

@alessfg
Copy link
Collaborator

alessfg commented Mar 16, 2023

Is your feature request related to a problem? Please describe

CVEs are routinely posted for these images. Most of them do not affect NGINX directly, but that's not always the case.

Describe the solution you'd like

We should scan for CVEs on a daily basis and flag any relevant CVEs as critical (CVEs with a critical severity that directly impact NGINX or a package used by NGINX). Should any critical CVEs be flagged, we should check if a fix for the CVEs is available, and if so, immediately rebuild the relevant images.

Additional context

As of today, Docker builds are cached using the GitHub Actions cache. The base Alpine/Debian images are not necessarily rebuilt/pushed when a new CVE is found and fixed, so we might need to wipe the GitHub Actions cache before rebuilding any relevant images. See #137 for tracking info.

Tasks

Preview Give feedback
@K2ouMais
Copy link

K2ouMais commented Jun 19, 2023

Is there a way to update openssl? It seems I cant update it as the "nginx" user?

image

I am scanning my images only for CRITICAL and HIGH CVEs.

An update to Alpine Linux 3.18 would also resolve this.

@alessfg
Copy link
Collaborator Author

alessfg commented Jun 19, 2023

Did you pull the latest image released this AM? The issue should have been fixed.

Also, for future reference, I would appreciate if you open a new issue if you think there's a security issue (assuming it qualifies per the Security guidelines) 😄

@t4nguy3n
Copy link

I wonder if the new image build includes running security update e.g., sudo apt list --upgradable | grep security |cut -d\/ -f1|xargs sudo apt-get install -y

@alessfg
Copy link
Collaborator Author

alessfg commented Nov 27, 2023

See #174 for my answer 🙂

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