Commit graph

2057 commits

Author SHA1 Message Date
dependabot[bot]
a9500185a2
build(deps): bump github.com/expr-lang/expr from 1.16.9 to 1.17.0
Bumps [github.com/expr-lang/expr](https://github.com/expr-lang/expr) from 1.16.9 to 1.17.0.
- [Release notes](https://github.com/expr-lang/expr/releases)
- [Commits](https://github.com/expr-lang/expr/compare/v1.16.9...v1.17.0)

---
updated-dependencies:
- dependency-name: github.com/expr-lang/expr
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-21 13:31:42 +00:00
blotus
3843213d5c
use replace for coraza instead of renaming the entire package (#3530) 2025-03-21 14:30:27 +01:00
mmetc
2dcc3ae0df
CI: pin hub branch during functional tests (#3526) 2025-03-20 11:28:37 +01:00
mmetc
ea1a1d733b
empty back-merge from release branch (#3527) 2025-03-20 11:25:57 +01:00
mmetc
0459a9a880
update appsec test runner (#3518) 2025-03-18 11:45:06 +01:00
blotus
663dad048b
close appsec transactions after processing request (#3515) 2025-03-17 11:36:14 +01:00
mmetc
cab99643d1
Parallel hubtest (#3509)
Hubtests are now much faster and have a --max-jobs option which defaults to the number of cpu cores.
2025-03-17 11:27:09 +01:00
blotus
f5400482a6
opensuse sets OSTYPE to linux (#3514) 2025-03-15 13:46:35 +01:00
blotus
cce41a1e6c
do not attempt to set db log level if no db config (#3510) 2025-03-13 17:38:07 +01:00
mmetc
3bc8e4f35f
empty back-merge from release branch (#3506) 2025-03-12 11:01:24 +01:00
blotus
941b3d98b9
appsec: less verbose logging for allowlists and headers check (#3498) 2025-03-12 10:55:06 +01:00
mmetc
c4f9adb799
appsec: use CA from client credentials when connecting to LAPI (#3505) 2025-03-12 10:36:30 +01:00
blotus
50a5ef5345
deprecate capi_whitelists_path (#3504) 2025-03-12 10:12:30 +01:00
mmetc
a432a6352d
appsec: support custom CA for lapi (#3503)
* apisever, appsec: refact listenAndServe..()

* RemoveAll() -> Remove()

* configure CA for tls auth request

* ignore error from os.Remove(socket) when there's no file

* appsec functional test

* lint
2025-03-12 09:33:21 +01:00
Laurence Jones
9bb7ad8c3a
enhancement: Add additional ssl options to db configuration (#3387) 2025-03-11 10:56:47 +01:00
mmetc
388dd62997
use go 1.24.1 (#3501) 2025-03-10 10:50:52 +01:00
Laurence Jones
bcce4afe5e
enhance: Flags now superceed all log levels (#3496)
* enhance: Flags now superceed all log levels

* enhance: remove global var for local scope

* test

---------

Co-authored-by: marco <marco@crowdsec.net>
2025-03-07 13:42:08 +00:00
mmetc
12a3c70860
lint: gocritic/httpNoBody (#3493)
* lint: gocritic/httpNoBody
2025-03-07 14:35:25 +01:00
blotus
a203d8ebbf
appsec: handle SendAlert() properly for out of band matches (#3497) 2025-03-05 16:04:16 +01:00
mmetc
b12ade27f4
cscli: review/update argument number checking (#3490)
* cscsli: remove unused Command.Args setting

* cscli: review/update argument number checking

cscli will consistently print the help text if the number of arguments is
wrong for the command, but not for other types of errors.

* fix func tests

* lint
2025-03-04 12:21:27 +01:00
Thibault "bui" Koechlin
f49e1e28d2
move ParseQuery to expr helpers, add ExtractQueryParam (#3491)
* move ParseQuery to expr helpers, add ExtractQueryParam
2025-03-04 10:41:11 +01:00
Thibault "bui" Koechlin
61c7de1331
enable/disable options for console enroll - make alert context a default (#3487)
* enable/disable options for console enroll - make alert context a default

* extract method and refact

---------

Co-authored-by: marco <marco@crowdsec.net>
2025-03-03 16:09:09 +01:00
mmetc
02d4793657
tests: remove modeline (#3486) 2025-02-28 15:24:13 +01:00
Laurence Jones
970954f2c0
enhance: add option to disable magic syslog RFC parsers (#3435) 2025-02-28 15:20:17 +01:00
blotus
c5f5896625
crowdsec: allow -t to work if using appsec and allowlists (#3484) 2025-02-27 14:26:38 +01:00
mmetc
0bdb1f7f27
cron: avoid spamming stdout when the hub index is updated (#3485) 2025-02-27 10:19:43 +00:00
mmetc
c161eb270b
pkg/cwhub: refact Item.State.(Downloaded | Installed) (#3476) 2025-02-25 10:09:29 +01:00
blotus
ce5b4b435b
add JA4H expr helper (#3401) 2025-02-24 15:20:33 +01:00
mmetc
a3187d6f2c
refact: context propagation (apiclient, cticlient...) (#3477) 2025-02-21 13:23:39 +01:00
mmetc
8da6a4dc92
CI: use go 1.24 for windows (#3479) 2025-02-21 12:55:02 +01:00
mmetc
105801d1f9
cscli: allow non-local symlinks to have a different name than hub items (#3475) 2025-02-21 12:44:30 +01:00
mmetc
2b70dbf3e5
cscli hub/items: always show action plan; fix --interactive in pipes (#3451) 2025-02-21 00:17:01 +01:00
mmetc
45624c6fe5
tests: switch context.Background() -> t.Context() from go 1.24 (#3473) 2025-02-21 00:09:11 +01:00
mmetc
19eb278104
update dependencies: color, go-sqlite3, tail, slack, testify (#3474) 2025-02-20 21:35:57 +01:00
blotus
16d0677938
Add support for centralized allowlists (#3355) 2025-02-19 15:04:47 +01:00
mmetc
8a10e2c61d
refact: avoid use of defer calls in loops (#3466)
* refact apic.Send()
* refact Papi.SendDeletedDecisions()
* refact MetricsProvider.Run()
* refact PluginBroker.pushNotificationsToPlugin()
* refact leakybucket.LoadBuckets()
2025-02-19 14:50:38 +01:00
mmetc
c4ff4228be
use go 1.24, enable unencrypted http2 (#3470) 2025-02-19 14:05:17 +01:00
mmetc
efbb42bf9e
deps: use ent 0.14.2 (#3259) 2025-02-18 17:08:58 +01:00
mmetc
7c1d038645
leaky bucket: reduce log verbosity (#3472) 2025-02-18 15:52:51 +01:00
mmetc
b3da6e03ff
CI: lint docker tests (#3443) 2025-02-17 11:04:26 +01:00
mmetc
5136d928ed
lint: gocritic/typeDefFirst (ensure type definitions come before methods) (#3404)
* lint: gocritic/typeDefFirst (ensure type definitions come before methods)

* lint
2025-02-17 10:55:18 +01:00
dependabot[bot]
6f737a71f1
build(deps): bump github.com/golang/glog from 1.2.2 to 1.2.4 (#3431)
Bumps [github.com/golang/glog](https://github.com/golang/glog) from 1.2.2 to 1.2.4.
- [Release notes](https://github.com/golang/glog/releases)
- [Commits](https://github.com/golang/glog/compare/v1.2.2...v1.2.4)

---
updated-dependencies:
- dependency-name: github.com/golang/glog
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-17 10:40:46 +01:00
mmetc
a73bed902b
file acquisition: remove redundant logging info (#3468)
* file acquisition: remove redundant logging info

* lint
2025-02-17 10:32:15 +01:00
mmetc
ae9da48d03
deps: update gin-jwt (#3430) 2025-02-17 10:16:09 +01:00
mmetc
b7d0ccc95a
CI: skip unit tests with dynamic build (#3461) 2025-02-10 13:32:41 +01:00
mmetc
c5e0003b59
silence "cscli hub update" if noop in cron jobs (#3460) 2025-02-10 11:24:59 +01:00
mmetc
9f2d642512
cscli: don't attempt to download data files when url="" (#3454) 2025-02-08 23:47:57 +01:00
mmetc
037bac86ad
wizard.sh: remove obsolete --yes option (#3450) 2025-02-07 12:14:13 +01:00
mmetc
a9cc23e446
cscli: exclude removed commands from generated docs (#3449) 2025-02-07 10:52:14 +01:00
mmetc
a001e1d760
cscli: replace '--yes' option with '--interactive' (#3448) 2025-02-06 11:43:29 +01:00