falcon-self-hosted-registry-assessment

by CrowdStrike

Helm chartv1.9.0App 1.9.0Verified publisher

CrowdStrike Self-hosted Registry Assessment

About this chart

CrowdStrike Self-hosted Registry Assessment (SHRA) Helm Chart

Falcon is the CrowdStrike platform purpose-built to stop breaches via a unified set of cloud-delivered technologies.

This Helm Chart helps you deploy CrowdStrike's Self-hosted Registry Assessment tool (SHRA) to create inventories of the container images in your registries. The software sends the inventories to the CrowdStrike cloud where they are analyzed for vulnerabilities and reported in your Falcon console. With SHRA, your images stay in your environment. This approach is an alternative to CrowdStrike's cloud-based Cloud Workload Protection registry assessment options, where images are copied into the CrowdStrike registry to create the image inventories.

Choosing to use the self-hosted approach vs CrowdStrike's cloud-based Cloud Workload Protection solution has a cost implication. For example, running these services in your environment requires additional storage and computing time. These costs may or may not be offset by the savings for data egress costs incurred with the cloud-based Cloud Workload Protection solution.

Table of Contents

  • Supported registries
  • How it works
  • Kubernetes cluster compatibility
  • Requirements
  • Create a basic config file
  • Customize your deployment
    • Create the SHRA namespace
    • Configure your CrowdStrike credentials
    • Copy the SHRA images to your registry
    • Configure which registries to scan
    • Configure your scanning schedules
    • Optional. Configure which repositories to scan
    • Configure persistent data storage
    • Optional. Configure the executor database engine
    • Configure temporary storage
    • Configure SHRA scaling
    • Allow traffic to CrowdStrike servers
    • Optional. Configure CrowdStrike allow list
    • Optional. Configure gRPC over TLS
    • Optional. Configure HTPP Proxy
    • Optional. Customize Security Context
  • Forward SHRA Container Logs to Logscale
  • Install the SHRA Helm Chart
  • Update SHRA
  • Uninstall SHRA
  • FAQ
  • Falcon Chart configuration options

Supported registries

  • Amazon Elastic Container Registry (AWS ECR)
  • Azure Container Registry
  • Docker Hub
  • Docker Registry V2
  • GitHub
  • GitLab
  • Google Artifact Registry (GAR)
  • Google Container Registry (GCR)
  • Harbor
  • IBM Cloud
  • JFrog Artifactory
  • Mirantis Secure Registry (MSR)
  • Oracle Container Registry
  • Red Hat OpenShift
  • Red Hat Quay.io
  • Sonatype Nexus

How it works

The following architecture diagram gives you insight into how SHRA works.

  • Following our configuration instructions, you create a values_override.yaml file specific to your environment, including:

    • Your CrowdStrike identification and credentials.
    • The container registry where you have placed the two SHRA images.
    • The container registries you want SHRA to scan for new images, and how often to scan them.
    • How SHRA should configure its persistent and temporary storage.
  • You run the Helm install command. As the Helm Chart deploys SHRA:

    • The jobs database and registry assessment cache are initialized in persistent storage.
    • The Jobs Controller Pod spins up.
    • One or more Executor Pods spin up.
  • Per your configured schedule, the Jobs Controller tells one or more Executors which registries to scan. The Executors break up the work as follows:

    • Registry scan: identifies the repositories within your configured registries
    • Repository scan: identifies image tags within the repositories
    • Tag assessment: downloads, uncompresses, and inventories new Linux and Windows images, then sends the inventories to CrowdStrike's cloud for analysis
  • The CrowdStrike cloud assesses the image inventories to determine their potential vulnerabilities. Results are visible in the Falcon console.

[!TIP]
Performance of the Registry scan and Repository scan jobs are networking bound, for the most part. By contrast, the Tag assessment job is mainly constrained by the amount of available disk space to unpack the images and perform the inventory. Ensure you provide sufficient disk space. For more information, see Configure temporary storage.

How SHRA determines if an image is new

To streamline work, the Executor's Tag assessment process uses a local registry assessment database to keep track of image tags previously scanned. If an image tag is not found in the local database, it asks the CrowdStrike cloud if the image is new. Only images that have not been inventoried before are unpacked and inventoried.

Kubernetes cluster compatibility

The Falcon Self-hosted Registry Scanner Helm Chart has been tested to deploy on the following Kubernetes distributions:

  • Amazon Elastic Kubernetes Service (EKS) - EKS and EKS Fargate
  • Azure Kubernetes Service (AKS)
  • Google Kubernetes Engine (GKE)
  • SUSE Rancher K3s
  • Red Hat OpenShift Kubernetes

Requirements

  • Access to the Falcon console with one or more of these default roles:
    • Falcon Administrator
    • Cloud Security Manager
    • Kubernetes and Containers Manager
  • A client API key, as described in the configuration steps.
  • A x86_64 (AMD64) Kubernetes cluster. Both Linux and Windows container images are assessed from this cluster; no Windows nodes are required.
  • Helm 3.x is installed and supported by the Kubernetes provider.
  • A 1+ GiB persistent volume for a job controller SQLite database.
  • A 1+ GiB persistent volume used by the executor for a registry assessment cache (SQLite only; not required when using PostgreSQL — see Configure the executor database engine).
  • A working volume to store and expand images for assessment.
  • Networking sufficient to communicate with CrowdStrike cloud services and your image registries. Some older Windows base images (e.g. Windows Server 2016-era) reference non-distributable base layers hosted outside your registry, commonly at Microsoft Container Registry (mcr.microsoft.com); if you assess such images and your network restricts egress, allow outbound HTTPS to the referenced host(s).
  • Optional. Cert Manager - Helm if you wish to use TLS between the containers in this Chart. See TLS Configuration.

