Skip to content

Provide scratch/distroless base image #9029

@alexec

Description

@alexec

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.

Metadata

Metadata

Labels

component:apiAPI bugs and enhancementsenhancementNew feature or requestsecuritySecurity related issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions