mmetc
|
40021b6bcf
|
CI: update coverage ignore list for generated code (#3262)
* CI: update coverage ignore list for generated code
* CI: generate codecov.yml automatically
|
2024-10-04 13:15:16 +02:00 |
|
mmetc
|
f6af791b83
|
CI: update test dependencies (#3267)
|
2024-10-04 11:28:18 +02:00 |
|
mmetc
|
4e3495dbba
|
lint/revive: check tags on non-exported struct fields (#3257)
* lint/revive: check tags on non-exported struct fields
* update .golangci.yaml; remove full list of enabled linters
* lint
|
2024-10-03 15:27:48 +02:00 |
|
mmetc
|
06adbe031d
|
context propagation: apic, unit tests (#3271)
* context propagation: apic
* context propagation: unit tests
|
2024-10-03 14:51:53 +02:00 |
|
mmetc
|
af3116d1a7
|
context propagation: don't store ctx in api controller (#3268)
|
2024-10-03 11:06:39 +02:00 |
|
mmetc
|
56c9c7a804
|
Re-generate capi models (#3260)
* add centralapi_swagger.yaml
* remove nullable to avoid generate error
* re-generate pkg/modelscapi
* update go-swagger to 0.31.0
|
2024-10-02 16:44:13 +02:00 |
|
mmetc
|
27451a5ee6
|
context propagation: pass ctx to UpdateScenario() (#3258)
* context propagation: pass ctx to UpdateScenario()
* context propagation: SendMetrics, SendUsageMetrics, plugin config
|
2024-10-02 13:39:07 +02:00 |
|
mmetc
|
897613e837
|
CI: check generated code in test workflow (#3261)
|
2024-09-25 09:02:53 +02:00 |
|
mmetc
|
3945a991bd
|
context propagation: pkg/database/alerts (#3252)
* alerts
* drop CTX from dbclient
* lint
* pkg/database/alerts: context.TODO()
* cscli: context.Background() -> cmd.Context()
|
2024-09-24 14:13:45 +02:00 |
|
mmetc
|
1133afe58d
|
context propagation: pkg/database/{lock,decision} (#3251)
* context propagation: pkg/database/lock
* QueryAllDecisionsWithFilters(ctx...), QueryExpiredDecisionsWithFilters(ctx...)
* more Query...Decision...(ctx..)
* rest of decisions
* lint
|
2024-09-23 17:33:46 +02:00 |
|
mmetc
|
4a2a663227
|
context propagation: pkg/database/bouncers (#3249)
|
2024-09-20 20:45:21 +02:00 |
|
mmetc
|
fee3debdcc
|
context propagation: pkg/database/machines (#3248)
|
2024-09-20 16:00:58 +02:00 |
|
mmetc
|
e2196bdd66
|
remove dependency from pkg/cwversion to pkg/acquisition (#3242)
* register built-in components without dependencies
* package comment
|
2024-09-20 10:34:53 +02:00 |
|
mmetc
|
00032d40a8
|
lint/nestif: reduce hubtest complexity (#3244)
|
2024-09-19 16:59:02 +02:00 |
|
mmetc
|
29f3d2710d
|
context propagation: pkg/database/metrics (#3247)
|
2024-09-19 14:27:34 +02:00 |
|
mmetc
|
eeb28014c6
|
context propagation: pkg/database/config (#3246)
|
2024-09-19 14:09:35 +02:00 |
|
mmetc
|
b4a2403fdf
|
context propagation: bouncer list (#3236)
|
2024-09-19 11:14:33 +02:00 |
|
mmetc
|
2a60c99036
|
context propagation: pkg/database/flush (#3235)
|
2024-09-19 11:11:50 +02:00 |
|
mmetc
|
be391a3da8
|
context propagation: pass context to NewAPIC() (#3231)
|
2024-09-19 11:09:29 +02:00 |
|
mmetc
|
7c5d4d8b3d
|
context propagation: explicit ctx parameter in unit tests (#3229)
|
2024-09-19 11:06:31 +02:00 |
|
mmetc
|
b14201aa84
|
CI: delegate pipenv cache management to the setup-python action (#3243)
|
2024-09-19 09:31:28 +02:00 |
|
mmetc
|
519693270e
|
refact: alerts query (#3216)
* refact alerts: log messages
* refact: AlertPredicatesFromFilter
|
2024-09-18 15:00:19 +02:00 |
|
mmetc
|
b93b240bd4
|
lint: enable (some) gocritic checks (#3238)
* lint: gocritic configuration
* lint: octal literals
* lint: gocritic (filepath.Join)
* ling: gocritic (badRegexp, regexpSimplify)
* lint: gocritic (preferStringWriter)
* lint: gocritic (emtpyStringTest)
* filepath.Clean(a+b) -> filepath.Join(a, b)
* gofumpt
|
2024-09-17 17:07:30 +02:00 |
|
mmetc
|
5f22c78fcf
|
enable linters: copyloopvar, intrange (#3184)
* enable linters: copyloopvar, intrange
* lint
|
2024-09-17 16:10:56 +02:00 |
|
mmetc
|
f97b9c84da
|
CI: update golangci-lint to v1.61, yq to 4.44.3 (#3241)
|
2024-09-17 15:19:30 +02:00 |
|
mmetc
|
ce085dc4cd
|
logs and user messages: use "parse" and "serialize" instead of marshal/unmarshal (#3240)
|
2024-09-17 13:19:14 +02:00 |
|
blotus
|
1591a0c46e
|
Update go-re2 (#3230)
|
2024-09-13 10:57:48 +02:00 |
|
mmetc
|
8a74faed43
|
context propagation: cscli {capi,lapi,papi} (#3228)
* context propagation: lapi status, capi status, papi status
* context propagation: lapi register, capi register
* lint
|
2024-09-12 21:16:55 +02:00 |
|
mmetc
|
6810b41dd8
|
refact pkg/database: context propagation (start) (#3226)
* refact pkg/database: context propagation (part)
* more context propagation (usagemetrics)
* propagate errors when updating metrics
|
2024-09-12 17:28:16 +02:00 |
|
mmetc
|
cae76baa3a
|
refact acquisition: build profiles (optionally exclude datasources from final binary) (#3217)
example
$ make BUILD_PROFILE=minimal
or
$ make EXCLUDE=datasource_s3,datasource_kinesis
|
2024-09-12 17:26:39 +02:00 |
|
mmetc
|
d5c587cf2b
|
refact / split APIServer.Run() method (#3215)
|
2024-09-12 17:08:22 +02:00 |
|
mmetc
|
584a19f3f1
|
fix #3225: info->debug for trigger bucket overflow (#3227)
* fix #3225: info->debug for trigger bucket overflow
* lint
|
2024-09-12 17:07:30 +02:00 |
|
mmetc
|
57539f61b4
|
refact cscli - don't export functions if not required (#3224)
* unexport subcommand constructors
* unexport internal methods
* lint + rename local variables
|
2024-09-11 15:38:15 +02:00 |
|
mmetc
|
4d10e9df00
|
refact: cscli papi (#3222)
* cscli papi status - fix nil deref + func test
* cscli papi: extract methods status(), sync()
* papi status -> stdout
* fix nil deref
* cscli support dump: include papi status
* lint
|
2024-09-10 17:32:13 +02:00 |
|
mmetc
|
c8750f604c
|
refact: pkg/apiclient set and use default user agent (#3219)
* default user agent
* DRY default user agent
* useragent.go
* moved to pkg/apiclient/useragent
* lint
* rename useragent.DefaultUserAgent() -> useragent.Default()
|
2024-09-09 11:27:20 +02:00 |
|
mmetc
|
57dee1abf9
|
fix appsec/tls issues by cloning http transport (#3213)
|
2024-09-06 10:36:23 +02:00 |
|
mmetc
|
ace942a36d
|
tests: prevent "make bats-fixture" to run if instance-data is locked (#3201)
* tests: prevent "make bats-fixture" to run if instance-data is locked
* lint
|
2024-09-06 10:31:00 +02:00 |
|
Laurence Jones
|
fb0117e778
|
enhance: add additional explain options to hubtest (#3162)
* enhance: add additional explain options to hubtest
* Revert "enhance: add additional explain options to hubtest"
This reverts commit b24632f3eb .
* enhance: add additional explain options to hubtest
---------
Co-authored-by: marco <marco@crowdsec.net>
|
2024-09-03 14:27:36 +01:00 |
|
mmetc
|
bc6be99b97
|
cscli refact: package clialert, clidecision (#3203)
* cscli refact: package clialert, clidecision
* refact: function SanitizeScope()
* lint
|
2024-09-03 12:37:38 +02:00 |
|
mmetc
|
5a50fd06bb
|
refact: reduce code nesting (acquisition/file, tests) (#3200)
* reduce if nesting
* lint: gocritic (nestingReduce)
* lint
|
2024-09-03 12:25:30 +02:00 |
|
blotus
|
ae5e99ff13
|
update grokky and deps (#3206)
* update grokky and deps
* mod tidy
---------
Co-authored-by: marco <marco@crowdsec.net>
|
2024-09-03 12:08:18 +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 |
|