Skip to content

Replace Digest Hash with version in HA Update message - #651

Open
Lesekater wants to merge 17 commits into
MichelFR:mainfrom
Lesekater:feature/release-version
Open

Replace Digest Hash with version in HA Update message#651
Lesekater wants to merge 17 commits into
MichelFR:mainfrom
Lesekater:feature/release-version

Conversation

@Lesekater

Copy link
Copy Markdown
Contributor

Replaces the Digest Hash with actual versions in the HA Update Prompt:
image

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

Lesekater and others added 11 commits June 27, 2026 16:36
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>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread src/registry-factory/GithubAdapter.ts
Comment thread src/registry-factory/DockerhubAdapter.ts
Comment thread src/registry-factory/DockerhubAdapter.ts
Comment thread src/registry-factory/LscrAdapter.ts
Comment thread src/registry-factory/LscrAdapter.ts
Comment thread src/services/HomeassistantService.ts
Lesekater and others added 3 commits June 28, 2026 15:51
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>
@Lesekater
Lesekater force-pushed the feature/release-version branch from 2a2b222 to a6666b4 Compare June 28, 2026 13:58
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@Lesekater
Lesekater marked this pull request as draft June 28, 2026 14:12
@Lesekater
Lesekater marked this pull request as ready for review June 28, 2026 14:25
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.

Version information should use release tag

1 participant