Adds digest label & copy button for dependency proxy UI
requested to merge 396383-dependency-proxy-image-list-version-is-incorrect-when-image-name-contains-digest into master
What does this MR do and why?
This MR adds digest label & copy button for dependency proxy UI.
- Shows digest for each manifest.
- if image name does not contain sha256 digest, show name with tag, otherwise just shows the name.
- Adds clipboard button for each manifest.
Why
When we render the image tag, we assume that the value of imageName
is in the format <name>:<tag>
.
We missed the use-case where the imageName
is in the format <name>:sha256:<digest>
Screenshots or screen recordings
before | after |
---|---|
How to set up and validate locally
- Enable dependency proxy on GDK.
- Visit Group > Packages and registries > Dependency proxy
- Assuming
172.16.123.1:3000/gitlab-org/dependency_proxy/containers
is theDependency proxy image prefix
on the page, run the following on the terminal:docker pull 172.16.123.1:3000/gitlab-org/dependency_proxy/containers/hello-world@sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089
docker pull 172.16.123.1:3000/gitlab-org/dependency_proxy/containers/hello-world
- Reload the page
- Confirm that the two images are listed, digest is always visible & copy button tooltip is working with the right text being copied.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Closes #396383 (closed)
Edited by Rahul Chanila