falco-talon

by Helm

Helm chartv0.5.1App 0.3.0

React to the events from Falco

About this chart

Falco Talon

Description

Falco Talon is a Response Engine for managing threats in your Kubernetes. It enhances the solutions proposed by the Falco community with a no-code tailor made solution. With easy rules, you can react to events from Falco in milliseconds.

Architecture

Falco Talon can receive the events from Falco or Falcosidekick:

flowchart LR
    falco
    falcosidekick
    falco-talon
    falco -- event --> falcosidekick
    falco -- event --> falco-talon
    falcosidekick -- event --> falco-talon
    kubernetes -- context --> falco-talon
    falco-talon -- action --> aws
    falco-talon -- output --> minio
    falco-talon -- action --> kubernetes
    falco-talon -- notification --> slack

Documentation

The full documentation is available on its own website: https://docs.falco-talon.org/docs.

Installation

helm repo add falcosecurity https://falcosecurity.github.io/charts 
helm repo update
helm install falco-talon falcosecurity/falco-talon -n falco --create-namespace -f values.yaml

Update the rules

Update rules.yaml then:

helm upgrade falco-talon falcosecurity/falco-talon -n falco -f values.yaml

Uninstall Falco Talon

helm delete falco-talon -n falco

Configuration

Values

KeyTypeDefaultDescription
affinityobject{}affinity
configobject{"aws":{"accesKey":"","externalId":"","region":"","roleArn":"","secretKey":""},"deduplication":{"leaderElection":true,"timeWindowSeconds":5},"defaultNotifiers":["k8sevents"],"listenAddress":"0.0.0.0","listenPort":2803,"minio":{"accessKey":"","endpoint":"","secretKey":"","useSsl":false},"notifiers":{"elasticsearch":{"createIndexTemplate":true,"numberOfReplicas":1,"numberOfShards":1,"url":""},"loki":{"apiKey":"","customHeaders":{},"hostPort":"","tenant":"","user":""},"slack":{"footer":"https://github.com/falcosecurity/falco-talon","format":"long","icon":"https://upload.wikimedia.org/wikipedia/commons/2/26/Circaetus_gallicus_claw.jpg","username":"Falco Talon","webhookUrl":""},"smtp":{"format":"html","from":"","hostPort":"","password":"","tls":false,"to":"","user":""},"webhook":{"url":""}},"otel":{"collectorEndpoint":"","collectorPort":4317,"collectorUseInsecureGrpc":false,"metricsEnabled":false,"tracesEnabled":false},"printAllEvents":false,"rulesOverride":"- action: Terminate Pod\n actionner: kubernetes:terminate\n parameters:\n ignore_daemonsets: true\n ignore_statefulsets: true\n grace_period_seconds: 20\n","watchRules":true}config of Falco Talon (See https://docs.falco-talon.org/docs/configuration/)
config.awsobject{"accesKey":"","externalId":"","region":"","roleArn":"","secretKey":""}aws
config.aws.accesKeystring""access key (if not specified, default access_key from provider credential chain will be used)
config.aws.externalIdstring""external id
config.aws.regionstring""region (if not specified, default region from provider credential chain will be used)
config.aws.roleArnstring""role arn
config.aws.secretKeystring""secret key (if not specified, default secret_key from provider credential chain will be used)
config.deduplicationobject{"leaderElection":true,"timeWindowSeconds":5}deduplication of the Falco events
config.deduplication.leaderElectionbooltrueenable the leader election for cluster mode
config.deduplication.timeWindowSecondsint5duration in seconds for the deduplication time window
config.defaultNotifierslist["k8sevents"]default notifiers for all rules
config.listenAddressstring"0.0.0.0"listen address
config.listenPortint2803listen port
config.minioobject{"accessKey":"","endpoint":"","secretKey":"","useSsl":false}minio
config.minio.accessKeystring""access key
config.minio.endpointstring""endpoint
config.minio.secretKeystring""secret key
config.minio.useSslboolfalseuse ssl
config.notifiersobject{"elasticsearch":{"createIndexTemplate":true,"numberOfReplicas":1,"numberOfShards":1,"url":""},"loki":{"apiKey":"","customHeaders":{},"hostPort":"","tenant":"","user":""},"slack":{"footer":"https://github.com/falcosecurity/falco-talon","format":"long","icon":"https://upload.wikimedia.org/wikipedia/commons/2/26/Circaetus_gallicus_claw.jpg","username":"Falco Talon","webhookUrl":""},"smtp":{"format":"html","from":"","hostPort":"","password":"","tls":false,"to":"","user":""},"webhook":{"url":""}}notifiers (See https://docs.falco-talon.org/docs/notifiers/list/ for the settings)
config.notifiers.elasticsearchobject{"createIndexTemplate":true,"numberOfReplicas":1,"numberOfShards":1,"url":""}elasticsearch
config.notifiers.elasticsearch.createIndexTemplatebooltruecreate the index template
config.notifiers.elasticsearch.numberOfReplicasint1number of replicas
config.notifiers.elasticsearch.numberOfShardsint1number of shards
config.notifiers.elasticsearch.urlstring""url
config.notifiers.lokiobject{"apiKey":"","customHeaders":{},"hostPort":"","tenant":"","user":""}loki
config.notifiers.loki.apiKeystring""api key
config.notifiers.loki.customHeadersobject{}custom headers
config.notifiers.loki.hostPortstring""host:port
config.notifiers.loki.tenantstring""tenant
config.notifiers.loki.userstring""user
config.notifiers.slackobject{"footer":"https://github.com/falcosecurity/falco-talon","format":"long","icon":"https://upload.wikimedia.org/wikipedia/commons/2/26/Circaetus_gallicus_claw.jpg","username":"Falco Talon","webhookUrl":""}slack
config.notifiers.slack.footerstring"https://github.com/falcosecurity/falco-talon"footer
config.notifiers.slack.formatstring"long"format
config.notifiers.slack.iconstring"https://upload.wikimedia.org/wikipedia/commons/2/26/Circaetus_gallicus_claw.jpg"icon
config.notifiers.slack.usernamestring"Falco Talon"username
config.notifiers.slack.webhookUrlstring""webhook url
config.notifiers.smtpobject{"format":"html","from":"","hostPort":"","password":"","tls":false,"to":"","user":""}smtp
config.notifiers.smtp.formatstring"html"format
config.notifiers.smtp.fromstring""from
config.notifiers.smtp.hostPortstring""host:port
config.notifiers.smtp.passwordstring""password
config.notifiers.smtp.tlsboolfalseenable tls
config.notifiers.smtp.tostring""to
config.notifiers.smtp.userstring""user
config.notifiers.webhookobject{"url":""}webhook
config.notifiers.webhook.urlstring""url
config.otelobject{"collectorEndpoint":"","collectorPort":4317,"collectorUseInsecureGrpc":false,"metricsEnabled":false,"tracesEnabled":false}open telemetry parameters
config.otel.collectorEndpointstring""collector endpoint
config.otel.collectorPortint4317collector port
config.otel.collectorUseInsecureGrpcboolfalseuse insecure grpc
config.otel.metricsEnabledboolfalseenable otel metrics
config.otel.tracesEnabledboolfalseenable otel traces
config.printAllEventsboolfalseprint in stdout all received events, not only those which match a rule
config.watchRulesbooltrueauto reload the rules when the files change
extraEnvlist[{"name":"LOG_LEVEL","value":"warning"}]extra env
extraVolumeMountslist[]extra volume mounts to add to the falco-talon container
extraVolumeslist[]extra volumes to add to the pod (e.g. an emptyDir for a writable path when the container runs with readOnlyRootFilesystem: true)
grafanaobject{"dashboards":{"configMaps":{"talon":{"folder":"","folderAnnotation":"grafana_dashboard_folder","name":"falco-talon-grafana-dashboard","namespace":""}},"enabled":false}}grafana contains the configuration related to grafana.
grafana.dashboardsobject{"configMaps":{"talon":{"folder":"","folderAnnotation":"grafana_dashboard_folder","name":"falco-talon-grafana-dashboard","namespace":""}},"enabled":false}dashboards contains configuration for grafana dashboards.
grafana.dashboards.configMapsobject{"talon":{"folder":"","folderAnnotation":"grafana_dashboard_folder","name":"falco-talon-grafana-dashboard","namespace":""}}configmaps to be deployed that contain a grafana dashboard.
grafana.dashboards.configMaps.talonobject{"folder":"","folderAnnotation":"grafana_dashboard_folder","name":"falco-talon-grafana-dashboard","namespace":""}falco-talon contains the configuration for falco talon's dashboard.
grafana.dashboards.configMaps.talon.folderstring""folder where the dashboard is stored by grafana.
grafana.dashboards.configMaps.talon.folderAnnotationstring"grafana_dashboard_folder"annotation used by grafana
grafana.dashboards.configMaps.talon.namestring"falco-talon-grafana-dashboard"name specifies the name for the configmap.
grafana.dashboards.configMaps.talon.namespacestring""namespace specifies the namespace for the configmap.
grafana.dashboards.enabledboolfalseenabled specifies whether the dashboards should be deployed.
imageobject{"pullPolicy":"Always","registry":"falco.docker.scarf.sh","repository":"falcosecurity/falco-talon","tag":""}image parameters
image.pullPolicystring"Always"The image pull policy
image.registrystring"falco.docker.scarf.sh"The image registry to pull from
image.repositorystring"falcosecurity/falco-talon"The image repository to pull from
image.tagstring""Override the image tag to pull
imagePullSecretslist[]one or more secrets to be used when pulling images
ingressobject{"annotations":{},"enabled":false,"hosts":[{"host":"falco-talon.local","paths":[{"path":"/"}]}],"tls":[]}ingress parameters
ingress.annotationsobject{}annotations of the ingress
ingress.enabledboolfalseenable the ingress
ingress.hostslist[{"host":"falco-talon.local","paths":[{"path":"/"}]}]hosts
ingress.tlslist[]tls
nameOverridestring""override name
nodeSelectorobject{}node selector
podAnnotationsobject{}pod annotations
podSecurityContextobject{"fsGroup":1234,"runAsUser":1234}pod security context
podSecurityContext.fsGroupint1234group
podSecurityContext.runAsUserint1234user id
podSecurityPolicyobject{"create":false}pod security policy
podSecurityPolicy.createboolfalseenable the creation of the PSP
priorityClassNamestring""priority class name
rbacobject{"caliconetworkpolicies":["get","update","patch","create"],"ciliumnetworkpolicies":["get","update","patch","create"],"clusterroles":["get","delete"],"configmaps":["get","delete"],"daemonsets":["get","delete"],"deployments":["get","delete"],"events":["get","update","patch","create"],"leases":["get","update","patch","watch","create"],"namespaces":["get","delete"],"networkpolicies":["get","update","patch","create"],"nodes":["get","update","patch","watch","create"],"pods":["get","update","patch","delete","list"],"podsEphemeralcontainers":["patch","create"],"podsEviction":["get","create"],"podsExec":["get","create"],"podsLog":["get"],"replicasets":["get","delete"],"roles":["get","delete"],"secrets":["get","delete"],"serviceAccount":{"create":true,"name":""},"statefulsets":["get","delete"]}rbac
rbac.serviceAccount.createbooltruecreate the service account. If create is false, name is required
rbac.serviceAccount.namestring""name of the service account
replicaCountint2number of running pods
resourcesobject{}resources
securityContextobject{}container security context applied to the falco-talon container. Empty by default; set fields such as readOnlyRootFilesystem, allowPrivilegeEscalation, runAsNonRoot, capabilities and seccompProfile to run the container under a restricted profile.
serviceobject{"annotations":{},"port":2803,"type":"ClusterIP"}service parameters
service.annotationsobject{}annotations of the service
service.portint2803port of the service
service.typestring"ClusterIP"type of service
serviceMonitorobject{"additionalLabels":{},"enabled":false,"interval":"30s","path":"/metrics","port":"http","relabelings":[],"scheme":"http","scrapeTimeout":"10s","targetLabels":[],"tlsConfig":{}}serviceMonitor holds the configuration for the ServiceMonitor CRD.
serviceMonitor.additionalLabelsobject{}additionalLabels specifies labels to be added on the Service Monitor.
serviceMonitor.enabledboolfalseenable the deployment of a Service Monitor for the Prometheus Operator.
serviceMonitor.intervalstring"30s"interval specifies the time interval at which Prometheus should scrape metrics from the service.
serviceMonitor.pathstring

Deploy falco-talon with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has falco-talon 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 chartfalco-talon is pinned at v0.5.1 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