clair icon indicating copy to clipboard operation
clair copied to clipboard

Support picking up vulnerability databases from local sources (files)

Open rqc opened this issue 10 years ago • 5 comments

Hello,

First of all, thanks for the wonderful work on Clair. We are using it to provide security scanning as part of a microservice-oriented system. In our development / test workflow, we run the Clair and Postgres containers to provide integration with our system. We are currently having issues since the downloads for the database sources take a long time. I understand that this might be improved from a network performance standpoint as you point out here. However, it would be nice also, to be able to point to the sources locally, from the host file system where Clair is running, and then the updater can reconcile any updates when it eventually downloads the source files.

So, my question is, can this be done right now? If so, is it configurable, for instance, through the config.yml file or through env vars? If not, is there an interest in adding some functionality like this to Clair?

Thanks!

rqc avatar May 02 '16 13:05 rqc

It can not be done right now. How about commit the Postgres container with updated vulnerability data and reuse that?

liangchenye avatar May 03 '16 11:05 liangchenye

Thanks @liangchenye for the workaround. That might work for some of our scenarios, but sometimes, we run a CI pipeline for staging / dev purposes and we like re-creating an entire environment from scratch, including the Postgres container.

Would it be something useful to you to have this functionality? I might give it a try to make a contribution if there is interest.

Thanks :smile:

rqc avatar May 05 '16 20:05 rqc

You can also mount a docker volume for your postgres container and reuse that volume later on in your ci pipeline

Le jeu. 5 mai 2016 22:38, Ricardo Quintana [email protected] a écrit :

Thanks @liangchenye https://github.com/liangchenye for the workaround. That might work for some of our scenarios, but sometimes, we run a CI pipeline for staging / dev purposes and we like re-creating an entire environment from scratch, including the Postgres container.

Would it be something useful to you to have this functionality. I might give it a try to make a contribution if there is interest.

Thanks [image: :smile:]

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/coreos/clair/issues/163#issuecomment-217271174

jgsqware avatar May 05 '16 22:05 jgsqware

@jgsqware I think we need to consider packaging up and shipping a pre-built index for clair. Having every user scrap everything themselves is OK but it can be rather time consuming, particularly if we add file hash features.

philips avatar May 12 '16 09:05 philips

We’re declaring bug bankruptcy as part of the release process for a new major version of Clair. Please open a ticket in our issue tracker if you feel this still needs to be addressed, and we'll triage as part of our v4 development process. Thanks!

hdonnay avatar Aug 31 '20 17:08 hdonnay