Skip to content

feat(argo): apps status checks each pinned image against its registry - #2605

Merged
dan-petty merged 2 commits into
mainfrom
feat/1997-argo-image-digest-drift
Oct 29, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/1997-argo-image-digest-drift

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops argo cd apps status reads each kustomize image that the Application pins as <image>:<tag>@<digest>, in spec.source or spec.sources, and asks the image's registry which digest the tag names now. The read is a HEAD of the tag's manifest with the OCI distribution API and an anonymous Bearer token, through the egress-checked client at the public level. The panel shows each pin as in step, moved (both digests) or not read (why). Without --watch, the command exits 1 when the panel shows an error. It takes --dry-run, which sends nothing.

From 2026-10-10 to 2026-10-23 the devops Application stayed on an old digest of service:latest, and nothing reported it. k8s/README.md step 4 now names the command. RegistryReadError says why a registry gave no digest.

Closes #1997

Change: openspec/changes/archive/2026-10-29-1997-argo-image-pin-drift/

`devops argo cd apps status` reads each kustomize image the Application
pins as `<image>:<tag>@<digest>`, and asks the image's registry which
digest the tag names now: a HEAD of the tag's manifest with the OCI
distribution API, with an anonymous Bearer token. The panel shows each
pin as in step, moved or not read, and without --watch the command
exits 1 when the panel shows an error. It takes --dry-run.

From 2026-10-10 to 2026-10-23 the devops Application stayed on an old
digest of service:latest, and nothing reported it. k8s/README.md step 4
now names the command in place of a manual comparison.
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence:

  • uv run devops ci fail-to-pass --base origin/main: 5 tests failed on base and 2 test modules could not load there (argo/image_pins.py and docker/registry.py do not exist on base). The 26 new tests pass on the branch.
  • After the rebase onto 86af33b4: 255 tests pass in tests/test_argo.py, tests/argo, tests/docker, tests/commands/test_argo_apps_status.py, tests/test_architectural_invariants.py and tests/test_fastmcp_contracts.py. Before it, 705 passed with tests/commands, tests/invariants, tests/test_mcp.py, tests/test_output.py and tests/test_docs.py added. uv run mypy src and uv run devops docs check pass.

Live run, read-only, 2026-10-29:

  • devops argo cd apps status devops: Synced, Healthy, Image: ghcr.io/dan-petty/devops-cli/service:latest at sha256:fdf792c74470, exit 0. GHCR names the same digest for latest, and the running roadmap-service pod has the same imageID.
  • devops argo cd apps status ingress: no pinned image, no registry request, exit 0.
  • devops argo cd apps status devops --dry-run: prints show_argocd_app_status and sends no request.

Not done here: #2603 (type docker-py with types-docker, then move the reference split to docker-py's parser), and #2576 (a refused Argo CD token).

Pending a person: review the diff in tuicr (tuicr -r origin/main..HEAD).

@dan-petty
dan-petty marked this pull request as ready for review October 29, 2026 02:58
@dan-petty
dan-petty merged commit 6933005 into main Oct 29, 2026
16 checks passed
@dan-petty
dan-petty deleted the feat/1997-argo-image-digest-drift branch October 29, 2026 03:05
dan-petty pushed a commit that referenced this pull request Oct 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.14.0](v0.13.2...v0.14.0)
(2026-10-29)


### Features

* **argo:** apps status checks each pinned image against its registry
([#2605](#2605))
([6933005](6933005)),
closes [#1997](#1997)
* **k8s:** push the Argo CD notifier App's IDs and key
([#2608](#2608))
([a408dee](a408dee))
* **release:** an urgent fix merges the release pull request
([#2596](#2596))
([20e8ac4](20e8ac4))
* **roadmap:** a webhook event runs intake of its one issue
([#2607](#2607))
([cf9f02c](cf9f02c)),
closes [#2009](#2009)
* **roadmap:** devops roadmap intake-eval scores duplicates
([#2601](#2601))
([22146d6](22146d6))


### Code Refactoring

* **ai:** three in-process caches use cachetools
([#2611](#2611))
([0c30d2a](0c30d2a)),
closes [#1993](#1993)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.

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

1 participant