Unable to Scan Jfrog Registry with Error "Ancesstor of level 2 does not exist for manifest.json" in Prisma Cloud

Unable to Scan Jfrog Registry with Error "Ancesstor of level 2 does not exist for manifest.json" in Prisma Cloud

1788
Created On 08/25/22 06:02 AM - Last Modified 04/30/24 10:22 AM


Symptom


  • Jfrog Registry has been successfully added in Prisma Cloud. However, scanning the same fails with Error "Ancesstor of level 2 does not exist for manifest.json".

Error in Console UI
Screenshot 2022-08-06 at 3.41.10 PM.png

Screenshot 2022-08-06 at 4.01.54 PM.png


Error in Console Logs
 
DEBU YYYY-MM-DDT registry_scanner.go Failed to discover repositories:Error: received status 400  for api /artifactory/api/..
  "errors" : [ {
    "status" : 400,
    "message" : "Ancesstor of level 2 does not exist for manifest.json."
  } ]


 


Environment


  • Prisma Cloud
  • Jfrog


Cause


  • This issue is specific to Jfrog : JFrog xray ancestor for docker
  • This may happen if a file with an incompatible format is pushed into the Docker Repository.


Resolution


  • Delete the file or move it to a generic repository for the scan to be successful.


Additional Information


  • When a Docker image is being indexed in Jfrog Xray, it indexes the manifest.json (abstraction of the docker image) as the root parent and the layers as it's descendants.
  • If Docker B has 2 layers, once it becomes the base layer of docker A, it will be shown as 1 layer in Docker A (with different checksum).

Example

Screenshot 2022-08-25 at 1.58.14 PM.png
  • Manifest of Docker-A is not the ancestor of manifest Docker-B, therefore, you will not see it in the UI.
  • If, for example, Docker-B will have only one layer and is the base layer of docker-A then the same layer with the same checksum will be shown in Docker-A.
Screenshot 2022-08-25 at 1.59.29 PM.png
  • In this case, if you check the ancestor's tab of the Base Layer(B), you'll see both Docker-A and Docker-B.

Reference : JFrog xray ancestor for docker


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000sYrRCAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail