TRUSTIVAN sends events to a PagerDuty service through the Events API v2, with the service’s integration key. It is not a PagerDuty app from the marketplace, and nothing in PagerDuty flows back: acknowledging or resolving an incident in PagerDuty does not change the finding in TRUSTIVAN. What it does do is keep the two in step from TRUSTIVAN’s side. The same fact always reaches the same incident, and a finding that is resolved or suppressed in TRUSTIVAN resolves its incident.

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.com and needs "region": "eu". Anything else is us, the default.
  • An administrator of the TRUSTIVAN organization, signed in with curl so cookies.txt holds the session (see the quickstart). Changing notifications needs webhooks:manage, which an API key cannot hold.
  • A plan that includes webhooks.

Create the destination

The host is fixed: TRUSTIVAN sends only to 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

The test sends a real event, so it opens a real info incident on the service titled “Test notification from TRUSTIVAN”. Resolve it in PagerDuty.

Troubleshooting

See also