Skip to content

fix(sec): pin argocd-server container image by digest - #81

Open
castrojo wants to merge 5 commits into
mainfrom
sec/pin-argocd-image-digest
Open

castrojo wants to merge 5 commits into
mainfrom
sec/pin-argocd-image-digest

Conversation

@castrojo

Copy link
Copy Markdown
Collaborator

Security Hardening

Pin quay.io/argoproj/argocd:v2.12.3 to digest sha256:68894064bc381c19ea951029510aa614bd26bf46c2ec65ea445c7d8d095a9417 in files/k0s/manifests/argocd/install.yaml to prevent mutable tag drift and ensure supply-chain integrity for control-plane GitOps deployments.

Addresses finding in #74.

Verification

  • pytest tests/unit (Passed)
  • python3 .github/scripts/docs-checks.py (Passed)
  • just validate (Passed)

Pin quay.io/argoproj/argocd:v2.12.3 to sha256:68894064bc381c19ea951029510aa614bd26bf46c2ec65ea445c7d8d095a9417
to guarantee image immutability and supply-chain integrity for control-plane
GitOps manifests.

Partially addresses #74.

Assisted-by: Gemini 3.8 Flash via GitHub Copilot
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@hanthor hanthor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Digest verified against live quay.io — approving

$ curl -H "Accept: application/vnd.oci.image.index.v1+json" \
       https://quay.io/v2/argoproj/argocd/manifests/v2.12.3
docker-content-digest: sha256:68894064bc381c19ea951029510aa614bd26bf46c2ec65ea445c7d8d095a9417

Byte-identical to the diff. The tag is preserved alongside the digest (v2.12.3@sha256:…), which is the right form — the digest is what's enforced, the tag stays for human legibility, and they can't silently disagree because the registry rejects the pull if they do.

One line, build and unit both green, and it closes a mutable tag in a manifest that runs with cluster privileges.


Generated by Claude Code

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