Commit graph

442 commits

Author SHA1 Message Date
bui
3923d7e3e5 up wip 2021-04-28 16:52:26 +02:00
bui
013699c480 up 2021-04-28 14:51:58 +02:00
bui
4bc206d9cb up skeleton 2021-04-28 14:44:15 +02:00
Sebastien Blot
9489bd22b6
wip 2021-04-28 14:01:39 +02:00
Sebastien Blot
cb8955238d
wip 2021-04-26 11:52:39 +02:00
Sebastien Blot
3287eed931
wip 2021-04-23 12:04:01 +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
AlteredCoder
f1d23b51f6
fix null deref in cscli config (#694) 2021-03-16 16:09:11 +01:00
Thibault "bui" Koechlin
28446b6d29
Ent update : 0.7.0 (#692)
* up regenerate new schema

* new ent

* update documentation for min required versions

* update documentation
2021-03-15 18:46:52 +01:00
Peter Dave Hello
9d1e2f3795
Use --no-cache with apk to skip manual apk update (#689)
Save one step, also prevent additional local cache files need cleaning.
2021-03-15 11:51:33 +01:00
thibaut severac
ecad34091e
Misspelling in docker Readme (#688)
correct an error on a link
2021-03-15 09:29:55 +01:00
AlteredCoder
111e17e884
don't hide cscli version (#686)
Co-authored-by: AlteredCoder <AlteredCoder>
2021-03-12 16:17:28 +01:00
AlteredCoder
c1abf69979
fix #677 (#684) 2021-03-12 15:10:56 +01:00
Thibault "bui" Koechlin
17ad9de738
up installation documentation (#678)
* up installation documentation
2021-03-12 11:16:17 +01:00
Peter Dave Hello
d09cc0eeb3
Reorder Dockerfile to improve image layer caching (#681)
This will speed up the build and prevent additional image layer every time the code base changed.
2021-03-12 11:00:08 +01:00
he2ss
ccec56c1a6
Automatically update docker hub readme (github action) (#679)
* add new github action : update docker hub readme
2021-03-12 10:29:57 +01:00
AlteredCoder
f2d14c8ca2
update the config.yaml file (#674) 2021-03-11 11:18:09 +01:00