-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Open
Labels
component:apiAPI bugs and enhancementsAPI bugs and enhancementsenhancementNew feature or requestNew feature or requestsecuritySecurity related issuesSecurity related issues
Description
Currently, Argo CD uses ubuntu:21.10 as a base image.
Should an attacker gain access to the container they'll have a shell to use. They'll also have access to the Kubernetes API. Currently, they would not be able to install any apps (because run-as-non-root), but they do have git. So they could clone a repository with the kubectl binary installed. At this point they would able to make API requests.
For the API server, I'm not clear why it would need git installed (or any other binary), but maybe I'm just missing something.
Using a scratch or distroless image would improve security posture.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component:apiAPI bugs and enhancementsAPI bugs and enhancementsenhancementNew feature or requestNew feature or requestsecuritySecurity related issuesSecurity related issues