mmetc
e7de05d6c9
don't set logger default level twice ( #1336 )
2022-03-10 13:56:46 +01:00
mmetc
aca37a38e7
return 1 with incomplete command line; always check error when calling cmd.Help ( #1335 )
2022-03-10 13:55:25 +01:00
mmetc
4e6b9597f8
fix for https://staticcheck.io/docs/checks#SA2002 ( #1334 )
2022-03-10 13:53:33 +01:00
Thibault "bui" Koechlin
52132ce398
fix #1157 ( #1327 )
2022-03-10 13:23:21 +01:00
mmetc
0c35263c29
fix bats-test for freebsd ( #1333 )
2022-03-10 12:19:02 +01:00
mmetc
c077668511
restore test_env.sh ( #1332 )
...
* restore test_env.sh, test 'make package' in CI
2022-03-10 09:28:42 +01:00
mmetc
7c0593c659
noop code removal, typos and lint fixes ( #1329 )
2022-03-09 16:15:18 +01:00
mmetc
59ad91a8ca
functional tests with bats-core ( #1266 )
2022-03-09 14:45:36 +01:00
mmetc
10ce45c054
allow notification plugins to work on freebsd and non-root functional tests ( #1253 )
...
* random uuid for all platforms
* check group writable and setgid; don't check group ownership
* allow user to run plugins without changing desired user/group (set them to "")
2022-03-09 12:09:50 +01:00
Thibault "bui" Koechlin
5a15f9b39b
bailout on incompatible duration format ( #1326 )
2022-03-08 18:18:36 +01:00
Chad Jones
19817083d1
Docker prestage - correct database directory ( #1312 )
2022-03-07 10:35:32 +01:00
Christophe Jauffret
a77b3e2690
Email notification plugin add sender_name option ( #1297 )
...
* add sender_name option
* default config and validation
2022-03-07 10:18:12 +01:00
mmetc
e35efc5b2d
fix check uid, gid values ( #1309 )
2022-03-07 10:16:34 +01:00
Thibault "bui" Koechlin
b66366c28c
Revert "Handle decisions with varying expiry for same IP ( #1262 )" ( #1308 )
...
This reverts commit e4f6cdfc14
.
2022-03-04 10:17:31 +01:00
mmetc
c5dda0ffba
fix: deny copy folder to itself or subpath ( #1299 )
2022-03-02 11:30:04 +01:00
Shivam Sandbhor
c3dbe0080c
Exit syslog acquis only after server is dead ( #1288 )
2022-03-01 11:32:28 +01:00
Thibault "bui" Koechlin
a300d5818f
fix #1295 : deploy email plugin on RPMs ( #1296 )
...
* fix #1295 : deploy email plugin on RPMs
2022-02-28 14:59:33 +01:00
Shivam Sandbhor
0f5e922851
Warn when log file in explain command is large. ( #1293 )
...
* Warn when log file in explain command is large.
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2022-02-28 14:57:59 +01:00
he2ss
45c1075ae0
docker image: add multi arch platforms ( #1270 )
...
* docker image: add multi arch platforms
2022-02-28 12:04:31 +01:00
Shivam Sandbhor
1928d385b0
Fix typo in explain
help ( #1290 )
2022-02-24 13:32:18 +01:00
Thibault "bui" Koechlin
9a42190e13
fix #1274 ( #1285 )
2022-02-24 10:24:04 +01:00
Manuel Sabban
2763366309
switch to make build for packaging ( #1279 )
...
* switch to make build for packaging
* build as first target
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-02-18 18:09:19 +01:00
Andreas Krüger
75ba0e2bfc
Specify journalctl support ( #1272 )
...
Journalctl is only supported from the debian container.
2022-02-18 17:11:41 +01:00
blotus
fb74b2fda7
Improve LAPI performance when under high load ( #1273 )
2022-02-17 17:52:04 +01:00
Shivam Sandbhor
e4f6cdfc14
Handle decisions with varying expiry for same IP ( #1262 )
...
* Upgrade ent and add sql/modifier in codegen
* update db wrappers to sanitize LAPI
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2022-02-16 15:19:14 +01:00
Andreas Krüger
d18620858e
Create debian docker package including journalctl/systemd ( #1233 )
...
* Create debian docker package with journalctl
Co-authored-by: he2ss <hamza.essahely@gmail.com>
2022-02-15 17:10:15 +01:00
mmetc
9bc7e6ffcf
Refactor unit tests to reduce line count ( #1264 )
2022-02-15 12:50:33 +01:00
Manuel Sabban
afe1704aa6
fix upgrade when somthing is already listening on 8080 ( #1258 )
...
* this should fix issue #1245
* change cmdline for getting port
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-02-15 11:20:52 +01:00
mmetc
1d156ab19d
git tag detection fix ( #1265 )
2022-02-15 11:09:58 +01:00
mmetc
556892cf86
make test ( #1249 )
2022-02-14 22:21:19 +01:00
Shivam Sandbhor
43d5690432
Detect missing plugin binary wrt profiles ( #1252 )
...
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2022-02-14 17:45:03 +01:00
mmetc
5817fa4147
configuration comments ( #1255 )
2022-02-14 17:09:31 +01:00
AlteredCoder
8b90f4b2b2
Upgrade download datafiles if doesn't exist ( #1254 )
2022-02-14 16:51:06 +01:00
AlteredCoder
5a0843852a
add IpToRange helpers and allows to have an expression with scope Range ( #1260 )
...
* add IpToRange helpers and allows to have an expression with scope Range
2022-02-14 16:50:52 +01:00
mmetc
40ab8fa738
Atoi() -> ParseInt() ( #1256 )
2022-02-14 14:00:42 +01:00
mmetc
ef4bf6a8ab
grammar ( #1257 )
2022-02-14 13:47:15 +01:00
Shivam Sandbhor
76e3612088
Check log level before dumping resp ( #1243 )
...
* Check log level before dumping resp
* Sleep longer in func tests
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2022-02-08 15:40:01 +01:00
mmetc
5c7c12c62d
define cwversion.System (Platform) in "make static" too; show it with --version ( #1238 )
2022-02-04 13:02:45 +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