Commit graph

703 commits

Author SHA1 Message Date
alteredCoder
8311b1d01f add more debug 2022-02-04 11:47:10 +01:00
alteredCoder
bf19921659 update branch for the tests 2022-02-04 11:32:39 +01:00
AlteredCoder
fa9664af71
Update cwhub.go 2022-02-03 18:27:09 +01:00
Shivam Sandbhor
44d2eaad51
Sync data files with hub index (#1153)
* Allow versioning, updating data files
2022-02-03 18:25:49 +01:00
Thibault "bui" Koechlin
dd53d19777
Make whitelist by expr debug level (#1236)
* fix #616 : simply make it at debug level, so that the user can set his node to debug level if he really wants to see this. Otherwise it can be too spammy
2022-02-03 17:04:18 +01:00
Andreas Krüger
02765a74fa
Add LOCAL_API_URL to register auto an agent (#1231) 2022-02-03 12:26:20 +01:00
Andreas Krüger
8c878b0669
Add TLS functionality from env variables (#1227)
* Add TLS functionality settings from env variables
2022-02-02 13:20:12 +01:00
Andreas Krüger
ead0a06f0c
Set custom hostname for local agent credentials (#1229)
* Set custom hostname for local agent credentials
2022-02-02 10:12:54 +01:00
Kerma Gérald
052ec6e632
email-plugin: fix install in debian package (#1219)
fix some small typo
add the email plugins to debian package

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
2022-02-02 10:08:32 +01:00
Thibault "bui" Koechlin
4fc7335112
fix help message (#1228) 2022-02-02 10:06:08 +01:00
mmetc
ad28a979e9
local control flow cleanup (#1215)
removed redundant/unreachable returns, else branches, type declarations, unused variables
2022-02-01 22:08:06 +01:00
Andreas Krüger
d5f17ee377
Set LOCAL_API_URL on regeneration of local agent (#1226)
The local agent credentials file contains the URL for the local API endpoint. If you set it through the environment variable, it is not honored when regenerating the URL for the localhost machine.

This PR will set the LOCAL_API_URL on the regeneration of credentials if it's defined.
2022-02-01 17:45:04 +01:00
Kerma Gérald
6d1adb1784
Makefile: add ENV VARIABLES to override /etc/crowdsec and /var/lib/crowdsec/data (#1224)
to enhance:
35eea39db7

- add ENV VARIABLES to help defaults settings from script build (without hardcoded patch need)
- add override also in static build

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
2022-02-01 17:16:17 +01:00
Adam
d2bd01d009
Prestage files and copy on init to fix bind mount issues (#1216) 2022-02-01 12:35:57 +01:00
mmetc
35eea39db7
allow Makefile to override /etc/crowdsec and /var/lib/crowdsec/data (#1221) 2022-02-01 10:34:53 +01:00
mmetc
9c9639d19b
string comparison fix (#1220) 2022-02-01 09:55:28 +01:00
mmetc
383eebf2b6
Makefile cleanup (#1211)
* rm -f => $(RM)
* PHONY targets
* remove email plugin binary on cleanup
* unused make variables
2022-02-01 09:22:47 +01:00
he2ss
5f2d7f6a65
wizard: install matched collections only (#1212) 2022-01-28 09:08:25 +01:00
Manuel Sabban
840939d489
Use override possibility in systemd file management in functional tests (#1208)
* change systemd behaviour for func tests

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-01-26 18:22:16 +01:00
Manuel Sabban
01ee09c547
Merge branch 'master' into master 2022-01-25 20:32:46 +01:00
Manuel Sabban
715c32ef9c
clean up hub dir on rpm remove (#1205)
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-01-24 18:16:51 +01:00
Thibault "bui" Koechlin
dbde90d24c
fix #1200 (#1203) 2022-01-24 17:22:16 +01:00
Manuel Sabban
0814a7b19d
fix fc35 package (#1198)
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-01-24 11:33:28 +01:00
mmetc
8310c10ce3
console_config.yaml -> console.yaml (#1195) 2022-01-21 11:52:23 +01:00
mmetc
240e5ad3ab
remove trailing carriage return (#1194) 2022-01-21 11:35:21 +01:00
Manuel Sabban
894388ec6c
update deps for fc35 (#1193)
* update to fc35

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-01-21 09:06:53 +01:00
blotus
19323ba4aa
fix crash on upgrade with nil last push field (#1191) 2022-01-20 18:10:40 +01:00
Manuel Sabban
363abafe4b
make console_config.yaml known to rpm system (#1190)
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-01-20 14:31:44 +01:00
Cristian Nitescu
64a672216d
revamp docker documentation (#1189) 2022-01-20 12:29:19 +01:00
AlteredCoder
9b3db6b6bb
update notifications template (#1188)
* update notifications template
2022-01-20 11:44:26 +01:00
AlteredCoder
b93b8d9a2e
Support PGX (#1186)
* Support PGX

* support sslmode
2022-01-20 11:17:21 +01:00
Thibault "bui" Koechlin
3b04bd3b5b
upgrade grokky following https://github.com/crowdsecurity/grokky/pull/2 (#1187) 2022-01-20 10:51:29 +01:00
Shivam Sandbhor
59a537514f
Check for errors before modifying proc attrs (#1181)
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2022-01-19 15:34:09 +01:00
Thibault "bui" Koechlin
cc1ab8c50d
switch to utc time everywhere (#1167)
* switch to utc time everywhere


Co-authored-by: alteredCoder <kevin@crowdsec.net>
2022-01-19 14:56:05 +01:00
AlteredCoder
b1a7ffb92f
fix postgreSQL count fail (#1184) 2022-01-19 14:50:53 +01:00
Thibault "bui" Koechlin
c81fc87d4e
fix #1168 (#1179)
* fix #1168
2022-01-19 11:34:40 +01:00
Thibault "bui" Koechlin
a88848009a
fix default perms for log file (#1177)
* fix default perms
2022-01-18 16:54:02 +01:00
Thibault "bui" Koechlin
a17f150e5d
fix #1170 : display full message in debug mode when syslog cannot parse (#1176)
* fix #1170 : display full message in debug mode when syslog cannot parse
2022-01-18 09:54:01 +01:00
Thibault "bui" Koechlin
9d133ea2b5
fix #1172 (#1175) 2022-01-18 08:35:49 +01:00
Thibault "bui" Koechlin
40ed810c0b
Gin upgrade (#1174)
* upgrade gin / gin-jwt, and add a new 'trusted_proxies' option to provide trusted CIDRs
2022-01-17 17:18:12 +01:00
Thibault "bui" Koechlin
6e92da76ad
lapi to capi : allow push of tainted/custom/manual decisions (#1154)
* add console command to control signal sharing
* modify metrics endpoint to add lastpush

Co-authored-by: alteredCoder <kevin@crowdsec.net>
2022-01-13 16:46:16 +01:00
mazzma12
50fb1e3df1
Replace link to Gitter with Discord in README.md (#1161) 2022-01-13 14:18:32 +01:00
Manuel Sabban
7b798c1f6d
Merge branch 'crowdsecurity:master' into master 2022-01-12 08:40:09 +01:00
blotus
cc72800f50
Update LAPI swagger (#1155) 2022-01-11 16:45:34 +01:00
Thibault "bui" Koechlin
3bca25fd6d
lists support from central api (#1074)
* lists support from central api

Co-authored-by: Sebastien Blot <sebastien@crowdsec.net>
2022-01-11 14:31:51 +01:00
blotus
4a11060930
Kinesis datasource (#1147) 2022-01-11 14:19:43 +01:00
Shivam Sandbhor
c109e0e7dd
Add option to print machine creds (#1149)
* Add option to print machine creds

Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2022-01-07 16:53:56 +01:00
Shivam Sandbhor
a6e405422c
Add email notification plugin. (#1013)
* Add email notification plugin.
* Add plugin binary to gitignore

Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2022-01-06 11:20:59 +01:00
Thibault "bui" Koechlin
6c676c4869
fix #1131 : complain when validating unknown machine (#1146) 2022-01-05 13:50:04 +01:00
Shivam Sandbhor
ba71c55492
Fix cscli inpsect json output (#1145)
* Fix cscli inpsect json output
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2022-01-05 10:42:27 +01:00