Skip to content

Harbor Registry Onboarding

Harbor is an open-source registry that secures artifacts with policies and role-based access control, ensures images are scanned and free from vulnerabilities, and signs images as trusted.

Prerequisites for Harbor Registry Onboarding in AccuKnox

In Harbor, users and groups are created by the admin. If you have admin access, then log in through those credentials. To create a new user in Harbor, you can follow the steps mentioned here:

https://goharbor.io/docs/1.10/administration/managing-users/create-users-db/

After creating the user, we need to add this user as a member in the Project.

Step 1: Click on "Projects", select the Project in which you have to add the user.

harbor onboarding

Step 2: Click on the "Members" tab -> +User -> give the username and select "Limited Guest" role -> OK

harbor onboarding

We have now added the member (user) in the Project.

harbor onboarding

Now we can onboard this user in the AccuKnox dashboard.

Steps to Onboard Harbor Registry on AccuKnox

Step 1: In the AccuKnox dashboard, under Issues, click on "Registry Scan"

Now, click on "Add Registry"

harbor onboarding

Step 2: Give the registry name, select Label, and select "Harbor Registry" from the Registry type dropdown. Then, paste the Registry URL and provide the user credentials.

harbor onboarding

Provide the Tag pattern, and schedule time for the scanning. If you need to trigger the scan after saving, then click on the "Trigger scan on save" checkbox.

Step 3: After providing all the information, click on "Test Connection", it should show "Registry Tested Successfully".

Now, click on Save.

harbor onboarding

After saving the registry, the scan will start based on the scheduled time. To see whether the scanning is completed or not, go to Settings -> Integrations -> Registry. Here, we can see the list of onboarded registries and their details.

harbor onboarding

Once the scanning is completed, we can see the scan results in Issues -> Registry Scan

Under the "Image Scanning Progress" pie chart, select your registry to view the progress.

harbor onboarding

To view the details of your registry, you can use filters such as "registry_type", then select the "harbor" registry or you can also use the filter "registry_name" and provide the name of your registry.

harbor onboarding

By clicking on the repositories, we can get more details about the scan results.

harbor onboarding