← Back to issue list

Support both image id and digest when uploading oci-image resources (CRAFT-1324).

View original Github issue

Metadata

Project
charmcraft
Number
#871
Type
pull request
State
merged
Author
facundobatista
Labels
Created
Updated
Closed

Current evaluation

Merged implementation supporting both image ID and digest for OCI image uploads. ID usage bypasses remote registry checks for faster processing, while improved messaging handles missing images gracefully. Resolves #853.

Suggested action:

No scores available.

Issue body

Also be very explicit on which one is used when. It results on being quicker if the id is used (no check on remote registry) and better messages to the user. Which were improved also: not all needed to be permanent, and actually ended in error if the image to upload is not found and nothing can be done. Fixes #853.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged implementation supporting both image ID and digest for OCI image uploads. ID usage bypasses remote registry checks for faster processing, while improved messaging handles missing images gracefully. Resolves #853.
qwen3.6-35b-a3b-mtp-q6 Merged to enable OCI image resource uploads using either image ID or digest. The ID bypasses remote registry checks for faster uploads. Improved error messaging and resolved issue #853.
qwen3.6-35b-a3b-mtp-q6 Merged. Adds support for both image ID and digest when uploading OCI image resources. Using the ID skips remote registry checks for faster execution. User messages and error handling were improved. Resolves #853.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#444 unable to upload oci-image resource from dockerhub using image digest charmcraft closed Superseded by charmcraft 1.1.1, which replaces remote digest uploads with local image uploads using digests. Closed as the upcoming release resolves the parsing limitation.
72%
#364 Refactor how OCIRegistry and ImageHandler are used (CRAFT-53) charmcraft merged Merged refactoring OCIRegistry and ImageHandler to simplify signatures, streamline credential storage, and update URL handling. Upload command passes the registry directly. Added missing test for username-only authentication.
70%
#1051 Fix digest check for uploading OCI resource charmcraft closed Closed after fixing the OCI image upload digest check in charmcraft. The validation logic was corrected to check for @ instead of :, resolving failures when uploading tagged images.
70%