This feature allows you to connect Harbor to additional vulnerability scanners. The scanner must expose an API endpoint to allow Harbor to trigger the scan process or get reports.
Proceed as follows to add a new scanner:
Click "+ NEW SCANNER" from the "Scanners" tab.
The following window appears.
Enter project name and description.
- Enter the API endpoint address.
Select the Authorization mode from the drop-down.
None: The scanner allows all connections without any security.
Basic: Enter a username and password for an account that can connect to the scanner.
Bearer: Paste the contents of a bearer token in the Token text box.
APIKey: Paste the contents of an API key for the scanner in the APIKey text box.
Optionally select "Skip certificate verification" if the scanner uses a self-signed or untrusted certificate.
Optionally select "Use internal registry address" if the scanner should connect to Harbor using an internal network address rather than its external URL.
To use this option, the scanner must be deployed in a network that allows the scanner to reach Harbor via Harbor’s internal network.
Click "Test Connection" to make sure that Harbor can connect successfully to the scanner.
- Click "Add" to connect Harbor to the scanner.
If you configure multiple scanners, select one and click "SET AS DEFAULT" to designate it as the default scanner.
To Disable, Edit or Delete scanner(s), use the corresponding options from the "ACTION" menu.
Static analysis of vulnerabilities in images can be performed using the Vulnerability Scanning functionality. You can manually initiate scanning on a particular image, or on all images in Harbor. Additionally, you can set a policy to automatically scan all the images at specific intervals. However, set the automatic scan policy to the maximum up to "Daily".
Also, make sure to enable the "Automatically scan images on push" check box from "Projects > Configuration". For more information, refer to the Configuration section in Container Registry project.
Any questions left?
Except where otherwise noted, content on this site is licensed under the MindSphere Development License Agreement.