Skip to content

arksec-cn/harbor-scanner

Repository files navigation

Arksec Harbor Image Scanner

English | 简体中文

Arksec Harbor Image Scanner is the scanner which focus on scanning container images in Harbor image repository.

Arksec Inc is a start-up security company providing complete cloud native security solution.

Note

This project has been migrated to GitHub - arkseclabs/harbor-scanner.

TL;DR

$ kubectl create namespace arksec-system
$ kubectl apply --filename https://raw.githubusercontent.com/arksec-cn/harbor-scanner/main/all-in-one.yaml --namespace arksec-system

Before you begin

Prerequisites

  • Kubernetes 1.16+
  • Helm 3+

Installation

Installing Scanner with kubectl

To install ArkSec Harbor Scanner on a Kubernetes cluster with kubectl:

  1. Run the following command to install ArkSec Harbor Scanner and its dependencies:
$ kubectl create namespace arksec-system
$ kubectl apply --filename https://raw.githubusercontent.com/arksec-cn/harbor-scanner/main/all-in-one.yaml --namespace arksec-system
  1. Monitor the installation using the following command until all components show a Running status:
$ kubectl get pods --namespace arksec-system --watch 
  1. The scanner will listen on node port 30777:
$ kubectl get svc --namespace arksec-system

Installing Scanner with helm

To install ArkSec Harbor Scanner on a Kubernetes cluster with helm:

  1. Get Chart
$ git clone https://github.com/arksec-cn/harbor-scanner.git
  1. Install Chart
$ helm upgrade [RELEASE_NAME] chart/harbor-scanner/ --install --create-namespace --namespace [RELEASE_NAMESPACE]

See helm install for command documentation.

Configuration

  1. Add ArkSec Harbor Scanner Adapter

  1. Add Succeeded.

  1. Scan an artifact

Uninstall

Uninstalling Scanner

$ kubectl delete --filename https://raw.githubusercontent.com/arksec-cn/harbor-scanner/main/all-in-one.yaml --namespace arksec-system
$ kubectl delete namespace arksec-system

Uninstalling Scanner with helm

$ helm uninstall [RELEASE_NAME] --namespace [RELEASE_NAMESPACE]

This removes all the Kubernetes components associated with the chart and deletes the release.

See helm uninstall for command documentation.

License

Copyright (c) 2020-2021 ArkSec

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages