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

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

Closed

Conversation

michi-covalent
Copy link
Contributor

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.

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.

Signed-off-by: Ryan Drew <[email protected]>
@michi-covalent michi-covalent requested a review from a team as a code owner June 27, 2024 20:46
@michi-covalent michi-covalent deleted the pr/learnitall/startup-script-ca-certificates-2 branch June 27, 2024 20:52
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

Successfully merging this pull request may close these issues.

2 participants