[!NOTE]
For more information on SHRA's persistent and temporary storage needs, see Configure persistent data storage and Configure temporary storage.

Create a basic config file

Before you install this Helm Chart, there are several config values to customize for your specific use case.

To start, copy the following code block into a new file called values_override.yaml. Follow the steps in Customize your deployment to configure these values.

[!TIP]
If you have experience deploying other CrowdStrike Helm Charts, you can refer to Falcon Chart configuration options for details on how to customize the fields in this minimal installation example.

crowdstrikeConfig:
  clientID: ""
  clientSecret: ""
  
executor:
  image:
    registry: ""
    repository: ""
    tag: ""

  dbStorage:
    storageClass: ""

  assessmentStorage:
    type: "PVC"
    pvc:
      storageClass: ""

jobController:
  image:
    registry: ""
    repository: ""
    tag: ""

  dbStorage:
    storageClass: ""

registryConfigs:
  - type: dockerhub
    credentials:
      username: ""
      password: ""
    allowedRepositories: ""
    port: "443"
    host: "https://registry-1.docker.io"
    cronSchedule: "* * * * *"
  - type: dockerhub
    credentials:
      username: ""
      password: ""
    allowedRepositories: ""
    port: "443"
    host: "https://registry-2.docker.io"
    cronSchedule: "0 0 * * *"

Continue to tailor this file for your environment by following the remaining steps in this guide.

Customize your deployment

Configure your deployment of the Self-hosted Registry Assessment tool by preparing a namespace for SHRA and adding your configuration details to your values_override.yaml file.

[!IMPORTANT] Deployment of SHRA deployment with Helm isn’t complicated, but there are several detailed steps and some must happen in sequence. We strongly recommend that you follow these steps, in order, from top to bottom.

The most commonly used parameters are described in the steps below. For other options, refer to the full set of configurations options and the comments in provided values.yaml.

Create the SHRA namespace

Create a namespace to use for deploying SHRA, storing Kubernetes secrets, and hosting optional utilities throughout the installation process.

We recommend the namespace falcon-self-hosted-registry-assessment, and we use that namespace throughout these instructions.

  1. Create the namespace:
    kubectl create namespace falcon-self-hosted-registry-assessment
    
  2. As needed to meet your security requirements, create Kubernetes Roles and/or RoleBindings for this namespace and apply them. The SHRA Pods don't interact with the Kubernetes APIs and don't need any specific Kubernetes permissions, so only default access is needed. For more information, see Kubernetes documentation on RBAC authorization.

Configure your CrowdStrike credentials

To download and operate CrowdStrike's self-hosted registry assessment tool, you need a CrowdStrike API client ID and secret with the required API scopes.

Create your client ID and secret:

  1. In the Falcon console, go to Support and resources > Resources and tools > API clients and keys.
  2. Click Add new API client.
  3. In the Add new API client dialog, enter a client name and description that identify this key is for self-hosted registry assessment.
  4. Set the following API scopes
    • Falcon Container CLI: Write
    • Falcon Container Image: Read/Write
    • Falcon Images Download: Read
    • Sensor Download: Read
  5. Click Add.
  6. From the API client created dialog, copy the client ID and secret to a password management or secret management service.

[!NOTE]
The API client secret will not be presented again, so don't close the dialog until you have this value safely saved.

Export these variables for use in later steps:

export FALCON_CLIENT_ID=<your-falcon-api-client-id>
export FALCON_CLIENT_SECRET=<your-falcon-api-client-secret>

There are two options for setting your CrowdStrike client ID and secret for SHRA:

  • explicitly in helm
  • via Kubernetes secrets or configmaps

Option 1. Configure your CrowdStrike credentials in values_override.yaml

In your values_override.yaml file, set crowdstrikeConfig.clientID and crowdstrikeConfig.clientSecret to the values you saved in FALCON_CLIENT_ID and FALCON_CLIENT_SECRET.

For example,

crowdstrikeConfig:
  clientID: "aabbccddee112233445566aabbccddee"
  clientSecret: "aabbccddee112233445566aabbccddee11223344"
ParameterDescriptionDefault
crowdstrikeConfig.clientIDrequiredThe client ID used to authenticate the self-hosted registry assessment service with CrowdStrike.""
crowdstrikeConfig.clientSecretrequiredThe client secret used to authenticate the self-hosted registry assessment service with CrowdStrike.""
crowdstrikeConfig.clientSecretRefoptionalRefernce to a secret which contains clientID (CLIENT_ID) and `clientSecre

Deploy falcon-self-hosted-registry-assessment with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has falcon-self-hosted-registry-assessment 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 chartfalcon-self-hosted-registry-assessment is pinned at v1.9.0 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