Skip to content

error while getting docker repository name. Artifactory response: 403 Forbidden #1101

Open

Description

Describe the bug

jf docker push return 403 with block policy.
18751703048573_ pic
I guess this is an Accept head issue of - https://github.com/jfrog/jfrog-cli-core/blame/39b06f70b0887855cf8fc692a4935da014e23fe8/artifactory/utils/container/image.go#L135
18911703060476_ pic
18881703060350_ pic
image

Current behavior

jf docker push failed.
$ jf docker push xx/docker-local/test:v1
...
v1: digest: sha256:e7f0bc939c6fdc86f737267b3d52412401e82c711251f70a02a6bc5bab509477 size: 1776
[🚨Error] error while getting docker repository name. Artifactory response: 403 Forbidden

Reproduction steps

$ create a Dockerfile
FROM nginx:1.21
RUN ls
$ docker build -t xx/docker-local/test:v1 .
$ jf c add xx
$ docker login xx
// create a policy to block download and block unscan artfiacts.
$ jf docker push xx/docker-local/test:v1
...
v1: digest: sha256:e7f0bc939c6fdc86f737267b3d52412401e82c711251f70a02a6bc5bab509477 size: 1776
[🚨Error] error while getting docker repository name. Artifactory response: 403 Forbidden

Expected behavior

jf docker push will return 200

JFrog CLI-Core version

latest

JFrog CLI version (if applicable)

2.52.6

Operating system type and version

Mac/Linux

JFrog Artifactory version

7.x

JFrog Xray version

3.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions