Commit graph

23 commits

Author SHA1 Message Date
AlteredCoder b06167a3fa
Allow plugins to load environment variable (#1727)
* Allow plugins to load environment variable
2022-09-08 11:41:28 +02:00
mmetc 414282a2c9
golangci-lint 1.49 and related fixes (#1736) 2022-09-06 13:55:03 +02:00
Manuel Sabban 64e0832b85
fix the ssltls by actually doing ssltls. (#1672)
BEWARE: THIS IS A BREAKING CHANGE

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-08-26 16:49:31 +02:00
Manuel Sabban 27194a9f9c
fix logging for email plugin (#1670)
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-08-16 18:07:00 +02:00
mmetc 628d7be1d8
simplify err.Error() to err when used in printf context (#1603) 2022-06-22 15:53:53 +02:00
mmetc c78c833400
CI: colored test output, colored crowdsec and crowdsec-api logs, full final db dump for mysql and sqlite (#1596)
* github-ci: color unit test output and logs
* new config option: force_color_logs (useful in CI)
* bats: show sqlite/mysql dump at the end
* removed "-v" (print package names) from "go build"
* general workflow cleanup
2022-06-17 16:12:49 +02:00
mmetc 7c7fe70cb2
test multiple notification events with the same plugin (#1539) 2022-05-19 09:54:26 +02:00
blotus 0449ec1868
Windows Support (#1159) 2022-05-17 12:14:59 +02:00
Manuel Sabban 589a30cd5f
[fix issue 1484] Allow to send email without auth again (#1485)
* We can now send email with plain auth
* better defaults for email plugin

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-04-27 12:07:54 +02:00
Thibault "bui" Koechlin d8dc01cd94
Revamp unit tests (#1368)
* Revamp unit tests
* Increase coverage
* Use go-acc to get cross packages coverage

Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2022-03-29 14:20:26 +02:00
mmetc 81793fe8bf
dummy plugin (#1342) 2022-03-16 09:30:04 +01:00
Thibault "bui" Koechlin 6f68f4056e
fix #1316 : add html body (#1339)
* fix #1316 : add html body
2022-03-10 16:44:21 +01:00
mmetc e7de05d6c9
don't set logger default level twice (#1336) 2022-03-10 13:56:46 +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 5817fa4147
configuration comments (#1255) 2022-02-14 17:09:31 +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
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
AlteredCoder 9b3db6b6bb
update notifications template (#1188)
* update notifications template
2022-01-20 11:44:26 +01:00
Thibault "bui" Koechlin 9d133ea2b5
fix #1172 (#1175) 2022-01-18 08:35:49 +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
blotus dd41c30fba
log more information if server returns non 200 status code (#966) 2021-09-10 14:24:17 +02:00
Shivam Sandbhor 899b2abae7
Avoid code duplication for protobuf in plugins (#918)
* Avoid code duplication for protobuf in plugins

Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-09-03 12:24:59 +02:00
Thibault "bui" Koechlin 950759f6d6
Output plugins (#878)
* Add plugin system for notifications (#857)
2021-08-25 11:43:29 +02:00