-
Notifications
You must be signed in to change notification settings - Fork 43
Description
Hi,
on many docker hub pages, such as
https://hub.docker.com/search?q=rabbitmq
https://hub.docker.com/_/rabbitmq
https://hub.docker.com/_/rabbitmq/tags
(same with other projects, e.g. ruby )
just the date of last push is given, which wrongly makes images appear as somewhat fresh or new, e.g.
TAG
4.0-management
Last pushed 3 days by doijanky
where in fact the image is stoneage old:
docker pull rabbitmq:4.0-management
4.0-management: Pulling from library/rabbitmq
4b3ffd8ccb52: Pull complete
883958f9d92b: Pull complete
f860d4e2d5bc: Pull complete
96aedc9464ed: Pull complete
753f597d0f33: Pull complete
1cd0a4c43107: Pull complete
3b2069fd77a3: Pull complete
2614367bcc3f: Pull complete
e200531438bf: Pull complete
5ebe8ca8bf0e: Pull complete
Digest: sha256:438c232a3a39d091645c5ac2b382c9f46c1ff3f1230587c0f20c5f1f7b6a6c95
Status: Downloaded newer image for rabbitmq:4.0-management
docker.io/library/rabbitmq:4.0-management
docker image list rabbitmq:4.0-management
REPOSITORY TAG IMAGE ID CREATED SIZE
rabbitmq 4.0-management 5e283cfbf5e6 13 months ago 264MB
docker image inspect rabbitmq:4.0-management
...
"Id": "sha256:5e283cfbf5e6db90ac32eec5f8ef574eca3096b474cf29ee4f7eb2b0b89d4a17",
"RepoTags": [
"rabbitmq:4.0-management"
],
"RepoDigests": [
"rabbitmq@sha256:438c232a3a39d091645c5ac2b382c9f46c1ff3f1230587c0f20c5f1f7b6a6c95"
],
...
"Created": "2024-09-20T21:15:09Z",
This image is over a year old.
It is also confusing to list an image on docker hub as
Digest OS/ARCH
Vulnerabilities
Compressed size
45ab3ffe0ed9
linux/amd64
when this digest never appears in
docker image inspect rabbitmq:4.0-management | fgrep -i 45ab
You need to follow the link and look for the index-digest on
https://hub.docker.com/layers/library/rabbitmq/4.0-management/images/sha256-45ab3ffe0ed9a89beb23d8776c83d2e493209f627edba76153790a859c221cf3
which is
438c232a3a39d091645c5ac2b382c9f46c1ff3f1230587c0f20c5f1f7b6a6c95
docker image inspect rabbitmq:4.0-management | fgrep -i 438c
"rabbitmq@sha256:438c232a3a39d091645c5ac2b382c9f46c1ff3f1230587c0f20c5f1f7b6a6c95"
What's the point in displaying a DIGEST, that the user can't verify or identify?
Both problems are security relevant
- The useless DIGEST makes it impossible (difficult, cumbersome) to verify, that the local copy is identical with the version on the hub.
- Showing a date like "Last pushed 3 days" makes it look fresh, while it actually is 13 months old and can make users wrongly believe that recent security gaps have been fixed.