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

Reduce Container Dependencies (round #2) #691

Open
deeplow opened this issue Jan 30, 2024 · 3 comments
Open

Reduce Container Dependencies (round #2) #691

deeplow opened this issue Jan 30, 2024 · 3 comments
Assignees
Milestone

Comments

@deeplow
Copy link
Contributor

deeplow commented Jan 30, 2024

We've done this in the past, but according to the auditors, we can further slim down the image (and thus removing potential attacker gadgets). They found nc and wget but they mention these are probably not the only ones. Probably many other executables from busybox are in reality not needed.

@deeplow
Copy link
Contributor Author

deeplow commented Jan 30, 2024

While looking into seccomp policies generation (I can't find the specific reference) I came across an interesting approach: execute over a test set and find all the binaries called. Then remove everything else. Not sure how risky that is in this case, but it feels like something we can explore. But maybe that's overkill here.

@harrislapiroff harrislapiroff added this to the 0.7.0 milestone Mar 7, 2024
@almet almet self-assigned this Jun 13, 2024
@harrislapiroff harrislapiroff modified the milestones: 0.7.0, 0.8.0 Jun 13, 2024
@harrislapiroff harrislapiroff assigned apyrgio and unassigned almet Jul 11, 2024
@almet
Copy link
Member

almet commented Sep 9, 2024

I came across an interesting approach: execute over a test set and find all the binaries called.

This seem similar to what https://github.com/slimtoolkit/slim is proposing, so putting the reference here in case it helps.

@apyrgio
Copy link
Contributor

apyrgio commented Sep 10, 2024

We know that a lot of dependencies come from Alpine's LibreOffice package, which brings GTK and Wayland dependencies as well. Switching from Alpine Linux to Debian Linux (Bookworm?), and using --no-install-recommends should be the first step to slim down the image.

If we see that unwanted binaries are still installed, we can remove them on a case-by-case basis.

@harrislapiroff harrislapiroff modified the milestones: 0.8.0, Bookmarks Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants