Use Distroless Base Images for flannel #2307
Replies: 6 comments
-
|
Flannel's reliance on iptables binaries makes a full Distroless migration impractical without significant architectural changes. Alpine is already a 'slim' base image with limited attack surface. Base images are regularly updated to fix vulnerabilities that are identified. |
Beta Was this translation helpful? Give feedback.
-
|
Can we use some replacement of alpine package manager like chainguard? |
Beta Was this translation helpful? Give feedback.
-
|
Is this snippet good way @pgonin ? Will this affect any flannel related binaries
|
Beta Was this translation helpful? Give feedback.
-
|
Chainguard already builds wolfi based images of flannel https://images.chainguard.dev/directory/image/flannel/versions I think alpine is still fine for an open source community project |
Beta Was this translation helpful? Give feedback.
-
|
and Wolfi is NOT distroless, it's a different form of distribution with different tools and different approach |
Beta Was this translation helpful? Give feedback.
-
|
@pgonin Is there a way to perform some kinds of test suite (like e2e ones when we try to merge upstream) on the flannel image generated with the above snippet, just want to make sure if I can generate a image this way and that this runner image would not introduce any regression? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to propose using Distroless images as the base for the flannel image. This change would improve security by reducing the attack surface and result in smaller, more minimal images.
There are lot of OS and application level CVE's with Alpine being base image
There is a stack overflow vulnerability in ash.c:6030 in busybox before 1.35. In the environment of Internet of Vehicles, this vulnerability can be executed from command to arbitrary code execution.Alternatively, if needed we can have two variants one based on Alpine and one on Distroless, so users can choose the image that best fits their requirements.
Beta Was this translation helpful? Give feedback.
All reactions