registry-scanner
by Sysdig
Sysdig Registry Scanner
About this chart
Chart: Registry Scanner
Overview
Sysdig Registry Scanner scans your images registry on a Kubernetes cluster . This chart deploys the Sysdig Registry Scanner as a scheduled Cronjob in your Kubernetes cluster and allows you to integrate Sysdig Secure with different image registries.
Registry scanning provides an extra layer of defense between pipeline and runtime by checking:
- Newly discovered vulnerabilities in the software before being deployed.
- Third-party software that might have been installed without going through pipeline scanning.
Follow the instructions in Install Registry Scanner to deploy the Helm chart. They include specific use cases for:
- JFrog Artifactory
- AWS ECR
- Harbor
- Quay IO
- IBM ICR
- Azure ACR
- Google GAR
- Google GCR
- OpenShift Internal Registry
Once installed, you can view the scan results in the Vulnerabilities UI of Sysdig Secure.
Prerequisites
- Helm 3.6
- Kubernetes v1.16+
- Unique name to identify your Kubernetes cluster
- Sysdig Secure API Token
Configuration Parameters
The following table lists the configurable parameters of the Sysdig Registry Scanner chart and their default values:
| Parameter | Description | Default |
|---|---|---|
| cronjob.schedule | The cronjob expression for registry scan scheduling. See https://crontab.guru/ for help. | "0 6 * * 6" |
| cronjob.failedJobsHistoryLimit | The number of failed job history to keep on the cluster. | 5 |
| cronjob.successfulJobsHistoryLimit | The number of successful job history to keep on the cluster. | 2 |
| cronjob.restartPolicy | The restart policy for a failed registry scan execution. | Never |
| cronjob.timeZone | Timezone settings for the cronjob. Value default will be null to guarantee we only set the timezone if the user provides it. | "" |
| reportToPersistentVolumeClaim | Specify a volume claim to write the final JSON report there instead of standard output. | "" |
| config.logging | The log level. Use one of the following: trace, debug, info, error. | "info" |
| config.registryURL | The URL of the registry to scan. | "" |
| config.registryApiUrl | The API URL of the registry to scan. This is required if your registry type is Artifactory. | "" |
| config.registryUser | The username for registry authentication. | "" |
| config.registryPassword | The password for registry authentication. | "" |
| config.registryType | requiredThe registry Type. Supported types: artifactory, ecr, icr, acr, quay, harbor, gar, gcr, nexus, ocp and dockerv2. | "" |
| config.registryAccountId | The account ID. Applicable only for ICR registry type. | "" |
| config.icrIamApi | The ICR IAM API. Applicable only for ICR registry type. | "" |
| config.icrIamApiSkipTLS | Ignore TLS certificate for IAM API. Applicable only for ICR registry type. | false |
| config.aws.accessKeyId | The AWS credentials: AccessKeyId. Leave empty to use an IAM role for the service account (EKS, ROSA). | "" |
| config.aws.secretAccessKey | The AWS credentials: SecretAccessKey. Leave empty to use an IAM role for the service account (EKS, ROSA). | "" |
| config.aws.region | For single account. It is the region where the registry is located. | "us-east-1" |
| config.aws.managementAccountRoleARN | The management role ARN to be used to impersonate the member accounts. | |
| config.aws.memberAccountsRoleName | The member account role name (available in all member accounts) to dig into their registries. | "OrganizationAccountAccessRole" |
| config.aws.allowListMemberAccountIDs | The organization account IDs in which the registry scan is performed. If not configured, the scan will be performed in all the member accounts of the organization. | [] |
| config.aws.allowListRegions | For organizational accounts. It is the AWS regions where the registries are located. If not configured, the scan will be performed in all available regions. | [] |
| config.azure.authMethod | The ACR auth method: password, managedIdentity or workloadIdentity. Identity methods need empty registryUser/registryPassword. workloadIdentity labels the controller pod; see serviceAccount.annotations. | "password" |
| config.azure.clientId | The client ID of the user-assigned identity for ACR identity auth. With workloadIdentity, it overrides the injected client ID. Can't be combined with resourceId. | "" |
| config.azure.resourceId | The resource ID of the user-assigned identity for ACR managedIdentity auth. Can't be combined with clientId. | "" |
| config.registrySkipTLS | Ignore registry TLS certificate errors (self-signed, etc.). | false |
| config.registryMaxRetries | Max number of retries to call the registtry APIs in case of failure or 409. | 10 |
| config.registryMaxRetryWait | Max wait time between retries. | 10m |
| config.registryMin |
Deploy registry-scanner with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has registry-scanner on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartregistry-scanner is pinned at v1.12.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply