Open dmitriiblium opened 2 weeks ago
Can you elaborate what API you would expect? If you can see it in the UI there is an API ;-D
Good morning, I would expect 2 API calls:
@Vad1mo, are you saying that you have already implemented some of them? SUSE support said that they couldn't find nothing like that
registry_id
in the returned body has a non-zero value.Thank you, number 1 works. @wy65701436, Can you give a link on how to do that? I think it could be just another call for the proxy cache project, that will allow to get a list of images already downloaded in the proxy cache, or for each image have a flag if it is already downloaded. I was mentioning before, since Neuvector doesn't know what was downloaded to the proxy cache and what wasn't yet downloaded, it downloads terabytes of old images, then spend weeks to find all of their vulnerabilities. While we have only ~100 images in all the proxy-cache projects, it will take 5 minutes to download and check them all. Neuvector is a tool that helps us with security on the kubernetes cluster, for example it can stop user from creating pods with the image that was not checked, or checked and have too much vulnerabilities. It has to scan every ~10 minutes and it shouldn't go over terabytes of images, otherwise it will jsut stop working.
Hi @Vad1mo, the issue is still open. Can you please elaborate on what info is needed from our side, or from Neuvector/SUSE side?
@Vad1mo @stonezdj @reasonerjt @wy65701436 I see it as an issue with connection between Harbor and Neuvector/SUSE, and Rancher users are just a customers of you both. So, Harbor can solve this issue, creating API calls from their side or SUSE/Neuvector will develop something, replacing Harbor for their customers. I think they are already doing it. So, essentially Harbor have motivation to work with SUSE/Neuvector together and set up communication channel with them, not through the customers. Otherwise it will be replaced. We need a final product and next week I will start looking at the alternatives
Hi, we have a Rancher production cluster, created using Harbor, since it has to be done in the air-gapped environment. Neuvector in the cluster has to check all the images before they are being used in production, to ban images that has known vulnerabilities from being used by the end user. Also we are using Harbor in the proxy-cache mode in order to save space, but still have updated images being added to the registry. But since Harbor doesn't have API calls to check whether image was already downloaded, or whether project is working in proxy-cache mode, Neuvector start checking all the images and download them. It makes it download terabytes of postgres images from all the possible tags. We have an open issue with SUSE and Neuvector to solve this issue, but they cannot solve it from their side, since there are no API calls from Harbor side. Could you please make these calls?