https://github.com/sysdiglabs/harbor-scanner-sysdig-secure
Use Sysdig Secure as a plug-in vulnerability scanner in the Harbor registry
https://github.com/sysdiglabs/harbor-scanner-sysdig-secure
harbor harbor-pluggable-scanners harbor-registry scanner-adapter sysdig-secure
Last synced: 6 months ago
JSON representation
Use Sysdig Secure as a plug-in vulnerability scanner in the Harbor registry
- Host: GitHub
- URL: https://github.com/sysdiglabs/harbor-scanner-sysdig-secure
- Owner: sysdiglabs
- License: apache-2.0
- Created: 2020-04-07T23:14:16.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T11:16:18.000Z (12 months ago)
- Last Synced: 2024-05-22T11:25:45.519Z (12 months ago)
- Topics: harbor, harbor-pluggable-scanners, harbor-registry, scanner-adapter, sysdig-secure
- Language: Go
- Homepage: https://sysdig.com/secure
- Size: 4.75 MB
- Stars: 5
- Watchers: 9
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Harbor Scanner Adapter for Sysdig Secure
   
The Sysdig Secure Harbor Scanner Adapter enables Harbor to use Sysdig Secure scanning engine to analyze the container images managed by the platform.
> See [Pluggable Scanner API Spec](https://github.com/goharbor/pluggable-scanner-spec) for more details.
This adapter also provides a service that translates the Harbor scanning API requests into Sysdig Secure API calls, allowing Harbor to retrieve vulnerability reports and additional information from the scanning adapter. This information will be presented in the Harbor UI, transparently for the user.
## Getting Started
You can follow a [detailed guide to deploy the Scanner Adapter](docs/install.md).### CLI Scanning
Using CLI scanning, the scanning operation itself will be triggered and performed on your own infrastructure. It spawns a Kubernetes job when a new image is pushed, this job will communicate **only** the container metadata to the Sysdig Secure Backend, which will perform the evaluation based on the configured image [scanning policies](https://docs.sysdig.com/en/manage-scanning-policies.html).## Configuration
Configuration of the adapter is done via environment variables at startup.
| Name | Default | Description |
|-------------------|-----------------------------| --- |
| `SECURE_URL` | `https://secure.sysdig.com` | Sysdig Secure URL |
| `SECURE_API_TOKEN` | ` ` | Sysdig Secure API Token |
| `CLI_SCANNING` | ` ` | Enable CLI Scanning instead of Backend |
| `NAMESPACE_NAME` | ` ` | Namespace where CLI Scanning will spawn jobs |
| `CONFIGMAP_NAME` | ` ` | ConfigMap name where Harbor Certificate is available |
| `SECRET_NAME` | ` ` | Secret name where Sysdig Secure API Token and Robot Account are available |