qcs-sensor

by devops-bar

Helm chartv1.24.2App 1.45.3-0Verified publisher

A Helm chart for Kubernetes

About this chart

Qualys Container Security Sensor

Qualys Container Security continuously secure containers from build to runtime.

The installation will deploy the Qualys Container Security Sensor on each worker node as a daemon set. By default, it assumes containerd and CRI-O as the default runtimes on Kubernetes cluster and OpenShift Cluster, respectively. If you are using a different container runtime, provide the appropriate value in the helm chart configuration.

Prerequisites

Know Your Runtime

Get the details about the container runtime by executing the following command:

kubectl get nodes -o wide

Kubernetes & Helm

  • Kubernetes 1.17+
  • Helm v3.10.x

Get Repository Info

  • helm repo add qualys-helm-chart https://qualys.github.io/Qualys-Helm-Charts/
  • helm repo update

RedHat OpenShift

  • OpenShift v4.0+ (Default Container Engine is CRI-O)

Installing the Chart

Use the following command to install the chart:

helm install [NAME] [CHART] [flags]

  • Install on Kubernetes cluster with containerd runtime (Default) helm install qcs-sensor-demo qualys-helm-chart/qcs-sensor --namespace qualys --create-namespace --set qualys.customerID=${CUSTOMERID},qualys.activationID=${ACTIVATIONID},qualys.pod_url=${POD_URL}

  • Install on Kubernetes cluster with cri-o runtime helm install qcs-sensor-demo qualys-helm-chart/qcs-sensor --namespace qualys --create-namespace --set qualys.customerID=${CUSTOMERID},qualys.activationID=${ACTIVATIONID},qualys.pod_url=${POD_URL},crio.enabled=true

  • Install on Kubernetes cluster with docker runtime helm install qcs-sensor-demo qualys-helm-chart/qcs-sensor --namespace qualys --create-namespace --set qualys.customerID=${CUSTOMERID},qualys.activationID=${ACTIVATIONID},qualys.pod_url=${POD_URL},docker.enabled=true

  • Install on OpenShift cluster with cri-o runtime (Default) helm install qcs-sensor-demo qualys-helm-chart/qcs-sensor --namespace qualys --create-namespace --set qualys.customerID=${CUSTOMERID},qualys.activationID=${ACTIVATIONID},qualys.pod_url=${POD_URL},openshift=true,crio.enabled=true

Upgrading the Release

Use the following command to upgrade the chart:

helm upgrade [RELEASE] [CHART] [flags]

Where,

[RELEASE] is the release name.

[CHART] is the chart path.

e.g.

helm upgrade qcs-sensor-demo qualys-helm-chart/qcs-sensor --namespace qualys

Uninstalling the Chart

Use the following command to uninstall the chart:

helm uninstall RELEASE_NAME [...] [flags]

e.g.

helm uninstall qcs-sensor-demo --namespace qualys

Configuration

Configurable Parameters

The following table lists the configurable parameters for the Qualys Container Security chart and their default values:

