Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
j1an5 opened this issue Jan 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@j1an5
Copy link

j1an5 commented Jan 9, 2024

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

@j1an5 j1an5 added the bug Something isn't working label Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant