Skip to content

feat(argocd): a command reports when the devops Application's image digest differs from service:latest #1997

Description

@dan-petty

Friction

k8s/README.md (GitOps, "When a pull request merges into main", step 4) asks a person to check that the devops Application's spec.source.kustomize.images names the digest that ghcr.io/dan-petty/devops-cli/service:latest points at. No command does this check. From 2026-10-10 to 2026-10-23 the Application stayed on an old digest, and no condition, metric or alert reported it. ImageUpdater devops stayed Ready with imagesManaged: 0.

Evidence

Proposed remedy

  1. Test first: devops argo cd apps status devops reports an error when the Application's digest differs from the anonymous GHCR digest of service:latest. A test doubles the registry and the Kubernetes API through the shared fakes.
  2. Read the digest with an open tool or library, for example crane digest or the OCI distribution API through the project's HTTP client. Do not write a registry client.
  3. k8s/README.md step 4 names the command.

Proposed design

Problem statement

A command is needed to check that Argo CD Application 'devops' uses the correct image digest from GHCR for service:latest. The current process requires manual checking and has caused delays in detecting outdated digests.

Acceptance criteria

  • Criterion 1: The command reports an error when the Application's digest differs from the anonymous GHCR digest of service:latest
    Verification: Run 'devops argo cd apps status devops' and observe error message when digests do not match
  • Criterion 2: The command fetches image digest from GHCR without writing a registry client
    Verification: Use existing tool like 'crane digest' or project's HTTP client to read digest
  • Criterion 3: The command is documented in k8s/README.md step 4
    Verification: Check that k8s/README.md step 4 names the new command

Key questions

  • What tool or library should be used to read the digest from GHCR?: Use an open tool or library such as 'crane digest' or the OCI distribution API through the project's HTTP client. Do not write a registry client. [sources: src/devops_cli/commands/k8s/stack_lifecycle.py]
  • Should this command be part of the existing Argo CD status command?: Yes, add the check to 'devops argo cd apps status devops' command. (proposed) [sources: k8s/README.md]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/feature
    scope/k8s
    on Oct 23, 2026
  2. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Priority: P1-High. The issue shows a real incident where an old digest stayed for days without detection.
    • Value: High. The check prevents incorrect deployments and improves system reliability.
    • Effort: Medium. The command needs to fetch digests from registry and compare them with Argo CD Application spec.
    • Related: test(k8s): every image pin under k8s/ resolves in its registry before the merge #1994, which asks for a different change. Both items check image pins in manifests. The candidate checks Argo CD Application digests. Item 1994 checks that image pins exist in k8s/ before merge.
  3. dan-petty commented on Oct 26, 2026

    @dan-petty
    OwnerAuthor

    Status set to Ready at aece067 (see proposed design in issue body).

  4. added
    priority/p1-high
    status/ready
    effort/medium
    value/high
    on Oct 28, 2026
  5. added 2 commits that reference this issue on Oct 29, 2026
    6933005
    38a0a44
  6. removed
    status/ready
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p1-highscope/k8stype/featurevalue/high

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions