buixor
5b774c3a3e
up
2024-08-08 11:53:09 +02:00
buixor
19191a6b32
pkg/types/appsec_event.go
2024-08-08 11:53:01 +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
Laurence Jones
84c214a6f0
enhance: add crowdsec user agent to cti do request func ( #3130 )
2024-07-15 12:31:01 +01:00
mmetc
c4da2775cd
usage metrics: validate maxLength for some elements ( #3131 )
...
Co-authored-by: Sebastien Blot <sebastien@crowdsec.net>
2024-07-15 13:26:59 +02:00
mmetc
5390b8ea4b
remove warning "maxopenconns is 0, default to 100" ( #3129 )
...
* remove warning "maxopenconns is 0, default to 100"
also don't store as pointer since value 0 is not useful
* lint
2024-07-15 11:05:40 +02:00
mmetc
91463836ff
tests: increase delta for flaky float comparison ( #3122 )
...
* tests: increase delta for flaky float comparison
* remove leading 0 from non-octal number
2024-07-15 10:51:45 +02:00
mmetc
f130ce677d
command "cscli metrics show bouncers" ( #3126 )
...
* cscli metrics show bouncers
* db metrics: increase payload size
* func tests
2024-07-15 09:55:52 +02:00
mmetc
06720538f5
revert "db: round created, updated... timestamps to 1 second" ( #3127 )
...
this fixes functional tests with decision stream startup=true
2024-07-12 17:02:44 +02:00
mmetc
1b0104186a
cscli machines/bouncers: dry helper code and move to cscli ( #3123 )
2024-07-11 12:19:10 +02:00
mmetc
6f5e970f50
func tests: update curl wrapper ( #3121 )
2024-07-10 12:57:16 +02:00
mmetc
31195ddf36
update vagrant config for opensuse ( #3119 )
2024-07-09 15:30:38 +02:00
mmetc
aab59b6287
typos ( #3104 )
...
* typos
* lint
2024-07-09 14:51:31 +02:00
mmetc
aa0c389d2b
make: remove redundant go version check ( #3118 )
...
It's already done by the toolchain with go.mod
2024-07-09 14:49:55 +02:00
Laurence Jones
96a6eec1fb
enhance: Add default_range_remediation ( #3109 )
2024-07-05 16:04:33 +01:00
mmetc
ea2098f6e6
refact cscli metrics: split stat types to own files ( #3107 )
2024-07-04 15:55:47 +02:00
mmetc
7cc33b5854
cscli refact: extract metrics to own package ( #3106 )
2024-07-04 14:43:35 +02:00
mmetc
90e3299373
cscli refact: extract table wrapper to own package ( #3105 )
...
* cscli refact: extract table wrapper to own package
* lint
2024-07-04 13:42:02 +02:00
mmetc
9cebcf96b4
command cscli [machines|bouncers] inspect ( #3103 )
...
* command cscli [machines|bouncers] inspect
* lint
2024-07-03 17:20:20 +02:00
mmetc
4635d04b22
lapi detailed metrics: API spec + models ( #3100 )
...
* lapi detailed metrics: API spec + models
* models+db: split hubstate by item type
2024-07-02 22:49:47 +02:00
mmetc
b1cf83975e
db refact: drop column machines.status ( #3102 )
2024-07-02 16:08:41 +02:00
mmetc
27935f6d4c
fix "cscli [machines|bouncers] delete" autocompletion ( #3101 )
...
* fix "cscli [machines|bouncers] delete" autocompletion
* func test
2024-07-01 16:35:34 +02:00
mmetc
1acc35442c
lapi detailed metrics: db schema ( #3099 )
2024-07-01 12:14:55 +02:00
mmetc
b081065c8e
lint: replace "github.com/pkg/errors" in apiserver ( #3097 )
2024-07-01 11:54:49 +02:00
mmetc
206211ce53
lint: import statement order ( #3085 )
...
* lint: import statement order
* lint
2024-06-26 12:16:17 +02:00
mmetc
d4e6b75517
CI: use go 1.22.4 ( #3095 )
...
* CI: use go 1.22.4
* fix alpine build
2024-06-26 11:06:44 +02:00
mmetc
a3bd9baec1
improved tls middleware revocation checks ( #3034 )
2024-06-26 10:41:30 +02:00
mmetc
3097c0ce90
lint: replace gocognit with revive ( #3094 )
2024-06-25 11:28:27 +02:00
mmetc
0e93f98cad
lint: github.com/pkg/errors -> errors ( #3091 )
2024-06-21 14:31:45 +02:00
mmetc
4b988701ed
lint (intrange) ( #2970 )
2024-06-21 13:47:26 +02:00