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

Remove unnecessary dependencies from our images #627

Closed
Tracked by #345
dervoeti opened this issue Apr 25, 2024 · 2 comments
Closed
Tracked by #345

Remove unnecessary dependencies from our images #627

dervoeti opened this issue Apr 25, 2024 · 2 comments

Comments

@dervoeti
Copy link
Member

To reduce the potential attack surface and thus the number of vulnerabilities in our images, we should try to remove all unnecessary dependencies.

The basic idea is to look for dependencies that are not really needed at runtime and remove them.
Some vague examples:

  • Unneeded JAR files
  • System packages (maybe set install_weak_deps=0 option for microdnf?)
  • Packages that are needed for features that are never enabled in our platform

A good place to start might be to browse through critical vulnerabilities in SecObserve, inspect the components are affected by them and verify if they are really needed. Or to think about general options / techniques to clean up our images.

@lfrancke
Copy link
Member

lfrancke commented Apr 26, 2024

We already do set the settings to not install weak dependencies. This is in the base image

Edit: Not sure if we do the same for operators

@dervoeti
Copy link
Member Author

Closing this as this was part of the vulnerability hackathon (my main concerns were adressed in #665 and stackabletech/operator-templating#361). We'll remove further unnecessary dependencies if we find some during vulnerability analysis, I don't think we need a general issue for this anymore.

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

2 participants