crowdsec
by QuenchWorks
CrowdSec: log-based attack detection with community scenarios; the Local API serves block decisions to bouncers. LAPI Deployment plus an agent DaemonSet reading node logs. Hardened by QuenchWorks: built from source, CVE-gated, cosign-signed and pinned by digest.
About this chart
Quenchworks CrowdSec
Hardened CrowdSec: agents read logs, match them against community attack scenarios and send alerts to the Local API (LAPI), which turns them into block decisions that bouncers (nginx, Traefik, a firewall) fetch. The image is crowdsec and cscli built from source with upstream's container entrypoint, CVE-gated at build, cosign-signed and pinned by digest.
The chart runs the LAPI as a Deployment (uid 1001, read-only rootfs, SQLite on a PVC) and one agent per node as a
DaemonSet that reads the kubelet's container logs from /var/log. The agent runs as uid 0 with every capability
dropped, because pod log files are 0640 root.
Install
helm install crowdsec oci://ghcr.io/quenchworks/charts/crowdsec
kubectl exec deploy/crowdsec-lapi -- cscli bouncers add my-bouncer
Bouncers reach the LAPI at http://crowdsec-lapi.<namespace>:8080 with that key.
Configuration
| Key | Default | What it does |
|---|---|---|
lapi.env | {} | Upstream container env for the LAPI (ENROLL_KEY, DISABLE_ONLINE_API, ...) |
lapi.envSecret | "" | A Secret loaded with envFrom; BOUNCER_KEY_<name>=<key> there pre-registers a bouncer |
lapi.persistence.enabled | true | Keeps decisions and registered bouncers across restarts |
agent.enabled | true | One agent per node |
agent.collections / agent.parsers | crowdsecurity/linux / crowdsecurity/cri-logs | Hub items installed at start (needs egress to the hub) |
agent.acquisition | /var/log/containers/*.log | Log sources, one acquisition document each |
auth.agentPassword | generated | The agents' login on the LAPI, kept across upgrades |
networkPolicy.enabled | true | Ingress allowed on 8080 and 6060 only |
Deploy crowdsec with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has crowdsec 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcrowdsec is pinned at v0.0.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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