Skip to content

Remove protocol from Dependency Proxy UI

Steve Abrams requested to merge fix-dependency-proxy-ui into master

🔭 What does this MR do?

The Dependency Proxy group page shows a "Dependency Proxy URL" to be used for pulling images using the dependency proxy.

The problem is, we do not pull images using a URL (although it does look similar).

For example:

# Does not work:

$ docker pull http://gdk.test:3001/dp-test/dependency_proxy/containers/alpine:latest
invalid reference format

# Does work:

$ docker pull gdk.test:3001/dp-test/dependency_proxy/containers/alpine:latest
latest: Pulling from dp-test/dependency_proxy/containers/alpine
Digest: sha256:be9bdc0ef8e96dbc428dc189b31e2e3b05523d96d12ed627c37aa2936653258c
Status: Image is up to date for gdk.test:3001/dp-test/dependency_proxy/containers/alpine:latest
gdk.test:3001/dp-test/dependency_proxy/containers/alpine:latest

In this MR, we remove the protocol and rename the value to prevent user confusion.

📹 Screenshots or Screencasts (strongly suggested)

Before After
Screen_Shot_2021-08-12_at_3.45.19_PM Screen_Shot_2021-08-12_at_3.49.13_PM

🖥 How to setup and validate locally (strongly suggested)

  1. Create a group
  2. From the group page go to Packages & Registries -> Dependency Proxy
  3. View the updated image prefix value and label

📏 Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Steve Abrams

Merge request reports