registry-scanner

by Sysdig

Helm chartv1.12.2App 0.14.0Verified publisher

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:

ParameterDescriptionDefault
cronjob.scheduleThe cronjob expression for registry scan scheduling. See https://crontab.guru/ for help."0 6 * * 6"
cronjob.failedJobsHistoryLimitThe number of failed job history to keep on the cluster.5
cronjob.successfulJobsHistoryLimitThe number of successful job history to keep on the cluster.2
cronjob.restartPolicyThe restart policy for a failed registry scan execution.Never
cronjob.timeZoneTimezone settings for the cronjob. Value default will be null to guarantee we only set the timezone if the user provides it.""
reportToPersistentVolumeClaimSpecify a volume claim to write the final JSON report there instead of standard output.""
config.loggingThe log level. Use one of the following: trace, debug, info, error."info"
config.registryURLThe URL of the registry to scan.""
config.registryApiUrlThe API URL of the registry to scan. This is required if your registry type is Artifactory.""
config.registryUserThe username for registry authentication.""
config.registryPasswordThe password for registry authentication.""
config.registryTyperequiredThe registry Type. Supported types: artifactory, ecr, icr, acr, quay, harbor, gar, gcr, nexus, ocp and dockerv2.""
config.registryAccountIdThe account ID. Applicable only for ICR registry type.""
config.icrIamApiThe ICR IAM API. Applicable only for ICR registry type.""
config.icrIamApiSkipTLSIgnore TLS certificate for IAM API. Applicable only for ICR registry type.false
config.aws.accessKeyIdThe AWS credentials: AccessKeyId. Leave empty to use an IAM role for the service account (EKS, ROSA).""
config.aws.secretAccessKeyThe AWS credentials: SecretAccessKey. Leave empty to use an IAM role for the service account (EKS, ROSA).""
config.aws.regionFor single account. It is the region where the registry is located."us-east-1"
config.aws.managementAccountRoleARNThe management role ARN to be used to impersonate the member accounts.
config.aws.memberAccountsRoleNameThe member account role name (available in all member accounts) to dig into their registries."OrganizationAccountAccessRole"
config.aws.allowListMemberAccountIDsThe 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.allowListRegionsFor 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.authMethodThe ACR auth method: password, managedIdentity or workloadIdentity. Identity methods need empty registryUser/registryPassword. workloadIdentity labels the controller pod; see serviceAccount.annotations."password"
config.azure.clientIdThe 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.resourceIdThe resource ID of the user-assigned identity for ACR managedIdentity auth. Can't be combined with clientId.""
config.registrySkipTLSIgnore registry TLS certificate errors (self-signed, etc.).false
config.registryMaxRetriesMax number of retries to call the registtry APIs in case of failure or 409.10
config.registryMaxRetryWaitMax 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartregistry-scanner is pinned at v1.12.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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