Skip to main content
Calico Cloud documentation

RuntimeSecurity

The RuntimeSecurity custom resource (CR) is used to enable and configure Container Threat Detection in a Calico Cloud managed cluster.

Resource Definition​

apiVersion: operator.tigera.io/v1
kind: RuntimeSecurity
metadata:
name: default
spec:
detectorConfig:
- id: execution-container_deployment_command
disabled: true
- id: discovery-enumeration_of_linux_capabilities
disabled: true
runtimeExceptionList:
- matching: regex
processInvocation: "/bin/ls*"
pod: "not-evil-pod"
namespace: "default"
- matching: exact
pod: "nginx"
namespace: default
- matching: regex
namespace: "company-operations"

Runtime Security Definition​

Metadata​

FieldDescriptionAccepted ValuesSchema
nameThe name of the runtime security resource.defaultstring
labelsA set of labels to apply to this resource.map

Spec​

FieldDescriptionAccepted ValuesSchemaDefault
detectorConfigConfiguration that allows particular threat detectors to be disabledDetectorConfig
runtimeExceptionListList of entries of processes that are allowed to run that won't generate an eventruntimeExceptionListEnabled

DetectorConfig​

The DetectorConfig by default is not present but can be used to disable particular threat detectors in the Calico Cloud Managed cluster. One entry per detector

FieldDescriptionAccepted ValuesSchema
idThe ID of the detector this entry applies toostring
disabledBoolean represents weather the detector should be disabled or notTrue, Falseboolean

RuntimeExceptionList​

This RuntimeExceptionList holds a list of entries that contain a list of supported fields by which a user can negate the generation of runtime reports.

FieldDescriptionAccepted ValuesSchema
matchingWhether the entries are exact matches to fields or considered a regular expressionExact, Regexstring
processInvocationThe exact name or regex of the process to which a user wants to negate the generation of runtime logsstring
podThe exact name or regex of the pod(s) to which a user wants to negate the generation of runtime logsstring
namespaceThe exact name or regex of the namespace(s) for which a user wants to negate the generation of runtime logsstring