A webhook is a mechanism that allows Kaspersky Container Security to monitor changes and send you a notification when a certain event occurs. Webhooks involve using HTTP messages to initiate certain actions in another solution.
To add a webhook integration:
The integration settings window opens.
<
IP address
>:<
port
>
(for example, 127.0.0.1:2193).The default setting is 150 requests per second.
{
"response_policy_name": $$response_policy_name$$,
"image_name": $$image_name$$,
"registry_name": $$registry_name$$,
"compliance_verdict": $$compliance_verdict$$,
"malware_count": $$malware_count$$,
"sensitive_data_count": $$sensitive_data_count$$,
"misconfigurations_count":$$misconfigurations_count$$,
"vulnerabilities_count": $$vulnerabilities_count$$,
"total_critical": $$total_critical$$,
"total_high": $$total_high$$,
"total_medium": $$total_medium$$
}
You can delete or duplicate the lines in the request:
$$response_policy_name$$
is the name of the triggered response policy.$$image_name$$
is the name of the target image.$$registry_name$$
is the name of the image registry integration.$$compliance_verdict$$
is the security policy compliance status (Compliant or Non-compliant).$$malware_count$$
is the number of objects with malware found.$$sensitive_data_count$$
is the number of sensitive data found.$$misconfigurations_count$$
is the number of misconfigurations found.$$vulnerabilities_count$$
is the number of vulnerabilities found.$$total_critical$$
is the number of vulnerabilities with the Critical severity found.$$total_high$$
is the number of vulnerabilities with the High severity found.$$total_medium$$
is the number of vulnerabilities with the Medium severity level.The request body must comply with the JSON format. Values in the lines of the request must be specified as $$example$$
.
You can use the configured integration in response policies.
Page top