ParameterDescriptionDefaultNotes
containerd.enabledSet to true, if the container runtime is containerd.trueImportant: Enable only one runtime environment.
containerd.socketPathThe host path of the mounted volume for the containerd socket./var/run/containerd/containerd.sockOptional
containerd.storageDriverPathThe root directory path of containerd overlay storage driver/var/lib/containerdOptional
containerd.fileSystemPathThe state directory path for containerd runtime/run/containerdOptional
containerd.gcfsStorageDriverPathThe directory path of containerd gcfs storage driver/run/gcfsdOptional
crio.enabledSet to true, if the container runtime is CRI-O.falseImportant: Enable only one runtime environment.
crio.socketPathThe host path of the mounted volume for the CRI-O socket./var/run/crio/crio.sockOptional
crio.storageDriverTypeSpecify the crio overlay storage driver typeoverlayOptional
docker.enabledSet to true, if the container runtime is docker.falseImportant: Enable only one runtime environment.
docker.socketPathThe host path of the mounted volume for the docker socket./var/run/docker.sockOptional
docker.tlsVerify.enabledEnables the TLS authentication. The value should be 0 or 1.falseOptional
docker.tlsVerify.tlsCertPathProvide the path of the client certificate directory.-Optional (Mandatory if DOCKER_TLS_VERIFY=1 is defined).
docker.tlsVerify.dockerHostSpecify the address on which the docker daemon is configured to listen.-Optional (Mandatory if DOCKER_TLS_VERIFY=1 is defined).
docker.tlsVerify.dockerHostValueSpecify the loopback IPv4 address or hostname, and port :<port#>.-Optional
docker.storageDriverPathThe root directory path of docker overlay2 storage driver/var/lib/dockerOptional
docker.containerdStorageDriverPathThe root directory path of docker overlayfs storage driver-Optional
docker.storageDriverTypeSpecify the docker storage driver type, overlay2 or overlayfsoverlay2Optional
openshiftSet to true, if deploying in OpenShift.false
qualys.createNamespaceSet to true, if you want to create new custom namespace.falseOptional
qualys.namespaceProvide the namespace to be used.qualysOptional Use the same namespace in values.yaml and on command line when using the helm install command. Check the examples at the bottom of this page.
qualys.customerIDProvide the Qualys customer id.-Mandatory
qualys.activationIDProvide the Qualys activation id.-Mandatory
qualys.pod_urlProvide the URL of a Qualys POD.-Mandatory
qualys.containerLaunchTimeoutSpecify the launch timeout for the scanning container in minutes.10Optional
qualys.imageSpecify the name of the Container Security sensor image in the private/dockerhub registry.qualys/qcs-sensor:1.45.3-0Optional
qualys.imagePullPolicySpecify how to pull (download) the specified image.AlwaysOptional
qualys.cpuSpecify the CPU limit for the sensor container.500mOptional
qualys.args.withoutPersistentStorageRuns the sensor without using the persistent storage on the host.falseOptional
qualys.args.enableConsoleLogsPrints logs on the console.falseOptional
qualys.args.cicdDeployedSensorRun the sensor in a CI/CD environment.falseOptional
qualys.args.registrySensorRun the sensor to list and scan the registry assets.falseOptional
qualys.args.concurrentScanSpecify the number of docker/registry asset scans to run in parallel. Valid range: 1-20.4Optional
qualys.args.disableLog4jScanningDisables the log4j vulnerability scanning for container images.falseOptional
qualys.args.disableLog4jStaticDetectionDisables the log4j static detection for dynamic/static image scans.falseOptional
qualys.args.logFilePurgeCountThe maximum number of sensor log files to archive.5Optional
qualys.args.logFileSizeThe maximum size for a sensor log file in bytes. You can specify "<K/M/>", where K is kilobytes and M is megabytes.10MOptional
qualys.args.logLevelSets the logging level for sensor. It determines the type of sensor data you want to log. Specify a value from 0 to 5. 0=FATAL, 1=ERROR, 2=WARNING, 3=INFORMATION, 4=VERBOSE, 5=TRACE3 (INFORMATION)Optional
qualys.args.maskEnvVariableMasks the environment variables for images and containers.falseOptional
qualys.args.optimizeImageScansOptimizes the image scans for the General sensor. It is available for the General sensor type only.trueOptional
qualys.args.disableImageScanDisables the image scans for the General sensor.falseOptional
qualys.args.performScaScanSCA scanning will be performed for container images.falseOptional
qualys.args.disallowInternetAccessForScaInternet access is enabled for the SCA scan and the SCA scan is performed in online mode.falseOptional
qualys.args.performSecretDetectionSecret scanning will be performed for container images.falseOptional
qualys.args.performMalwareDetectionMalware scanning will be performed for container images.falseOptional
qualys.args.limitResourceUsageUsed to limit the usage of resources for SCA or Secret or Malware Scan.falseOptional
qualys.args.scaScanTimeoutInSecondsSpecify the SCA scan timeout in seconds.900Optional
qualys.args.insecureRegistryUsed in case self sign certs are not being configured for private registries in containerdfalseOptional
qualys.args.enableStorageDriverUsed in case of containerd overlay storage drivertrueOptional
qualys.args.storageDriverTypeSpecify the containerd overlay storage driver. Supported storage driver types for containerd are "overlay" and "gcfs"overlayOptional
qualys.args.scanningPolicySpecify the scanning policy. Valid values for scanningPolicy are: "DynamicWithStaticScanningAsFallback", "DynamicScanningOnly", "StaticScanningOnly"DynamicWithStaticScanningAsFallbackOptional
qualys.args.tagSensorProfileSpecify the valid tags for Sensor profile. e.g.: "tag1,tag2"-Optional
qualys.args.disableContainerScanDisables the container scans for the General sensor.falseOptional
qualys.args.enableDiskSpaceCheckSet to true, if you want to enable disk space check to perform Static, SCA, Secret or Malware scanfalseOptional
qualys.args.disableFeaturesSpecify the features to be disabled. Valid values for DisableFeatures are: "SBOM"-Optional
qualys.args.populateK8sMetadataSet to true, if you want to populate the Kubernetes cluster metadata as soon as the vulnerabilities are available.falseOptional
qualys.args.ignoreExclusionListForImagesSet to true, if you want to scan the blacklisted images.falseOptional
qualys.args.disableProcessEnvCollectionSet to true, if you want to disable process environment collection during scanningfalseOptional
qualys.args.disableDefaultLoggingToFileSet to true, if you want to disable duplicate logging when enableConsoleLogs is true.falseOptional
qualys.args.disableJavadbCollectionSet to true, if you want to disable Java DB collection.falseOptional
qualys.args.enableCrashLoopContainerFilterSet to true to enable crash loop container filtering.falseOptional
qualys.args.pkgInUseSet to true to enable qlys-pkg-in-use, false to disable. It is available for the General sensor type only.falseOptional (Enabling this sets privileged: true in securityContext and mounts /proc:/host/proc:ro)
qualys.args.javaDBUpdateIntervalInDaysSpecify the java DB update interval in days.15Optional (Compatible only with Sensor 1.39.0-1 and above)
qualys.args.assetTrackingFlushDurationInSecondsSpecify the duration in seconds to flush messages.60Optional (Compatible only with Sensor 1.39.0-1 and above)
qualys.args.assetTrackingFlushThresholdCountSpecify the threshold count of queue to flush messages.20Optional (Compatible only with Sensor 1.39.0-1 and above)
qualys.readOnlyRuns the sensor in read-only mode.-Optional
qualys.tolerations.enabledAllows the DaemonSet runnable on master nodes.falseOptional
qualys.tolerations.tolerationAdd toleration to schedule pod with matching taints.-Optional
qualys.proxy.enabledSet to true, if a proxy is required to connect to the Qualys cloud.falseOptional
qualys.proxy.proxyvalueSpecify the IPv4/IPv6 address or FQDN of the proxy server.-Optional
qualys.proxy.proxycertpathSpecify the path of the proxy certificate file. proxycertpath is applicable only if the proxy has a valid certificate file.-Optional
qualys.rootCert.rootcertpathSpecify the path of the root certificate file. rootcertpath is applicable if a root certificate is required to connect to the Qualys cloud.-Optional
qualys.registryProxy.enabledSet to true, if a proxy is required for registry sensor (public registry only) v1.21.0 and above.falseOptional
qualys.registryProxy.proxyvalueSpecify the IPv4/IPv6 address or FQDN of the proxy server for registry sensor.-Optional
qualys.registryProxy.proxycertpathSpecify the path of the proxy certificate file for registry sensor. proxycertpath is applicable only if the proxy has a valid certificate file.-Optional
qualys.sensorContResources.enabledSpecifies the resources for the Sensor container.falseOptional
qualys.sensorContResources.limits.cpuSpecify the CPU limit for the sensor container.500mOptional
qualys.sensorContResources.limits.memorySpecify the memory limit for the sensor container.500MiOptional
qualys.sensorContResources.requests.cpuSpecify the CPU request for the sensor container.100mOptional
qualys.sensorContResources.requests.memorySpecify the memory request for the sensor container.300MiOptional
qualys.scanningContResources.enabledSpecifies the resources for the scanning container.falseOptional
qualys.scanningContResources.limits.cpuSpecify the CPU limit for the scanning container.200mOptional
qualys.scanningContResources.limits.memorySpecify the memory limit for the scanning container.800MiOptional
qualys.scanningContResources.requests.cpuSpecify the CPU request for the scanning container.100mOptional
qualys.scanningContResources.requests.memorySpecify the memory request for the scanning container.300MiOptional
`

Deploy qcs-sensor with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has qcs-sensor 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 chartqcs-sensor is pinned at v1.24.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