Commit graph

602 commits

Author SHA1 Message Date
he2ss eb0bd70046
fix #787 : load simulation config at startup (#793)
* fix #787 : load simulation config at startup
2021-05-17 11:54:28 +02:00
Thibault "bui" Koechlin f881510f79
delete orphan nodes (fix #778) (#794)
* delete orphan nodes (for #778 and partially #781)

* and do it as well for decisions
2021-05-17 11:45:01 +02:00
Shivam Sandbhor 98277f5bb7
Gen passwd until it satisfies metabase policy (#792)
Signed-off-by: Shivam Sandbhor <shivam@crowdsec.net>
2021-05-17 11:43:53 +02:00
AlteredCoder 4433e3bf87
fix typo in writing parser documentation (#800)
Co-authored-by: AlteredCoder <AlteredCoder>
2021-05-14 11:47:18 +02:00
AlteredCoder 8db7fc1f58
fix typo in scenario doc (#798)
Co-authored-by: AlteredCoder <AlteredCoder>
2021-05-14 11:20:10 +02:00
Lamera 1c7faabd8b
Added steps for proxy on systemd service (#795)
* Added steps for proxy on systemd service
2021-05-14 10:37:04 +02:00
AlteredCoder 1d13fe754b
improve proxy doc (#791)
Co-authored-by: AlteredCoder <AlteredCoder>
2021-05-12 17:19:56 +02:00
AlteredCoder fd830b4293
Fix some bugs (#788)
* fix config restore

* fix panic on middleware

Co-authored-by: AlteredCoder <AlteredCoder>
2021-05-07 18:40:01 +02:00
AlteredCoder ab4878d4e6
Update acquisition.md (#784) 2021-05-07 11:09:24 +02:00
registergoofy 75f0adebb7
fix build (#774) 2021-05-05 08:54:33 +02:00
AlteredCoder a19f13ab45
fix cscli alerts delete -all (#769)
Co-authored-by: AlteredCoder <AlteredCoder>
2021-04-27 11:59:18 +02:00
registergoofy e82ad5704d
fix (#768) 2021-04-27 11:20:20 +02:00
registergoofy 9102d37f27
Functional tests staticbuild (#767)
* try out func tests on uploaded tarball
* fix url of tarball
* fix tarball and uncompress

Co-authored-by: bui <thibault@crowdsec.net>
2021-04-27 10:23:45 +02:00
AlteredCoder 60740f6279
fix makefile for static binaries (#764)
* Fix LD_OPTS for static build

Co-authored-by: AlteredCoder <AlteredCoder>
Co-authored-by: Sebastien Blot <sebastien@crowdsec.net>
2021-04-26 14:45:52 +02:00
Thibault "bui" Koechlin b0d4744b15
add System to cwversion to know platform, add it in UA (#763) 2021-04-23 15:23:46 +02:00
blotus 5e2412cc5d
cscli: sort meta by key in alerts inspect output (#762) 2021-04-23 13:42:14 +02:00
blotus 430b4bafbc
Update CI (#760)
* Force machine-id when running tests

* Use the source branch instead of master when dispatching to packaging repo
2021-04-20 11:07:13 +02:00
registergoofy 7e9ce901a4
add TimeNow in the exprlib helpers (#756)
* add TimeNow in the exprlib helpers
* add a default date when none is detected: when no date is recognised by ParseDate, then use time.Now()
2021-04-16 19:13:48 +02:00
Thibault "bui" Koechlin 88e1095478
cscli machines|bouncers|dashboard error message clarification (#754) 2021-04-16 10:50:08 +02:00
Thibault "bui" Koechlin 446fd499c8
fix #741 : document network streams about crowdsec and lapi (#750)
* fix #741 : document network streams about crowdsec and lapi
2021-04-14 19:24:48 +02:00
philippecrowdsec a47dab73e3
Updated readme.md (#743)
* Simplified CrowdSec process

A basic, visual, explanation of how CrowdSec works.
2021-04-14 15:13:48 +02:00
Thibault "bui" Koechlin 2679867061
ensure to flush acquis config while reloading (#748) 2021-04-13 13:55:33 +02:00
Thibault "bui" Koechlin c10f798545
clarify doc (#747) 2021-04-13 09:19:51 +02:00
Lars Lehtonen d86ba98cff
pkg/apiserver: fix dropped error (#700)
* pkg/apiserver: fix dropped error

* pkg/apiserver: remove unused Context from APIServer{}
2021-04-07 14:51:00 +02:00
Thibault "bui" Koechlin 4bb34d8e77
fix #723 : intercept http2 stream closed errors (#724)
* fix #723 : intercept http2 stream closed errors

* factorize the 'dump stacktrace' code
2021-04-07 14:31:03 +02:00
registergoofy 01c557e209
get rid of tmp stuff (#738) 2021-04-07 14:23:48 +02:00
dependabot[bot] c3a2022941
Bump pygments from 2.6.1 to 2.7.4 in /docs (#725)
Bumps [pygments](https://github.com/pygments/pygments) from 2.6.1 to 2.7.4.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.6.1...2.7.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-07 14:22:34 +02:00
Thibault "bui" Koechlin cd06929e75
honor log levels for api : don't log access logs if level is warn/err (#732)
* honor log levels for api : don't log access logs if level is warn/err

* add basic test for logging of api server
2021-04-07 11:39:24 +02:00
registergoofy 10c98b6547
Static release (#737)
* dispatch on tag creation

* add static build to release

* fix static release tarball name

* This should be removed once merged and static release file built
2021-04-07 10:14:39 +02:00
Manuel Sabban e45cb167bd
dispatch on tag creation (#734)
Co-authored-by: registergoofy <70151212+registergoofy@users.noreply.github.com>
2021-04-06 16:24:34 +02:00
Thibault "bui" Koechlin 8df8ed9e3e
README update (#730)
* README update
2021-04-01 09:54:25 +02:00
Thibault "bui" Koechlin 59a9a6b6bf
ensure to load db config for dashboard commands (#731) 2021-03-31 11:32:38 +02:00
Thibault "bui" Koechlin 20ef67a699
cscli hub mgmt improvements (#710)
* avoid this confusing behaviour where 'cscli parsers/scenarios/... upgrade' won't tell a thing if no arguments are given (and won't do anything neither)

* avoid repeating warnings about available update to the user
2021-03-29 10:33:23 +02:00
AlteredCoder 20ccb32124
FreeBSD changes (#718) (#721)
* FreeBSD changes (#718)

* Update build Makefile to be able to build on other platforms

Split Makefiles to isolate every specifics per platform if specific file
is not found, the include will default to linux.

* Isolate linux specific messages emitted by crowdsec command line

On other platforms, we shouldn't write messages with `systemctl`
occurrences. This commit isolate the specific messages and ensure the
messages are relevant for the given platform according result of `GOOS`.

* remove the test

Co-authored-by: Sofian Brabez <sbz@6dev.net>
Co-authored-by: AlteredCoder <AlteredCoder>
2021-03-26 17:42:56 +01:00
dependabot[bot] 5ad7e9e729
Bump pyyaml from 5.3.1 to 5.4 in /docs (#720)
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.3.1 to 5.4.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/5.3.1...5.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-26 17:19:48 +01:00
bui b007b8e932 fix paths for tests (packages and tarball don't deploy in the same path) 2021-03-26 10:18:13 +01:00
dependabot[bot] f2a0155d90
Bump jinja2 from 2.11.1 to 2.11.3 in /docs (#706)
Bumps [jinja2](https://github.com/pallets/jinja) from 2.11.1 to 2.11.3.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/master/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/2.11.1...2.11.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-24 19:37:54 +01:00
AlteredCoder 73a10ef0e5
add autocompletion for cscli (#717) 2021-03-24 19:07:58 +01:00
AlteredCoder 1e899c2211
Refactor configuration management (#698) 2021-03-24 18:16:17 +01:00
registergoofy bf192593b6 trigger ci 2021-03-23 17:24:44 +01:00
bui 29323494c9 dpkg ci 2021-03-23 15:55:20 +01:00
Thibault "bui" Koechlin 6d28599efa
Ensure LAPI logs respect log_media (#707)
* if log_media is set to file, don't try to log to stdout

* use the log media no matter what
2021-03-22 17:46:55 +01:00
AlteredCoder 1f2f6c87d5
update crowdsec tour documentation (#713)
Co-authored-by: AlteredCoder <AlteredCoder>
2021-03-22 17:17:33 +01:00
AlteredCoder 4166d9ff48
fix pattern registration (#715) 2021-03-22 17:17:24 +01:00
AlteredCoder e59c33a8e2
update README (#714)
Co-authored-by: AlteredCoder <AlteredCoder>
2021-03-22 16:48:42 +01:00
registergoofy bdca1d79c1
fix debian-like installation documentation (#708) 2021-03-22 10:07:50 +01:00
Thibault "bui" Koechlin 1938e1a62d
clarify doc on onsuccess in parsers + add new date formats for dateparse (#703) 2021-03-19 16:33:10 +01:00
Thibault "bui" Koechlin 190fa112dd
Debian package auto-testing (#701)
* add dispatch to debian CI

* test dispatch

* keep only master

* push+mr

* document the functional tests
2021-03-19 16:28:55 +01:00
Thibault "bui" Koechlin f1b0414c89
Unified functional tests (#696)
* remove dead / not needed code & scripts

* don't rely on /dev/urandom in wizard

* unified functional tests
2021-03-18 13:59:41 +01:00
Lars Lehtonen 7f8faa7565
pkg/apiclient: pick up dropped errors (#676) 2021-03-17 12:36:47 +01:00