crowdsec
crowdsec copied to clipboard
[wip] add `cscli support dump`
This PR add support command to cscli.
The only subcommand available for now is dump. It will create a zip file containing various details about the crowdsec installation and the OS to help diagnose users issues more efficiently.
This collects:
- [x] Crowdsec version
- [x] OS version
- [x] Installed collections list
- [x] Installed parsers list
- [x] Installed scenarios list
- [x] Installed postoverflows list
- [x] Bouncers list
- [x] Machines list
- [x] CAPI status
- [x] LAPI status
- [ ] Crowdsec config (sensitive information like username and password are redacted)
- [x] Crowdsec metrics
Codecov Report
Merging #1634 (6694275) into master (27194a9) will increase coverage by
4.71%. The diff coverage isn/a.
@@ Coverage Diff @@
## master #1634 +/- ##
==========================================
+ Coverage 53.35% 58.07% +4.71%
==========================================
Files 136 104 -32
Lines 18980 12577 -6403
==========================================
- Hits 10127 7304 -2823
+ Misses 7732 4537 -3195
+ Partials 1121 736 -385
| Flag | Coverage Δ | |
|---|---|---|
| func-crowdsec | ? |
|
| func-cscli | ? |
|
| unit-linux | 64.17% <ø> (ø) |
|
| unit-windows | 53.55% <ø> (ø) |
Flags with carried forward coverage won't be shown. Click here to find out more.
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
Is it possible to avoid calling log.Fatal and just return errors, to check coverage? thanks