Sebastien Blot
cd2ceee414
remove notification support
2024-09-02 15:09:58 +02:00
Sebastien Blot
94d368604d
remove all acquis module except file and syslog
2024-09-02 14:43:58 +02:00
mmetc
f0d6046c59
cscli refact: package cliitem ( #3204 )
2024-09-02 14:30:25 +02:00
mmetc
dda0fa1dfa
cscli dashboard: exit earlier on docker ( #3210 )
2024-09-02 13:04:14 +01:00
blotus
d2616766de
Allow auto registration of machines in LAPI ( #3202 )
...
Co-authored-by: marco <marco@crowdsec.net>
2024-09-02 13:13:40 +02:00
Laurence Jones
8c0c10cd7a
enhance: return an error if cscli dashboard is run within a container ( #3207 )
2024-09-02 09:11:59 +01:00
mmetc
0fb64682fd
cscli refact: package cli{support, machine, bouncer} ( #3199 )
...
* cscli refact: clisupport (reuse lapi status, capi status)
* cscli refact: package clibouncer, climachine
* cscli refact: package clisupport
2024-08-29 15:21:29 +02:00
mmetc
b880df9a68
cscli refact: package 'clihub' ( #3198 )
...
* cscli refact: package 'clihub'
* check for errors
2024-08-28 11:52:25 +02:00
mmetc
eec32ad64b
cscli refact: extract packages ask, clientinfo ( #3197 )
...
* cscli: extrack package 'crowdsec-cli/ask'
* cscli: extract package 'crowdsec-cli/clientinfo'
2024-08-28 10:52:49 +02:00
mmetc
2e970b3eb9
cscli refact: package 'clihubtest' ( #3174 )
...
* cscli refact: package 'clihubtest'
* split hubtest.go subcommands in files
* extract function getCoverage()
* common function hubTestCoverageTable()
* update cyclomatic lint
* lint
2024-08-27 15:42:24 +02:00
mmetc
ec415ed069
cscli hub update: option --with-content to keep embedded items in index; use it in docker ( #3192 )
2024-08-27 13:07:05 +02:00
Robert Nagy
27559d6636
implement GetFSType on openbsd with the correct statfs struct member ( #3191 )
2024-08-27 12:41:53 +02:00
mmetc
c4431b6385
cscli refact: notifications, simulation, papi, setup ( #3190 )
...
* package 'clinotifications'
* package 'clisimulation'
* package 'clipapi'
* package 'cslisetup'
2024-08-26 16:33:35 +02:00
mmetc
9c0422f75b
cscli refact: package 'clicapi', 'clilapi' ( #3185 )
...
* extract functions to own files
* package clilapi
* package clicapi
* package crowdsec-cli/reload
2024-08-26 09:39:36 +02:00
mmetc
da495e812c
pkg/cwhub: cache control / send etag header from file contents, check with HEAD req ( #3187 )
2024-08-23 17:05:55 +02:00
mmetc
89aec7cf6b
pkg/cwhub: simpler accessor methods ( #3165 )
...
* pkg/cwhub: simpler accessor methods
- prefer higher level GetItemsByType, GetInstalledByType over GetItemMap
- always send both appsec-rules and scenarios to api
- explicit parameter for (case insensitive) sorted list of items
- shorter code
- assume itemType parameter makes sense, don't error
* lint (gofumpt)
2024-08-22 12:12:40 +02:00
mmetc
429418ffc6
cscli refact: package 'cliexplain' ( #3151 )
2024-08-21 10:24:18 +02:00
mmetc
3d27e83bf5
pkg/cwhub: improve support for k8s config maps with custom items ( #3154 )
...
* pkg/cwhub: improve support for k8s config maps as custom items
- allow links to links
- ignore hidden ..data directories, but allow links to their content
* allow any number of subdirectories in /etc/crowdsec/{hubtype}
* item name as subdir/file.yaml
* improve func test
* lint
2024-08-20 17:36:07 +02:00
mmetc
08fdfc4fb0
cscli refact: package 'cliconsole' ( #3149 )
...
* cscli refact: package 'cliconsole'
* dry
* lint
* lint
2024-08-20 16:20:40 +02:00
mmetc
e7b54c68c5
refact (nestif): reduce complexity of pkg/leakybucket ( #3139 )
...
* refact (nestif): extract functions in pkg/leakybucket/overflows.go
* refact (nestif): extract functions in pkg/leakybucket/manager_load.go
* lint
2024-08-20 15:47:28 +02:00
mmetc
0e567a9a18
CI: go - don't pin minor version (always use latest) ( #3181 )
2024-08-20 09:48:36 +02:00
mmetc
6b9b19b8c1
CI: use golangci-lint 1.60 ( #3180 )
...
* use golangci-lint 1.60
* lint (gosimple/S1009) -> len(nil) == 0
* nerf govet for now
2024-08-19 14:09:17 +02:00
blotus
534fb14f7b
hide geoip related warnings ( #3179 )
2024-08-19 10:07:06 +02:00
mmetc
2fbc214538
CI: use go 1.22.6 ( #3171 )
2024-08-19 09:54:58 +02:00
Alexander Mnich
64d2ea0ddb
add missing ApiKeyAuthorizer to decisions swagger endpoint ( #3178 )
2024-08-16 21:48:14 +02:00
mmetc
48e3f51954
cscli: add option --ignore-missing to "bouncers delete", "machines delete" ( #3177 )
...
* cscli: add option --ignore-missing to "bouncers delete", "machines delete"
* lint
2024-08-13 16:49:27 +02:00
Laurence Jones
71a253aea6
Remove useragent set by RC ( #3167 )
...
Fix #3166
2024-08-12 09:34:45 +01:00
mmetc
52995b8fa4
prevent nil deref when loading cti config ( #3176 )
...
* correct variable names
* prevent nil deref when loading cti config
2024-08-12 10:15:00 +02:00
mmetc
3532e872d3
metrics: avoid nil deref with inactive bouncers or malformed response ( #3170 )
...
* metrics: avoid nil deref with inactive bouncers
* log message from API even it if cannot be parsed
* fix unit test
2024-08-08 16:46:39 +02:00
mmetc
1bc3b0870b
command "cscli doc --target /path/to/dir" ( #3169 )
...
* command "cscli doc --target /path/to/dir"
* typos and improved messages
* CI: remove obsolete parameters for golangi-lint action
* lint
2024-08-07 12:45:54 +02:00
Thibault "bui" Koechlin
6bd4096a3e
fix #1742 : Allow QueryCAPIStatus to return as well enrollment status ( #3159 )
...
* fix #1742 : Allow QueryCAPIStatus to return as well enrollment status
---------
Co-authored-by: marco <marco@crowdsec.net>
2024-08-05 12:04:07 +02:00
mmetc
136dba61d9
reduce log verbosity, minor CI fixes, lint ( #3157 )
...
* pkg/cwhub: redundant log messages
* CI: fixture output and elapsed time
* CI: preload only essential hub items
* report full version (including -rc2 etc.) with cscli hub update --debug
* lint
2024-08-01 10:55:04 +02:00
mmetc
6f5d75c5f1
cscli metrics: explicit message "no bouncer metrics found" ( #3155 )
2024-07-29 14:13:06 +02:00
mmetc
20067a85a0
cscli/hub: don't return error if some file can't be recognized ( #3150 )
...
In k8s there can be extra directories while mounting config maps, which
leads to a failure while parsing the hub state. The PR changes these
kind of errors to warnings.
2024-07-24 16:29:38 +02:00
Manuel Sabban
36d15fedce
Use the new hub api url ( #3132 )
...
* new hapi url
* mock url in tests has to be updated
---------
Co-authored-by: marco <marco@crowdsec.net>
2024-07-24 12:20:23 +02:00
mmetc
a7ec842bce
docker: symlink all data files to the staging area ( #3120 )
2024-07-24 11:00:38 +02:00
mmetc
24bd8bb92c
perf: retrieve unsorted metrics ( #3148 )
2024-07-24 10:50:19 +02:00
mmetc
64e4ecde90
LAPI: detailed metrics endpoint ( #2858 )
2024-07-24 10:29:18 +02:00
marco
61d19cff84
update table test
2024-07-22 14:58:43 +02:00
mmetc
7b1794ff89
CI: update test dependencies ( #3146 )
2024-07-22 12:59:24 +02:00
blotus
a3d7900b5f
update expr ( #3144 )
2024-07-22 12:14:46 +02:00
mmetc
30c0d8997d
CI: update action versions ( #3143 )
2024-07-22 12:12:27 +02:00
mmetc
5b4f924d5f
allow .index.json to embed item content ( #3145 )
2024-07-22 10:54:39 +02:00
mmetc
35f97d4855
bats: curl helpers to mock log processors and bouncers ( #3141 )
2024-07-18 11:13:18 +02:00
mmetc
8f1abc300d
docker: make sure the sqlite db is present before changing GID ( #3140 )
2024-07-18 09:58:45 +02:00
mmetc
443ec37e47
lint: dockerfiles ( #3138 )
2024-07-18 09:39:57 +02:00
mmetc
aabb5cca89
CI: use go 1.22.5 ( #3128 )
2024-07-17 12:48:07 +02:00
mmetc
8d96ddd48e
refact cscli metrics: fix lines between tables, skip wrapper api ( #3137 )
...
* fix empty line between metrics tables
* refact metrics tables: use go-pretty api directly
* lint
2024-07-17 12:30:52 +02:00
mmetc
189fb9ca1b
deps: use go-cs-lib 0.13 ( #3136 )
2024-07-17 09:50:31 +02:00
blotus
c4bfdf1991
Store alert remediations status in DB ( #3115 )
2024-07-16 10:08:00 +02:00