Releases: crowdsecurity/crowdsec
v1.7.7
CrowdSec 1.7.7 brings 2 major changes:
- On linux, RE2 is now used by default for evaluating regexp in parsers
- WAF rules can now contain a mix of AND/OR conditions without any limits, giving much greater flexibility when writing new rules
RE2 by default on linux
CrowdsSec has supported for a long time using RE2 as the regexp engine, and with this release we make it the default.
CrowdSec has always used the builtin Go regexp package, which is a Go reimplementation of the RE2 library, but with known performance limitations.
The switch to RE2 will bring significantly increased regexp performance (one of the most critical part of CrowdSec) at the cost of slightly longer regexp compilation and higher baseline memory usage.
Important
If you encounter any issues with the new regexp engine, you can fallback to the previous Go implementation by setting the feature flag re2_disable_grok_support (see the documentation).
Other changes
Other notable changes include:
- a new
kindattribute for alerts used to identify its source (a scenario, a WAF rule, a manual decision creation, ...) - a new
cscli allowlist importcommand - support for the
HTTP_PROXYenvironment variable in thenotification-httpplugin - A resource leak under high load was fixed
Full changelog
New Features
- add LookupFile and FileMap expr helpers (#4372) @buixor
- waf rules: allow arbitrary mix of AND and OR conditions (#4358) @blotus
Improvements
- enable RE2 support by default on linux (#4386) @blotus
- cscli allowlists: add import command (#4378) @blotus
- WAF: expose more transformations from coraza (#4140) @blotus
- Add new
kindalert attribute (#4351) @blotus - Use environment proxy settings for notification-http (#4364) @op3
Bug Fixes
- allowlists: apply items to existing decisions in batch (#4095) @blotus
- waf: fix tests for modsec rules generation (#4385) @blotus
- windows: add file notification plugin in MSI package (#4367) @blotus
- leakroutine: call cancel after leakroutine returns (#4369) @blotus
- notification-sentinel: lower-case x-ms-date header for correct HMAC (#4288) @ebirn
- tests: remove temporary sqlite/plugin files from /tmp/ (#4332) @mmetc
- pkg/apiserver: fix scenario count in debug log (#4333) @mmetc
- pkg/csplugin: prevent race condition, deadlock (#4294) @mmetc
- pkg/acquisitioncontext: minimal fix for data race in tests (#4327) @mmetc
- acquisition/file: minimal fix for data race in tests (#4326) @mmetc
- fix lint fsutil/freebsd: unnecessary conversion (#4324) @mmetc
- cscli: consistent status and usage message for unknown subcommands (#4320) @mmetc
- cscli detect: set log type for caddy unit to "syslog" (#4321) @mmetc
- CI: add published_at to version.crowdsec.net/latest (#4291) @blotus
- cmd/crowdsec: assign overflow after parsing (#4226) @mmetc
- waf: format as CRS match only if anomaly score is not 0 (#4230) @blotus
Changes
- build(deps): bump cryptography from 46.0.3 to 46.0.5 in /build/docker/test (#4298) @dependabot[bot]
- support for waf- alias in cscli (#4347) @buixor
- refact pkg/dumps: reduce complexity (#4209) @mmetc
- lint: refact pkg/dumps for nilaway (#4208) @mmetc
- refact pkg/parser: redundant indirection (#4344) @mmetc
- refact pkg/parser: extract+embed NodeConfig in Node struct (#4343) @mmetc
- move calls to trace.ReportPanic() on top of goroutines (#4338) @mmetc
- pkg/csplugin: simplify notification loop; noop with empty queue (#4328) @mmetc
- pkg/parsers: light refact, remove redundant code (#4213) @mmetc
- refact cmd/crowdsec: encapsulate cache into alertBuffer (#4300) @mmetc
- cmd/notification-*: don't provide the same context twice for request (#4316) @mmetc
- don't flush 127.0.0.1 (#4315) @sabban
- clipapi: replace tomb with errgroup (#4207) @mmetc
- refact cmd/crowdsec: remove redundant global variable (#4299) @mmetc
- refact: remove unused code in crowdsec-cli, apiserver, acquisition, database (#4304) @mmetc
- refact pkg/leakybucket: trim down redundant Leaky struct fields (#4290) @mmetc
- pkg/leakybucket: remove global bucketStore, unused parameters + tags (#4286) @mmetc
- pkg/leakybucket: remove Simulated field from Leaky, keep it in config (#4285) @mmetc
- pkg/leakybucket: extract BucketSpec from BucketFactory (#4284) @mmetc
- refact pkg/leakybucket: extract methods from LoadBucket() part 2 (#4282) @mmetc
- pkg/leakybucket: refact test loop, more explicit failures in testFile() (#4281) @mmetc
- refact pkg/leakybucket: extract methods from LoadBucket() (#4279) @mmetc
- pkg/leakybucket: replace Signal chan with explicit read/done chans (#4277) @mmetc
- pkg/leakybucket: replace waitgroups with single rwlock (#4276) @mmetc
- pkg/leakybucket: garbage collect: compare float with epsilon (#4275) @mmetc
- pkg/leakybucket: refactor tests (#4272) @mmetc
- pkg/leakybucket: replace sycn.Map with map + mutex (#4271) @mmetc
- pkg/leakybucket: replace global counter with call to bucket store (#4273) @mmetc
- pkg/leakybucket: review README.md (#4274) @mmetc
- pkg/leakybucket: encapsulate store map + add methods (#4253) @mmetc
- pkg/leakybucket: remove redundant bool var (#4252) @mmetc
- fix hub console side (#4266) @sabban
- version workflow fix (#4262) @sabban
- rename the prod branch to main (#4261) @sabban
- add version workflow (#4210) @sabban
- pkg/leakybucket: remove unused global (#4251) @mmetc
- pkg/leakybucket: pass bucket factories by pointer (#4250) @mmetc
- pkt/leakybucket: compileScopeFilter() -> ScopeType.CompileFilter() (#4247) @mmetc
- pkg/leakybucket: rename OverflowFilter -> OverflowProcessor (#4248) @mmetc
- pkg/leakybucket: rename Buckets -> BucketStore (#4246) @mmetc
- refact leaky bayesian: method to function, unlock w/defer (#4242) @mmetc
- pkg/leakybucket: early return (#4244) @mmetc
- pkg/leakybucket: variable shorthand (#4245) @mmetc
- pkg/leakybucket: move LeakRoutine to method, rename parameters (#4243) @mmetc
- pkg/leakybucket: review bucket validation and tests (#4241) @mmetc
- refact: remove unnecessary pointers to map, string, mutex (#4212) @mmetc
- pkg/leakybucket: function to method BucketFactory.LoadBucket() (#4229) @mmetc
- pkg/leakybucket: BucketType interface, method BucketFactory.Validate() (#4228) @mmetc
Chore / Deps
- build(deps): bump github.com/buger/jsonparser from 1.1.1 to 1.1.2 (#4382) @dependabot[bot]
- CI: use windows-2025 image (#4379) @blotus
- build(deps): bump github/codeql-action from 4.32.6 to 4.33.0 (#4371) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.5.0 to 7.6.0 (#4373) @dependabot[bot]
- build(deps): bump google.golang.org/grpc from 1.74.2 to 1.79.3 (#4376) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.3.1 to 7.5.0 (#4366) @dependabot[bot]
- build(deps): bump filippo.io/edwards25519 from 1.1.0 to 1.1.1 (#4319) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.32.5 to 4.32.6 (#4360) @dependabot[bot]
- build(deps): bump docker/build-push-action from 6.19.2 to 7.0.0 (#4361) @dependabot[bot]
- build(deps): bump release-drafter/release-drafter from 6.2.0 to 6.4.0 (#4362) @dependabot[bot]
- build(deps): bump docker/setup-buildx-action from 3.12.0 to 4.0.0 (#4356) @dependabot[bot]
- build(deps): bump docker/setup-qemu-action from 3.7.0 to 4.0.0 (#4353) @dependabot[bot]
- build(deps): bump actions/setup-node from 6.2.0 to 6.3.0 (#4352) @dependabot[bot]
- build(deps): bump docker/login-action from 3.7.0 to 4.0.0 (#4354) @dependabot[bot]
- deps: update actions and golangci-lint (#4348) @mmetc
- build(deps): bump github/codeql-action from 4.32.4 to 4.32.5 (#4345) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.3.0 to 7.3.1 (#4346) @dependabot[bot]
- build(deps): bump actions/setup-go from 6.2.0 to 6.3.0 (#4339) @dependabot[bot]
- build(deps): bump actions/upload-artifact from 6.0.0 to 7.0.0 (#4342) @dependabot[bot]
- replace trace.CatchPanic(...) with trace.ReportPanic() (#4336) @mmetc
- build(deps): bump github/codeql-action from 4.32.3 to 4.32.4 (#4322) @dependabot[bot]
- deps: update gocron v1 -> v2 (#4317) @mmetc
- build(deps): bump docker/build-push-action from 6.19.0 to 6.19.2 (#4306) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.32.2 to 4.32.3 (#4312) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.32.1 to 4.32.2 (#4292) @dependabot[bot]
- update golangci-lint 2.9 (#4302) @mmetc
- build(deps): bump astral-sh/setup-uv from 7.2.1 to 7.3.0 (#4296) @dependabot[bot]
- build(deps): bump docker/build-push-action from 6.18.0 to 6.19.0 (#4303) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.32.0 to 4.32.1 (#4278) @dependabot[bot]
- build(deps): bump actions/setup-node from 4.4.0 to 6.2.0 (#4264) @dependabot[bot]
- CI: update python and dependencies (#...
v1.7.7-rc1
New Features
- add LookupFile and FileMap expr helpers (#4372) @buixor
- waf rules: allow arbitrary mix of AND and OR conditions (#4358) @blotus
Improvements
- enable RE2 support by default on linux (#4386) @blotus
- cscli allowlists: add import command (#4378) @blotus
- WAF: expose more transformations from coraza (#4140) @blotus
- Add new
kindalert attribute (#4351) @blotus - Use environment proxy settings for notification-http (#4364) @op3
Bug Fixes
- allowlists: apply items to existing decisions in batch (#4095) @blotus
- waf: fix tests for modsec rules generation (#4385) @blotus
- windows: add file notification plugin in MSI package (#4367) @blotus
- leakroutine: call cancel after leakroutine returns (#4369) @blotus
- notification-sentinel: lower-case x-ms-date header for correct HMAC (#4288) @ebirn
- tests: remove temporary sqlite/plugin files from /tmp/ (#4332) @mmetc
- pkg/apiserver: fix scenario count in debug log (#4333) @mmetc
- pkg/csplugin: prevent race condition, deadlock (#4294) @mmetc
- pkg/acquisitioncontext: minimal fix for data race in tests (#4327) @mmetc
- acquisition/file: minimal fix for data race in tests (#4326) @mmetc
- fix lint fsutil/freebsd: unnecessary conversion (#4324) @mmetc
- cscli: consistent status and usage message for unknown subcommands (#4320) @mmetc
- cscli detect: set log type for caddy unit to "syslog" (#4321) @mmetc
- CI: add published_at to version.crowdsec.net/latest (#4291) @blotus
- cmd/crowdsec: assign overflow after parsing (#4226) @mmetc
- waf: format as CRS match only if anomaly score is not 0 (#4230) @blotus
Changes
- build(deps): bump cryptography from 46.0.3 to 46.0.5 in /build/docker/test (#4298) @dependabot[bot]
- support for waf- alias in cscli (#4347) @buixor
- refact pkg/dumps: reduce complexity (#4209) @mmetc
- lint: refact pkg/dumps for nilaway (#4208) @mmetc
- refact pkg/parser: redundant indirection (#4344) @mmetc
- refact pkg/parser: extract+embed NodeConfig in Node struct (#4343) @mmetc
- move calls to trace.ReportPanic() on top of goroutines (#4338) @mmetc
- pkg/csplugin: simplify notification loop; noop with empty queue (#4328) @mmetc
- pkg/parsers: light refact, remove redundant code (#4213) @mmetc
- refact cmd/crowdsec: encapsulate cache into alertBuffer (#4300) @mmetc
- cmd/notification-*: don't provide the same context twice for request (#4316) @mmetc
- don't flush 127.0.0.1 (#4315) @sabban
- clipapi: replace tomb with errgroup (#4207) @mmetc
- refact cmd/crowdsec: remove redundant global variable (#4299) @mmetc
- refact: remove unused code in crowdsec-cli, apiserver, acquisition, database (#4304) @mmetc
- refact pkg/leakybucket: trim down redundant Leaky struct fields (#4290) @mmetc
- pkg/leakybucket: remove global bucketStore, unused parameters + tags (#4286) @mmetc
- pkg/leakybucket: remove Simulated field from Leaky, keep it in config (#4285) @mmetc
- pkg/leakybucket: extract BucketSpec from BucketFactory (#4284) @mmetc
- refact pkg/leakybucket: extract methods from LoadBucket() part 2 (#4282) @mmetc
- pkg/leakybucket: refact test loop, more explicit failures in testFile() (#4281) @mmetc
- refact pkg/leakybucket: extract methods from LoadBucket() (#4279) @mmetc
- pkg/leakybucket: replace Signal chan with explicit read/done chans (#4277) @mmetc
- pkg/leakybucket: replace waitgroups with single rwlock (#4276) @mmetc
- pkg/leakybucket: garbage collect: compare float with epsilon (#4275) @mmetc
- pkg/leakybucket: refactor tests (#4272) @mmetc
- pkg/leakybucket: replace sycn.Map with map + mutex (#4271) @mmetc
- pkg/leakybucket: replace global counter with call to bucket store (#4273) @mmetc
- pkg/leakybucket: review README.md (#4274) @mmetc
- pkg/leakybucket: encapsulate store map + add methods (#4253) @mmetc
- pkg/leakybucket: remove redundant bool var (#4252) @mmetc
- fix hub console side (#4266) @sabban
- version workflow fix (#4262) @sabban
- rename the prod branch to main (#4261) @sabban
- add version workflow (#4210) @sabban
- pkg/leakybucket: remove unused global (#4251) @mmetc
- pkg/leakybucket: pass bucket factories by pointer (#4250) @mmetc
- pkt/leakybucket: compileScopeFilter() -> ScopeType.CompileFilter() (#4247) @mmetc
- pkg/leakybucket: rename OverflowFilter -> OverflowProcessor (#4248) @mmetc
- pkg/leakybucket: rename Buckets -> BucketStore (#4246) @mmetc
- refact leaky bayesian: method to function, unlock w/defer (#4242) @mmetc
- pkg/leakybucket: early return (#4244) @mmetc
- pkg/leakybucket: variable shorthand (#4245) @mmetc
- pkg/leakybucket: move LeakRoutine to method, rename parameters (#4243) @mmetc
- pkg/leakybucket: review bucket validation and tests (#4241) @mmetc
- refact: remove unnecessary pointers to map, string, mutex (#4212) @mmetc
- pkg/leakybucket: function to method BucketFactory.LoadBucket() (#4229) @mmetc
- pkg/leakybucket: BucketType interface, method BucketFactory.Validate() (#4228) @mmetc
Chore / Deps
- build(deps): bump github.com/buger/jsonparser from 1.1.1 to 1.1.2 (#4382) @dependabot[bot]
- CI: use windows-2025 image (#4379) @blotus
- build(deps): bump github/codeql-action from 4.32.6 to 4.33.0 (#4371) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.5.0 to 7.6.0 (#4373) @dependabot[bot]
- build(deps): bump google.golang.org/grpc from 1.74.2 to 1.79.3 (#4376) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.3.1 to 7.5.0 (#4366) @dependabot[bot]
- build(deps): bump filippo.io/edwards25519 from 1.1.0 to 1.1.1 (#4319) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.32.5 to 4.32.6 (#4360) @dependabot[bot]
- build(deps): bump docker/build-push-action from 6.19.2 to 7.0.0 (#4361) @dependabot[bot]
- build(deps): bump release-drafter/release-drafter from 6.2.0 to 6.4.0 (#4362) @dependabot[bot]
- build(deps): bump docker/setup-buildx-action from 3.12.0 to 4.0.0 (#4356) @dependabot[bot]
- build(deps): bump docker/setup-qemu-action from 3.7.0 to 4.0.0 (#4353) @dependabot[bot]
- build(deps): bump actions/setup-node from 6.2.0 to 6.3.0 (#4352) @dependabot[bot]
- build(deps): bump docker/login-action from 3.7.0 to 4.0.0 (#4354) @dependabot[bot]
- deps: update actions and golangci-lint (#4348) @mmetc
- build(deps): bump github/codeql-action from 4.32.4 to 4.32.5 (#4345) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.3.0 to 7.3.1 (#4346) @dependabot[bot]
- build(deps): bump actions/setup-go from 6.2.0 to 6.3.0 (#4339) @dependabot[bot]
- build(deps): bump actions/upload-artifact from 6.0.0 to 7.0.0 (#4342) @dependabot[bot]
- replace trace.CatchPanic(...) with trace.ReportPanic() (#4336) @mmetc
- build(deps): bump github/codeql-action from 4.32.3 to 4.32.4 (#4322) @dependabot[bot]
- deps: update gocron v1 -> v2 (#4317) @mmetc
- build(deps): bump docker/build-push-action from 6.19.0 to 6.19.2 (#4306) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.32.2 to 4.32.3 (#4312) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.32.1 to 4.32.2 (#4292) @dependabot[bot]
- update golangci-lint 2.9 (#4302) @mmetc
- build(deps): bump astral-sh/setup-uv from 7.2.1 to 7.3.0 (#4296) @dependabot[bot]
- build(deps): bump docker/build-push-action from 6.18.0 to 6.19.0 (#4303) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.32.0 to 4.32.1 (#4278) @dependabot[bot]
- build(deps): bump actions/setup-node from 4.4.0 to 6.2.0 (#4264) @dependabot[bot]
- CI: update python and dependencies (#4249) @mmetc
- build(deps): bump actions/checkout from 6.0.1 to 6.0.2 (#4263) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.2.0 to 7.2.1 (#4265) @dependabot[bot]
- build(deps): bump docker/login-action from 3.6.0 to 3.7.0 (#4257) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.31.11 to 4.32.0 (#4254) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.31.10 to 4.31.11 (#4233) @dependabot[bot]
- build(deps): bump actions/checkout from 6.0.1 to 6.0.2 (#4234) @dependabot[bot]
- build(deps): bump release-drafter/release-drafter from 6.1.0 to 6.2.0 (#4222) @dependabot[bot]
- build(deps): bump actions/setup-python from 6.1.0 to 6.2.0 (#4223) @dependabot[bot]
Geolite2 notice
This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.
Installation
Take a look at the installation instructions.
v1.7.6
Changes
Bug Fixes
Geolite2 notice
This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.
Installation
Take a look at the installation instructions.
v1.7.5
Changes
- replace syscall with unix/windows packages where possible (#3032) @mmetc
- pkg/acquisition: refact configuration validation and tests (#4187) @mmetc
- pkg/acquisition: remove/restore mock datasources after usage (#4190) @mmetc
- pkg/leakybucket: replace global variables with injected StateDumper (#4197) @mmetc
- pkg/acquisition: method docs, deduplicate module names (#4192) @mmetc
- errors.Wrapf -> fmt.Errorf, remove dependency on github.com/pkg/errors (#4198) @mmetc
- update golangci-lint 2.8 (#4194) @mmetc
- notification plugins: readability / dry refact, unnecessary pointers (#4166) @mmetc
- refact acquisition/appsec: happy path (#4183) @mmetc
- pkg/acquisition/registry, move datasource registration to avoid dependency (#4189) @mmetc
- gin middleware: drop closures (#4186) @mmetc
- acquisition/journalctl: test cleanup (#4182) @mmetc
- cscli hubtest: extract method finalizeRun() (#4181) @mmetc
- refact cmd/crowdsec: remove globals ParseDump, BucketPourTrack (#4184) @mmetc
- refact pkg/apiserver: happy path; nil guard (#4180) @mmetc
- refact pkg/leakybucket: drop closures (#4178) @mmetc
- cmd/crowdsec: rename pipeline channels (#4175) @mmetc
- move dir debian, rpm to /build/ (#4174) @mmetc
- refact cmd/crowdsec: remove globals, lint, etc (#4163) @mmetc
- lint: modernize - enable slicessort, stringsseq (#4162) @mmetc
- appsec: inject dependencies, avoid globals (#4148) @mmetc
- CI: move windows build scripts to ./build/windows (#4145) @mmetc
- remove obsolete readme (replaced by go generate) (#4164) @mmetc
- cmd/crowdsec: refact dump.go, loops (#4158) @mmetc
- cmd/crowdsec: refact output.go, pour.go, parse.go (#4157) @mmetc
- refact: drop parserTomb, lpMetricsTomb (#4138) @mmetc
- drop unused method Client.IsMachineRegistered() (#4121) @mmetc
- CI: build with the tag "nomsgpack" to reduce binary size (#4151) @mmetc
- move ./docker to ./build/docker (#4130) @mmetc
- acquisition refact: context-aware OneShot(), for file + journalctl + wineventlog (#4125) @mmetc
- lint: forbidigo (no print or printf in production, prefer fprint) (#4141) @mmetc
- CI: avoid using nolint with revive (#4144) @mmetc
- Lint: add explicit per-linter settings (#4134) @mmetc
- refact pkg/acquisition: split docker.go (#4065) @mmetc
- get rid of tombs in leakybucket package (#4127) @sabban
- refact pkg/acquisition: cloudwatch configuration (#4058) @mmetc
- refact pkg/acquisition: kinesis configuration (#4059) @mmetc
- refact pkg/acquisition: k8saudit configuration (#4060) @mmetc
- refact pkg/acquisition: http configuration (#4061) @mmetc
- refact heartbeat: context-aware method (#4126) @mmetc
- pkg/leakybucket refact: unexport, unused, explicit field names (#4123) @mmetc
- docker build: run builds on large runner (#4120) @blotus
Improvements
- docker datasource schema (#4206) @mmetc
- lint: enable bodyclose (ensure response bodies are closed to avoid leaks) (#4200) @mmetc
- feat: Add ParseKVLax for Flexible Key-Value Parsing (#4007) @LaurenceJJones
- pkg/parser: avoid calling spew unless trace (#4156) @mmetc
- leakybucket: reduce error verbosity, test for misconfiguration (#4087) @mmetc
- feat(appsec): support transaction id header for request tracing (#4124) @LaurenceJJones
Bug Fixes
- update functional tests with time-based-bf (#4217) @mmetc
- papi: check if decision is allowlisted before adding it (#4196) @blotus
- pkg/acquisition: register mock datasource for YAML tests (#4205) @mmetc
- pkg/acquisition: prevent duplicate send in case of transform error (#4191) @mmetc
- CI fix - exit lapi during hub tests; pass container struct reference instead of slice (#4202) @mmetc
- CAPI: always reuse the stored token (#4201) @blotus
- fix #4066: don't prepare the hub in lapi-only containers (#4169) @mmetc
- fix #3991 - Acquisition config formatting in bug template (#4170) @mmetc
- fix typos in function name, comments and user-facing docs (#4154) @mmetc
- refact appsec tests: prevent data race (#3902) @mmetc
- fix build issue on freebsd, add cross platform CI build and lint target (#4109) @mmetc
Chore / Deps
- build(deps): bump actions/setup-go from 6.1.0 to 6.2.0 (#4195) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.31.9 to 4.31.10 (#4193) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.1.6 to 7.2.0 (#4185) @dependabot[bot]
- CI/tests: update bats-*, remove bats-mock (#4172) @mmetc
- deps: update modernc.org/sqlite (#4177) @mmetc
- CI, docker: update yq to v4.50.1 (#4179) @mmetc
- build(deps): bump docker/setup-buildx-action from 3.11.1 to 3.12.0 (#4167) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.31.8 to 4.31.9 (#4153) @dependabot[bot]
- update expr to 1.17.7 (#4150) @blotus
- build(deps): bump actions/upload-artifact from 5.0.0 to 6.0.0 (#4146) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.1.5 to 7.1.6 (#4147) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.31.7 to 4.31.8 (#4135) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.31.6 to 4.31.7 (#4116) @dependabot[bot]
- CI: update and/or pin actions with tag comments (#4108) @mmetc
- CI: update golangci-lint to 2.7 (#4110) @mmetc
- make: move ./mk to ./build/mk, update gmsl (#4111) @mmetc
Geolite2 notice
This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.
Installation
Take a look at the installation instructions.
v1.7.5-rc1
Changes
- replace syscall with unix/windows packages where possible (#3032) @mmetc
- pkg/acquisition: refact configuration validation and tests (#4187) @mmetc
- pkg/acquisition: remove/restore mock datasources after usage (#4190) @mmetc
- pkg/leakybucket: replace global variables with injected StateDumper (#4197) @mmetc
- pkg/acquisition: method docs, deduplicate module names (#4192) @mmetc
- errors.Wrapf -> fmt.Errorf, remove dependency on github.com/pkg/errors (#4198) @mmetc
- update golangci-lint 2.8 (#4194) @mmetc
- notification plugins: readability / dry refact, unnecessary pointers (#4166) @mmetc
- refact acquisition/appsec: happy path (#4183) @mmetc
- pkg/acquisition/registry, move datasource registration to avoid dependency (#4189) @mmetc
- gin middleware: drop closures (#4186) @mmetc
- acquisition/journalctl: test cleanup (#4182) @mmetc
- cscli hubtest: extract method finalizeRun() (#4181) @mmetc
- refact cmd/crowdsec: remove globals ParseDump, BucketPourTrack (#4184) @mmetc
- refact pkg/apiserver: happy path; nil guard (#4180) @mmetc
- refact pkg/leakybucket: drop closures (#4178) @mmetc
- cmd/crowdsec: rename pipeline channels (#4175) @mmetc
- move dir debian, rpm to /build/ (#4174) @mmetc
- refact cmd/crowdsec: remove globals, lint, etc (#4163) @mmetc
- lint: modernize - enable slicessort, stringsseq (#4162) @mmetc
- appsec: inject dependencies, avoid globals (#4148) @mmetc
- CI: move windows build scripts to ./build/windows (#4145) @mmetc
- remove obsolete readme (replaced by go generate) (#4164) @mmetc
- cmd/crowdsec: refact dump.go, loops (#4158) @mmetc
- cmd/crowdsec: refact output.go, pour.go, parse.go (#4157) @mmetc
- refact: drop parserTomb, lpMetricsTomb (#4138) @mmetc
- drop unused method Client.IsMachineRegistered() (#4121) @mmetc
- CI: build with the tag "nomsgpack" to reduce binary size (#4151) @mmetc
- move ./docker to ./build/docker (#4130) @mmetc
- acquisition refact: context-aware OneShot(), for file + journalctl + wineventlog (#4125) @mmetc
- lint: forbidigo (no print or printf in production, prefer fprint) (#4141) @mmetc
- CI: avoid using nolint with revive (#4144) @mmetc
- Lint: add explicit per-linter settings (#4134) @mmetc
- refact pkg/acquisition: split docker.go (#4065) @mmetc
- get rid of tombs in leakybucket package (#4127) @sabban
- refact pkg/acquisition: cloudwatch configuration (#4058) @mmetc
- refact pkg/acquisition: kinesis configuration (#4059) @mmetc
- refact pkg/acquisition: k8saudit configuration (#4060) @mmetc
- refact pkg/acquisition: http configuration (#4061) @mmetc
- refact heartbeat: context-aware method (#4126) @mmetc
- pkg/leakybucket refact: unexport, unused, explicit field names (#4123) @mmetc
- docker build: run builds on large runner (#4120) @blotus
Improvements
- docker datasource schema (#4206) @mmetc
- lint: enable bodyclose (ensure response bodies are closed to avoid leaks) (#4200) @mmetc
- feat: Add ParseKVLax for Flexible Key-Value Parsing (#4007) @LaurenceJJones
- pkg/parser: avoid calling spew unless trace (#4156) @mmetc
- leakybucket: reduce error verbosity, test for misconfiguration (#4087) @mmetc
- feat(appsec): support transaction id header for request tracing (#4124) @LaurenceJJones
Bug Fixes
- papi: check if decision is allowlisted before adding it (#4196) @blotus
- pkg/acquisition: register mock datasource for YAML tests (#4205) @mmetc
- pkg/acquisition: prevent duplicate send in case of transform error (#4191) @mmetc
- CI fix - exit lapi during hub tests; pass container struct reference instead of slice (#4202) @mmetc
- CAPI: always reuse the stored token (#4201) @blotus
- fix #4066: don't prepare the hub in lapi-only containers (#4169) @mmetc
- fix #3991 - Acquisition config formatting in bug template (#4170) @mmetc
- fix typos in function name, comments and user-facing docs (#4154) @mmetc
- refact appsec tests: prevent data race (#3902) @mmetc
- fix build issue on freebsd, add cross platform CI build and lint target (#4109) @mmetc
Chore / Deps
- build(deps): bump actions/setup-go from 6.1.0 to 6.2.0 (#4195) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.31.9 to 4.31.10 (#4193) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.1.6 to 7.2.0 (#4185) @dependabot[bot]
- CI/tests: update bats-*, remove bats-mock (#4172) @mmetc
- deps: update modernc.org/sqlite (#4177) @mmetc
- CI, docker: update yq to v4.50.1 (#4179) @mmetc
- build(deps): bump docker/setup-buildx-action from 3.11.1 to 3.12.0 (#4167) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.31.8 to 4.31.9 (#4153) @dependabot[bot]
- update expr to 1.17.7 (#4150) @blotus
- build(deps): bump actions/upload-artifact from 5.0.0 to 6.0.0 (#4146) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.1.5 to 7.1.6 (#4147) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.31.7 to 4.31.8 (#4135) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.31.6 to 4.31.7 (#4116) @dependabot[bot]
- CI: update and/or pin actions with tag comments (#4108) @mmetc
- CI: update golangci-lint to 2.7 (#4110) @mmetc
- make: move ./mk to ./build/mk, update gmsl (#4111) @mmetc
Geolite2 notice
This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.
Installation
Take a look at the installation instructions.
v1.7.4
Changes
- docker: remove CROWDSEC_CONTAINER_ENV (#4085) @mmetc
- refact cscli: define csconfig.Getter once (#4091) @mmetc
- refact load/save apic token: dependencies and sentinel errors (#4081) @mmetc
- pkg/csplugin: use backoff package to retry notifications (#3944) @mmetc
- refact pkg/database batching (#3906) @mmetc
- refact pkg/acquisition: split appsec.go (#4043) @mmetc
- refact pkg/acquisition: journalctl configuration (#4057) @mmetc
- lint revive: lower complexity threshold (#4056) @mmetc
- lint: unused parameters / 2 (#4055) @mmetc
- lint: unused parameters (#4049) @mmetc
- refact pkg/acquisition: split loki.go (#4034) @mmetc
- refact pkg/acquisition: split victorialogs.go (#4037) @mmetc
- refact pkg/acquisition: split wineventlog.go (#4036) @mmetc
- refact pkg/acquisition: split s3.go (#4035) @mmetc
- refact pkg/acquisition: split k8s_audit.go (#4033) @mmetc
- refact pkg/acquisition: split kinesis.go (#4032) @mmetc
- refact pkg/acquisition: split kafka.go (#4031) @mmetc
- refact pkg/acquisition: split cloudwatch.go (#4029) @mmetc
- refact pkg/acquisition: split http.go (#4030) @mmetc
- refactg pkg/acquisition: split file.go (#4038) @mmetc
- refact pkg/acquisition: split syslog.go (#4028) @mmetc
- papi: explicit context (#3973) @mmetc
- pkg/csplugin: remove unused function (#4019) @mmetc
- pkg/types -> new imports pt 4 (#4012) @mmetc
- pkg/types -> new imports pt 3 (#4014) @mmetc
- pkg/types -> new imports pt 2 (#4013) @mmetc
- pkg/types -> new imports pt 1 (#4011) @mmetc
- pkg/types -> pkg/{pipeline,fsutil,enrichment,logging...} (#4006) @mmetc
- CI: enable linter "protogetter" (#3995) @mmetc
- enable linters: unnecessary-format, unused-receiver (#4001) @mmetc
- refact: remove unused struct fields and params / 3; enable linter "unused" (#3334) @mmetc
New Features
Improvements
- pkg/acquisition: update syslog to RestartableStreamer (#4040) @mmetc
- refact logging configuration; add log_media="syslog" (#4045) @mmetc
- cscli hubtest: better report docker/nuclei errors (#4052) @mmetc
- build: check make version before running Makefile (#4054) @mmetc
- pkg/acquisition: refact journalctl datasource and unified retry loop (#4023) @mmetc
- option api.server.disable_usage_metrics_export (#4021) @mmetc
- build: optional pure-go sqlite driver (#3908) @mmetc
Bug Fixes
- LAPI metrics: don't use empty path as label for LAPI hits metrics (#4106) @blotus
- fix accessLogger setup to separate file (#4103) @mmetc
- docker acquisition: prevent data races (#3956) @mmetc
- Fix avoidable prometheus metrics cardinality (#4080) @g00g1
- loki acquisition: remove forgotten debug print (#4062) @mmetc
- fix 2808: show certificate path in "lapi status" (#4053) @mmetc
- decisionStream: only select required fields from the DB (#4024) @blotus
Documentation
Chore / Deps
- build(deps): bump github/codeql-action from 4.31.4 to 4.31.6 (#4101) @dependabot[bot]
- build(deps): bump golangci/golangci-lint-action from 9.0.0 to 9.1.0 (#4083) @dependabot[bot]
- Update go-re2 to 1.10.0 (#4020) @blotus
- waf: remove custom raw body processor and use the upstream one (#4092) @blotus
- build(deps): bump actions/setup-python from 6.0.0 to 6.1.0 (#4089) @dependabot[bot]
- update go-cs-lib (#4084) @mmetc
- update coraza (#4047) @blotus
- build(deps): bump actions/checkout from 5.0.1 to 6.0.0 (#4077) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.1.3 to 7.1.4 (#4078) @dependabot[bot]
- replace prom2json with native Prometheus parser and context-aware scraping in CLI metrics (#3932) @mmetc
- build(deps): bump actions/setup-go from 6.0.0 to 6.1.0 (#4073) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.31.3 to 4.31.4 (#4069) @dependabot[bot]
- build(deps): bump actions/checkout from 5.0.0 to 5.0.1 (#4064) @dependabot[bot]
- update docker/docker to moby/moby (version docker-v29.0.0) (#4048) @mmetc
- build(deps): bump github/codeql-action from 4.31.0 to 4.31.3 (#4051) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.1.2 to 7.1.3 (#4042) @dependabot[bot]
- build(deps): bump golangci/golangci-lint-action from 8.0.0 to 9.0.0 (#4041) @dependabot[bot]
- build(deps): bump docker/setup-qemu-action from 3.6.0 to 3.7.0 (#4025) @dependabot[bot]
- CI: update golangci-lint to 2.6.1 (#4026) @mmetc
- waf: extract temp state from AppsecRuntimeConfig (#3952) @blotus
- build(deps): bump astral-sh/setup-uv from 7.1.1 to 7.1.2 (#4009) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.30.9 to 4.31.0 (#4008) @dependabot[bot]
- build(deps): bump actions/upload-artifact from 4.6.2 to 5.0.0 (#4010) @dependabot[bot]
Geolite2 notice
This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.
Installation
Take a look at the installation instructions.
v1.7.4-rc2
Changes
- docker: remove CROWDSEC_CONTAINER_ENV (#4085) @mmetc
- refact cscli: define csconfig.Getter once (#4091) @mmetc
- refact load/save apic token: dependencies and sentinel errors (#4081) @mmetc
- pkg/csplugin: use backoff package to retry notifications (#3944) @mmetc
- refact pkg/database batching (#3906) @mmetc
- refact pkg/acquisition: split appsec.go (#4043) @mmetc
- refact pkg/acquisition: journalctl configuration (#4057) @mmetc
- lint revive: lower complexity threshold (#4056) @mmetc
- lint: unused parameters / 2 (#4055) @mmetc
- lint: unused parameters (#4049) @mmetc
- refact pkg/acquisition: split loki.go (#4034) @mmetc
- refact pkg/acquisition: split victorialogs.go (#4037) @mmetc
- refact pkg/acquisition: split wineventlog.go (#4036) @mmetc
- refact pkg/acquisition: split s3.go (#4035) @mmetc
- refact pkg/acquisition: split k8s_audit.go (#4033) @mmetc
- refact pkg/acquisition: split kinesis.go (#4032) @mmetc
- refact pkg/acquisition: split kafka.go (#4031) @mmetc
- refact pkg/acquisition: split cloudwatch.go (#4029) @mmetc
- refact pkg/acquisition: split http.go (#4030) @mmetc
- refactg pkg/acquisition: split file.go (#4038) @mmetc
- refact pkg/acquisition: split syslog.go (#4028) @mmetc
- papi: explicit context (#3973) @mmetc
- pkg/csplugin: remove unused function (#4019) @mmetc
- pkg/types -> new imports pt 4 (#4012) @mmetc
- pkg/types -> new imports pt 3 (#4014) @mmetc
- pkg/types -> new imports pt 2 (#4013) @mmetc
- pkg/types -> new imports pt 1 (#4011) @mmetc
- pkg/types -> pkg/{pipeline,fsutil,enrichment,logging...} (#4006) @mmetc
- CI: enable linter "protogetter" (#3995) @mmetc
- enable linters: unnecessary-format, unused-receiver (#4001) @mmetc
- refact: remove unused struct fields and params / 3; enable linter "unused" (#3334) @mmetc
New Features
Improvements
- pkg/acquisition: update syslog to RestartableStreamer (#4040) @mmetc
- refact logging configuration; add log_media="syslog" (#4045) @mmetc
- cscli hubtest: better report docker/nuclei errors (#4052) @mmetc
- build: check make version before running Makefile (#4054) @mmetc
- pkg/acquisition: refact journalctl datasource and unified retry loop (#4023) @mmetc
- option api.server.disable_usage_metrics_export (#4021) @mmetc
- build: optional pure-go sqlite driver (#3908) @mmetc
Bug Fixes
- fix accessLogger setup to separate file (#4103) @mmetc
- docker acquisition: prevent data races (#3956) @mmetc
- Fix avoidable prometheus metrics cardinality (#4080) @g00g1
- loki acquisition: remove forgotten debug print (#4062) @mmetc
- fix 2808: show certificate path in "lapi status" (#4053) @mmetc
- decisionStream: only select required fields from the DB (#4024) @blotus
Documentation
Chore / Deps
- build(deps): bump github/codeql-action from 4.31.4 to 4.31.6 (#4101) @dependabot[bot]
- build(deps): bump golangci/golangci-lint-action from 9.0.0 to 9.1.0 (#4083) @dependabot[bot]
- Update go-re2 to 1.10.0 (#4020) @blotus
- waf: remove custom raw body processor and use the upstream one (#4092) @blotus
- build(deps): bump actions/setup-python from 6.0.0 to 6.1.0 (#4089) @dependabot[bot]
- update go-cs-lib (#4084) @mmetc
- update coraza (#4047) @blotus
- build(deps): bump actions/checkout from 5.0.1 to 6.0.0 (#4077) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.1.3 to 7.1.4 (#4078) @dependabot[bot]
- replace prom2json with native Prometheus parser and context-aware scraping in CLI metrics (#3932) @mmetc
- build(deps): bump actions/setup-go from 6.0.0 to 6.1.0 (#4073) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.31.3 to 4.31.4 (#4069) @dependabot[bot]
- build(deps): bump actions/checkout from 5.0.0 to 5.0.1 (#4064) @dependabot[bot]
- update docker/docker to moby/moby (version docker-v29.0.0) (#4048) @mmetc
- build(deps): bump github/codeql-action from 4.31.0 to 4.31.3 (#4051) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.1.2 to 7.1.3 (#4042) @dependabot[bot]
- build(deps): bump golangci/golangci-lint-action from 8.0.0 to 9.0.0 (#4041) @dependabot[bot]
- build(deps): bump docker/setup-qemu-action from 3.6.0 to 3.7.0 (#4025) @dependabot[bot]
- CI: update golangci-lint to 2.6.1 (#4026) @mmetc
- waf: extract temp state from AppsecRuntimeConfig (#3952) @blotus
- build(deps): bump astral-sh/setup-uv from 7.1.1 to 7.1.2 (#4009) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.30.9 to 4.31.0 (#4008) @dependabot[bot]
- build(deps): bump actions/upload-artifact from 4.6.2 to 5.0.0 (#4010) @dependabot[bot]
Geolite2 notice
This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.
Installation
Take a look at the installation instructions.
v1.7.4-rc1
Changes
- docker: remove CROWDSEC_CONTAINER_ENV (#4085) @mmetc
- refact cscli: define csconfig.Getter once (#4091) @mmetc
- refact load/save apic token: dependencies and sentinel errors (#4081) @mmetc
- pkg/csplugin: use backoff package to retry notifications (#3944) @mmetc
- refact pkg/database batching (#3906) @mmetc
- refact pkg/acquisition: split appsec.go (#4043) @mmetc
- refact pkg/acquisition: journalctl configuration (#4057) @mmetc
- lint revive: lower complexity threshold (#4056) @mmetc
- lint: unused parameters / 2 (#4055) @mmetc
- lint: unused parameters (#4049) @mmetc
- refact pkg/acquisition: split loki.go (#4034) @mmetc
- refact pkg/acquisition: split victorialogs.go (#4037) @mmetc
- refact pkg/acquisition: split wineventlog.go (#4036) @mmetc
- refact pkg/acquisition: split s3.go (#4035) @mmetc
- refact pkg/acquisition: split k8s_audit.go (#4033) @mmetc
- refact pkg/acquisition: split kinesis.go (#4032) @mmetc
- refact pkg/acquisition: split kafka.go (#4031) @mmetc
- refact pkg/acquisition: split cloudwatch.go (#4029) @mmetc
- refact pkg/acquisition: split http.go (#4030) @mmetc
- refactg pkg/acquisition: split file.go (#4038) @mmetc
- refact pkg/acquisition: split syslog.go (#4028) @mmetc
- papi: explicit context (#3973) @mmetc
- pkg/csplugin: remove unused function (#4019) @mmetc
- pkg/types -> new imports pt 4 (#4012) @mmetc
- pkg/types -> new imports pt 3 (#4014) @mmetc
- pkg/types -> new imports pt 2 (#4013) @mmetc
- pkg/types -> new imports pt 1 (#4011) @mmetc
- pkg/types -> pkg/{pipeline,fsutil,enrichment,logging...} (#4006) @mmetc
- CI: enable linter "protogetter" (#3995) @mmetc
- enable linters: unnecessary-format, unused-receiver (#4001) @mmetc
- refact: remove unused struct fields and params / 3; enable linter "unused" (#3334) @mmetc
New Features
Improvements
- pkg/acquisition: update syslog to RestartableStreamer (#4040) @mmetc
- refact logging configuration; add log_media="syslog" (#4045) @mmetc
- cscli hubtest: better report docker/nuclei errors (#4052) @mmetc
- build: check make version before running Makefile (#4054) @mmetc
- pkg/acquisition: refact journalctl datasource and unified retry loop (#4023) @mmetc
- option api.server.disable_usage_metrics_export (#4021) @mmetc
- build: optional pure-go sqlite driver (#3908) @mmetc
Bug Fixes
- docker acquisition: prevent data races (#3956) @mmetc
- Fix avoidable prometheus metrics cardinality (#4080) @g00g1
- loki acquisition: remove forgotten debug print (#4062) @mmetc
- fix 2808: show certificate path in "lapi status" (#4053) @mmetc
- decisionStream: only select required fields from the DB (#4024) @blotus
Documentation
Chore / Deps
- Update go-re2 to 1.10.0 (#4020) @blotus
- waf: remove custom raw body processor and use the upstream one (#4092) @blotus
- build(deps): bump actions/setup-python from 6.0.0 to 6.1.0 (#4089) @dependabot[bot]
- update go-cs-lib (#4084) @mmetc
- update coraza (#4047) @blotus
- build(deps): bump actions/checkout from 5.0.1 to 6.0.0 (#4077) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.1.3 to 7.1.4 (#4078) @dependabot[bot]
- replace prom2json with native Prometheus parser and context-aware scraping in CLI metrics (#3932) @mmetc
- build(deps): bump actions/setup-go from 6.0.0 to 6.1.0 (#4073) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.31.3 to 4.31.4 (#4069) @dependabot[bot]
- build(deps): bump actions/checkout from 5.0.0 to 5.0.1 (#4064) @dependabot[bot]
- update docker/docker to moby/moby (version docker-v29.0.0) (#4048) @mmetc
- build(deps): bump github/codeql-action from 4.31.0 to 4.31.3 (#4051) @dependabot[bot]
- build(deps): bump astral-sh/setup-uv from 7.1.2 to 7.1.3 (#4042) @dependabot[bot]
- build(deps): bump golangci/golangci-lint-action from 8.0.0 to 9.0.0 (#4041) @dependabot[bot]
- build(deps): bump docker/setup-qemu-action from 3.6.0 to 3.7.0 (#4025) @dependabot[bot]
- CI: update golangci-lint to 2.6.1 (#4026) @mmetc
- waf: extract temp state from AppsecRuntimeConfig (#3952) @blotus
- build(deps): bump astral-sh/setup-uv from 7.1.1 to 7.1.2 (#4009) @dependabot[bot]
- build(deps): bump github/codeql-action from 4.30.9 to 4.31.0 (#4008) @dependabot[bot]
- build(deps): bump actions/upload-artifact from 4.6.2 to 5.0.0 (#4010) @dependabot[bot]
Geolite2 notice
This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.
Installation
Take a look at the installation instructions.
v1.7.3
Changes
Geolite2 notice
This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.
Installation
Take a look at the installation instructions.
v1.7.3-rc2
Changes
Geolite2 notice
This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.
Installation
Take a look at the installation instructions.