[Epic] Add security scanner integration
Users storing content in pulp_container should derive benefit from security scanning of docker containers that are out there.
The idea is to integrate a tool not make a new one. Here are some options I've read about from this article.
Open API spec definition for the scanners that can be plugged into Harbor to do artifact scanning.
Add support to Harbor for using other image scanners than just Clair by replacing the current Clair-specific scanning job implementation with an adapter layer implemented as an HTTP API between Harbor and the scanners' native interfaces. This will provide runtime configurable scanner invocation to provide vulnerability scanning initially with the option for other types of scanning in the future.
Tern is an inspection tool to find the metadata of the packages installed in a container image
cve-bin-tool is a command line tool which "scans for a number of common, vulnerable components (openssl, libpng, libxml2, expat and a few others) to let you know if your system includes common libraries with known vulnerabilities". Vulnerability scanning tools can also be extended to work on containers using Tern, although support for certain metadata pertaining to CVEs may not be available yet.
- https://github.com/tern-tools/tern#cve-bin-tool :
Please register to edit this issue