Security Center allows you to add Harbor image repositories for container image scans. This topic describes how to add third-party image repositories to Security Center.

Prerequisites

The container image scan feature is enabled. For more information, see Enable the container image scan feature.

Procedure

  1. Log on to the Security Center console.
  2. In the left-side navigation pane, choose Precaution > Image Security.
  3. On the Image Security page, click Integrate.
  4. In the Access a third-party image warehouse dialog box, configure the parameters.Add a third-party image repository to Security Center
    The following table describes the parameters.
    Parameter Description
    Private repository type The type of the third-party image repository. Set the value to harbor.
    Version The version of the third-party image repository. Valid values:
    • V1: indicates that the version of the third-party image repository is 1.X.X.
    • V2: indicates that the version of the third-party image repository is 2.X.X or later.
    Communication Type The protocol used for Security Center to communicate with the third-party image repository. Valid values: http and https.
    Network Type The network type of the third-party image repository. Valid values: Public and VPC.
    Regionid The region where the third-party image repository resides.
    Domain The domain name of the third-party image repository.
    IP The IP address of the third-party image repository.
    Speed limit The number of images that can be added per hour. Default value: 10. Valid values:
    • 5
    • 10
    • 30
    • 50
    • 200
    • 500
    • 1000
    • Unlimited
    Note If you add a large number of images per hour, your workloads may be affected. Proceed with caution when you set this parameter to Unlimited.
    Username The username used to access the third-party image repository.
    Password The password used to access the third-party image repository.
  5. Click OK.
    After you add the third-party image repository to Security Center, you can click Scan Settings in the upper-right corner of the Image Security page to view the added third-party image repository.

What to do next

After you add the third-party image repository to Security Center, you must use the container image scan feature to scan the images in the repository. For more information, see Scan container images.