← Back to issue list

Add `sha256` prefix to the `org.opencontainers.image.base.digest` annotations field in the image manifest.

View original Github issue

Metadata

Project
rockcraft
Number
#908
Type
issue
State
open
Author
moaazassali
Labels
Created
2025-06-26 13:34:33+00:00
Updated
2025-07-08 08:07:20+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Add `sha256` prefix to the `org.opencontainers.image.base.digest` annotations field in the image manifest. Here is an example of an image manifest generated by rockcraft: ``` { "schemaVersion": 2, "config": { "mediaType": "application/vnd.oci.image.config.v1+json", "digest": "sha256:ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356", "size": 3 }, "layers": [ { "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip", "digest": "sha256:24e08b276317a479704dc53c0e47753b3422695950853fc22446ec76faf6e8d0", "size": 9320708 }, { "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip", "digest": "sha256:b4406d6046b42bf82b11d80e8c19acd2818ef44524bf64e3e7b4f330114af508", "size": 430 } ], "annotations": { "org.opencontainers.image.base.digest": "19d5218d4475ed6af714d9ea9aeff3ce57fcf90e93b062a587f5d183eddeddd9", "org.opencontainers.image.created": "...", "org.opencontainers.image.description": "...", "org.opencontainers.image.ref.name": "...", "org.opencontainers.image.title": "...", "org.opencontainers.image.version": "..." } } ``` ### Why it needs to get done It is inconsistent with the other digest fields in the image manifest like `config.digest` and `layers[i].digest`. It also makes the digest somewhat ambiguous due to the lack of the hashing algorithm when using it to look up the referenced image base.

Evaluation history

No evaluation history available.