Getting started

Welcome to CAST AI's security offering! Our platform provides an advanced set of automated features designed to enhance the security posture of your Kubernetes clusters. This guide will walk you through enabling and utilizing these features to secure your cluster effectively.

By default, CAST AI offers customers an organizational-level Compliance report that provides valuable insights into your cluster's security posture. However, we recommend enabling the Security feature set on your cluster to unlock the full potential of CAST AI's security assessment capabilities.

Enabling Security is a simple process that grants you access to a wide range of advanced security assessments, including:

  • CIS Benchmarks: Evaluate your cluster's compliance with industry-standard best practices.
  • Vulnerability management: Identify potential vulnerabilities in the container images running on your cluster.
  • Attack paths: See a list of detected attack paths in your Kubernetes clusters that could be exploited. Take proactive measures to mitigate these risks and strengthen your cluster's security posture.
  • Node OS updates: Monitor the age of your nodes and schedule automatic updates to ensure your nodes have the latest security patches and remain protected against vulnerabilities.

Enable Security

To enable automation of the Security feature set on your cluster, you must opt-in to use deeper security insights. CAST AI will then install the Kvisor security agent to provide enhanced security assessment capabilities.

📘

Note

For first-time users, we recommend familiarizing yourself with the Getting Started and Enable Automation sections to learn more about cluster onboarding. If you are already familiar with the CAST AI product, follow the steps described below.

Install via CAST AI console

The exact flow for enabling Security depends on whether you have already enabled CAST AI in your connected cluster.

Enable Security with the advanced automation & cost monitoring feature set

If you haven't enabled CAST AI on your cluster yet, follow these steps:

  1. Log in to the CAST AI console.
  2. Navigate to your connected cluster and click the Enable CAST AI button in the top right corner.
  1. In the script generation pop-up, ensure that the Security box is checked:
  1. Copy the generated script and run it in your cluster's command-line interface.
  2. Once the script execution is complete, click I ran the script to confirm the installation.

Enable Security on a cluster with CAST AI already enabled

If you have already enabled CAST AI on your cluster and want to enable and leverage the Security features, follow these steps:

  1. Log in to the CAST AI console.
  2. Go to the Security section in the sidebar.
  3. Click on either the Enable security or Enable CAST AI button.
  1. Choose the cluster for which you want to enable the Security feature set and click Enable.
  1. Copy the generated script and run it in your cluster's command-line interface.
  2. Once the script execution is complete, click I ran the script to confirm the installation.

The script installs the Kvisor security agent on your cluster, which enables the security feature set.

Installation via Helm or Terraform

You can install the Kvisor security agent using Helm charts or Terraform. Please refer to the Kvisor security agent page for installation instructions.

Security controls

By default, Vulnerability management and Compliance scanning are enabled automatically for your cluster.

ControlDescription
Vulnerability managementIdentify vulnerabilities in the container images running in the cluster and receive recommendations on addressing them.
ComplianceScan the configuration of the cluster and workloads for deviations from secure configuration best practices.
RuntimeMonitor cluster activities in real-time to detect potential security threats, suspicious behaviors, and security violations during workload execution.

These controls can be toggled on or off per your organizational requirements.

📘

Note

For clusters onboarded using Terraform, Security controls can only be enabled or disabled through Terraform configuration. The UI controls for toggling vulnerability management and compliance configuration scanning will be read-only for these clusters. To make changes, update the relevant settings in your Terraform code. This ensures that the desired security control configuration is consistently managed through your Infrastructure as Code (IaC) workflow.

To choose which controls you want to toggle, follow these steps:

  1. Go to Security > Settings in the sidebar.
  2. Click on the row of the cluster for which you intend to toggle security controls.
  3. Make desired adjustments and save your changes.