Replace Digest Hash with version in HA Update message - #651
Conversation
installed_version/latest_version now use the image's org.opencontainers.image.version label and the upstream GitHub release tag, falling back to the previous tag:digest format when that information isn't available. Closes MichelFR#639. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Each registry adapter can now resolve the org.opencontainers.image.version label of the tracked tag via its manifest/config blob (Docker Hub and lscr.io through the registry-1.docker.io API with an anonymous pull token, GHCR directly), instead of showing a raw digest. The lookup is only performed once an update is actually detected, to avoid the extra registry requests on every routine check. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Code Review
This pull request introduces functionality to fetch and display the org.opencontainers.image.version label from Docker Hub, GHCR, and LSCR registries, updating the Docker and Home Assistant services. The review feedback identifies critical issues: GithubAdapter fails on multi-level namespaces, and using the authenticated HTTP client in DockerhubAdapter and LscrAdapter leaks API tokens to external endpoints, causing authentication failures. Additionally, passing the image digest is recommended to optimize registry requests.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2a2b222 to
a6666b4
Compare
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Replaces the Digest Hash with actual versions in the HA Update Prompt:

Thisl uses "org.opencontainers.image.version" from the metadata of the new image, so images which don't set this label will still show the old digtest.
NOTICE: The code in this PR was greatly created via generative AI. All code was reviewed and tested by a Human.
closes #639