deepfence / ThreatMapper

Open Source Cloud Native Application Protection Platform (CNAPP)
https://deepfence.io
Apache License 2.0
4.76k stars 571 forks source link

Authentication required error on a public docker registry #2241

Open 53845714nF opened 1 month ago

53845714nF commented 1 month ago

Describe the bug I get an authentication required error on a public docker registry.

exit status 1: Flag --file has been deprecated, use: output 1 error occurred: * failed to construct source from user input 
"registry:5000/backend:latest": unable to load image: unable to use OciRegistry source: failed to get image descriptor from 
registry: GET https://index.docker.io/v2/5000/backend/manifests/latest: UNAUTHORIZED: authentication required; 
[map[Action:pull Class: Name:5000/backend Type:repository]] 

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Add Connector'
  2. Click on 'Docker Registry Selfhosted'
  3. Add Scan
  4. See error

Expected behavior Normal scanning

Screenshots image

Components/Services affected

gnmahanth commented 1 month ago

Not reproducible, can you please check the configuration Scan was successful for me image

53845714nF commented 1 month ago

How can I do that? The weird thing is that he sees the images.

gnmahanth commented 1 month ago

Hi @53845714nF can you please share deepfence-server and deepfence-worker logs from the time this error happened, It would help resolve the issue faster

Also can you confirm you added your self hosted registry in the option highlighted below image