Prerequisites
- An integration key. In PagerDuty, open the service, then Integrations → Add an integration → Events API V2, and copy the Integration Key. It is 32 characters; a shorter paste is refused when you save.
- Your account’s region. An EU account sends to
events.eu.pagerduty.comand needs"region": "eu". Anything else isus, the default. - An administrator of the TRUSTIVAN organization, signed in with
curlsocookies.txtholds the session (see the quickstart). Changing notifications needswebhooks:manage, which an API key cannot hold. - A plan that includes webhooks.
Create the destination
events.pagerduty.com or
events.eu.pagerduty.com, chosen by region, so there is no url.
What opens and closes an incident
A PagerDuty destination accepts three events.finding.sla_breached and
audit.recorded are refused when you save: neither names one fact, so each
would open a new incident every time.
A finding that is resolved and then reopened within 30 days does not page
again: TRUSTIVAN still holds the earlier delivery for that fact.
TRUSTIVAN severities map to PagerDuty’s as follows. A blocking verdict has no
severity of its own, so it is sent as
warning and passes any min_severity
filter.
The incident’s summary is the event’s one-line description. Its source is the
image or repository for a scan or a verdict, and the vulnerability identifier
for a finding.
custom_details carries the event name, the original severity
and whether it blocks, and the incident links back to the asset in TRUSTIVAN.
Test it
info incident on the service
titled “Test notification from TRUSTIVAN”. Resolve it in PagerDuty.
Troubleshooting
See also
- Send notifications to Slack, Jira and other tools: every channel, field and limit
- Jira: the same open-and-close behaviour, as issues
- Gate a pipeline on a policy