Add TheHive integration. (#7363)

This commit is contained in:
Nicolo Maio 2023-06-29 10:56:11 +00:00
parent 8f07f5308a
commit 5580225e4b
7 changed files with 128 additions and 22 deletions

View file

@ -620,7 +620,9 @@ function alert_utils.formatAlertNotification(notif, options)
msg = msg .. alert_message
end
return msg
local alert_title = string.format("[%s]: %s", alert_consts.alertEntityLabel(notif.entity_id),alert_consts.alertTypeLabel(notif.alert_id, options.nohtml, notif.entity_id))
local alert_type = alert_consts.alertEntityLabel(notif.entity_id)
return msg, alert_title, alert_type
end
-- ##############################################

View file

@ -1778,6 +1778,13 @@ local known_parameters = {
["telegram_channel"] = http_lint.validateEmptyOr(http_lint.validateSingleWord),
["telegram_token"] = http_lint.validateEmptyOr(http_lint.validateSingleWord),
["thehive_token"] = http_lint.validateEmptyOr(http_lint.validateSingleWord),
["thehive_url"] = {http_lint.webhookCleanup, http_lint.validateUnquoted},
["thehive_org_name"] = http_lint.validateSingleWord,
["thehive_obs_mail"] = http_lint.validateSingleWord,
["thehive_obs_url"] = {http_lint.webhookCleanup, http_lint.validateUnquoted},
["fail2ban_jail"] = http_lint.validateEmptyOr(http_lint.validateSingleWord),