Commit graph

775 commits

Author SHA1 Message Date
Sebastien Blot
12ce5e3fc1
add more required fields in models 2024-04-23 13:22:54 +02:00
Sebastien Blot
e36d2cb6b8
up 2024-04-22 17:59:03 +02:00
blotus
3169343526
Merge branch 'master' into lapi-detailed-metrics 2024-04-22 17:54:23 +02:00
Sebastien Blot
538ab0bc62
up 2024-04-22 17:44:42 +02:00
Sebastien Blot
18b8ddb49a
add missing file 2024-04-22 17:02:07 +02:00
Sebastien Blot
7b093b925e
add lapi metrics in swagger and models 2024-04-22 16:08:26 +02:00
Sebastien Blot
f0853188ce
update swagger and models 2024-04-22 14:25:23 +02:00
Sebastien Blot
c6ebd7ae04
handle 422 error from CAPI 2024-04-22 11:40:13 +02:00
Sebastien Blot
2b940a45f8
up 2024-04-22 09:58:48 +02:00
Sebastien Blot
be64f619f2
set pushed_at after sending metrics 2024-04-19 18:33:46 +02:00
Sebastien Blot
0be7cc3cfc
store more payload 2024-04-19 18:02:19 +02:00
AlteredCoder
0746e0c091
Rename bouncers to Remediation component in openAPI ()
* Rename bouncers to Remediation component in openAPI
2024-04-11 11:23:19 +02:00
mmetc
2682f801df
windows: fix data file update (remove before rename) () 2024-04-05 14:57:33 +02:00
Thibault "bui" Koechlin
912c4bca70
split & reorganize tests a bit. Add tests on existing zones () 2024-04-03 17:49:05 +02:00
Thibault "bui" Koechlin
63bd31b471
Fix REQUEST_URI behavior + fix ()
* fix our behavior to comply more with modsec, REQUEST_URI should be: path+query string

* fix  as well

* add new transforms

* add transform tests
2024-03-29 17:57:54 +01:00
Christian Kampka
f6bb8412c5
Add patterns_dir configuration option ()
* Add patterns_dir configuration option

* Update config.yaml

---------

Co-authored-by: mmetc <92726601+mmetc@users.noreply.github.com>
2024-03-25 16:20:16 +01:00
mmetc
2e1ddec107
cscli: Add user-agent to all hub requests ()
* cscli: Add user-agent to all hub requests

* fix unit test and avoid httpmock

* fix windows test
2024-03-25 10:40:41 +01:00
Sebastien Blot
33778ca87f
wip 2024-03-22 14:19:05 +01:00
blotus
52f86c2d10
add libinjection expr helpers () 2024-03-21 11:39:37 +01:00
Sebastien Blot
dbdf3ad1bb
wip 2024-03-21 10:27:52 +01:00
mmetc
7779c7ff0c
hub update: reload crowdsec if only data files have changed () 2024-03-20 15:46:14 +01:00
marco
b00e553ce9 interval messages 2024-03-19 15:33:55 +01:00
marco
876c33945d lint 2024-03-19 15:33:55 +01:00
marco
d9a3819ef5 ignore duplicate data points 2024-03-19 15:33:55 +01:00
marco
c325c2765d (wip) lp metrics 2024-03-19 15:33:55 +01:00
marco
76c04fdd82 regenerate pkg/models 2024-03-19 15:33:55 +01:00
Sebastien Blot
d1f62263ef add /usage-metrics endpoint definition 2024-03-19 15:33:55 +01:00
mmetc
dd71f0a866
CI: bump lint version and update configuration ()
* bump golangci-lint to 1.56

* lint (testifylint)

* update lint configuration

* windows test: remove stale code
2024-03-19 10:48:49 +01:00
Thibault "bui" Koechlin
b63e64ee9f
Fix locking logic for HA + add list unsubscribe for PAPI ()
* add list unsubscribe operation for papi

* fix the locking logic for HA
2024-03-19 10:29:16 +01:00
blotus
6de62a1468
warn if user is using inotify to tail a symlink () 2024-03-19 10:22:43 +01:00
mmetc
2f49088163
file acquisition: don't bubble error when tailed file disappears ()
* file acquisition: don't bubble error when tailed file disappears
* don't call t.Kill()
* lint (whitespace)
2024-03-18 11:25:45 +01:00
Laurence Jones
e9b0f3c54e
wip: fix unix socket error () 2024-03-14 15:36:47 +00:00
mmetc
caca4032d1
lapi: log error "can't sinchronize with console" only if papi is enabled () 2024-03-14 14:03:43 +01:00
blotus
742f5e8cda
[appsec] delete api key header before processing the request () 2024-03-14 14:00:39 +01:00
mmetc
6c042f18f0
LAPI: local api unix socket support () 2024-03-14 10:43:02 +01:00
Thibault "bui" Koechlin
2a7e8383c8
fix ()
* fix 
2024-03-13 17:20:06 +01:00
Thibault "bui" Koechlin
b1c09f7512
acquisition : take prometheus level into account ()
* properly take into account the aggregation level of prometheus metrics in acquisition
2024-03-13 14:57:19 +01:00
Manuel Sabban
bd785ede15
Fix armhf ()
* armhf compile fix
2024-03-12 17:33:22 +01:00
Manuel Sabban
1a56a0e0b9
armhf fix for getfstype ()
* armhf fix for getfstype
2024-03-12 14:33:10 +01:00
blotus
6daaab1789
support both scope and scopes parameter in decisions filter () 2024-03-11 10:54:40 +01:00
blotus
e8ff13bc17
appsec: get the original UA from headers () 2024-03-08 15:04:36 +01:00
blotus
44ec3b9e01
file acquis: add mutex to protect access to the internal tail map () 2024-03-08 13:56:59 +01:00
mmetc
6c5e8afde9
pkg/cwhub: download data assets to temporary files to avoid partial fetch () 2024-03-08 10:55:30 +01:00
mmetc
8108e4156d
CI: "make generate" target; use ent 0.12.5 ()
* CI: "make generate" target; pin tool versions
* use ent 0.12.5
* fix make help
* fix model generation target; re-run swagger
2024-03-07 14:25:25 +01:00
blotus
5731491b4e
Auto detect if reading logs or storing sqlite db on a network share () 2024-03-07 14:04:50 +01:00
mmetc
e611d01c90
cscli: hide hashed api keys ()
* cscli: hide hashed api keys
* lint
2024-03-06 14:27:05 +01:00
mmetc
d8877a71fc
lp metrics: collect datasources and console options () 2024-03-05 14:56:14 +01:00
mmetc
e7ecea764e
pkg/csconfig: use yaml.v3; deprecate yaml.v2 for new code ()
* pkg/csconfig: use yaml.v3; deprecate yaml.v2 for new code
* yaml.v3: handle empty files
* Lint whitespace, errors
2024-03-04 14:22:53 +01:00
mmetc
a23fe06d68
remove dependencies on enescakir/emoji, gotest.tools ()
* wrap emoji package in pkg/emoji
* remove dependency on enescakir/emoji
* remove dependency on gotest.tools
* lint (whitespace)
2024-02-23 16:05:01 +01:00
mmetc
4bf640c6e8
refact pkg/apiserver (auth helpers) () 2024-02-23 14:03:50 +01:00