cilium / image-tools

Dockerfiles for cilium-runtime and cilium-builder dependencies
Other
18 stars 29 forks source link

startup-script: Adjust ca-certificates install to only copy certs #284

Closed michi-covalent closed 4 months ago

michi-covalent commented 4 months ago

This commit adjusts the method in which ca-certificates is installed into the startup-script image. The ca-certificates package has a dependency on OpenSSL, which unnecessarily increases the attack surface of the image, since the image's only functionality is fully contained in manage-startup-script.sh and the script makes no network connections. The package could theoretically be removed, but as a precaution, the root certificates from the ca-certificates package are copied in to the image using the same method as is used in the Cilium Operator image.