- Summarized notifications - now instead of getting hundreds of notifications from JFrog Xray, you get a much shorter list of notifications summarized by severity
- Included in your PagerDuty event is also a link to the scan results page in the JFrog Xray UI
- Proactively manage security and compliance across the software development and release lifecycle. Receive early notifications within PagerDuty on vulnerabilities and compliance violations impacting artifacts, builds and components before releasing to production.
- Customize notifications Configure granular policies within JFrog Xray based on type of violation, severity, and receive notifications on repositories, builds or release bundles of interest.
- Summarized notifications for easy consumption Receive a summary of Xray watch issues by severity as well as the link to the watch scan results as a PagerDuty event.
- Users will install the JFrog Xray integration application from within the PagerDuty Service Directory and receive a URL to setup the PagerDuty webhook within JFrog Xray
- JFrog Xray will utilize the PagerDuty webhook trigger to send notifications to PagerDuty. Users will be able to configure their rules and set up watch policies for repositories, builds and release bundles within JFrog Xray and associate these rules with the PagerDuty webhook trigger.
- Once the webhook is configured within JFrog Xray, an incident will be sent to the PagerDuty service whenever security or license violation occurs.
- Xray performs a recheck of all watched resources and any found violations will send an event to a service in PagerDuty. Events from Xray will trigger a new incident on the corresponding PagerDuty service, or group as alerts into an existing incident.
- Once you have setup using the walkthrough below, the following metadata will become available in PagerDuty:
CUSTOM DETAILS | |
---|---|
license_issues | 5 |
number_of_critical_severity_issues | 15 |
number_of_high_severity_issues | 30 |
number_of_low_severity_issues | 51 |
number_of_medium_severity_issues | 35 |
policy_name | PD-Test-policy |
policy_rule | PD-Test-rule |
top_severity | Critical |
vulnerabilities | 131 |
watch_name | PD-Test-watch |
watch_url | https://{hostname}/ui/watchesNew/edit/PD-Test-watch?activeTab=violations |
- PagerDuty integration requires an admin base role for account authorization. If you do not have this role, please reach out to an Admin or Account Owner within your organization to configure the integration.
- JFrog Xray requires an Admin based role with administrative privileges to configure the integration. If you do not have this role, please reach out to an Admin or Account Owner within your organization to configure the integration.
If you need help with this integration, please contact support@jfrog.com
To add the integration, you must first have a PagerDuty account setup. Next, follow the instructions below or watch the video to understand how to finish the integration.
Add JFrog Xray integration to an existing PagerDuty service or create a new service by following the steps below.
- From the Configuration menu, select Services.
- There are two ways to add an integration to a service:
- If you are adding your integration to an existing service: Click the name of the service you want to add the integration to. Then, select the Integrations tab and click the New Integration button.
- If you are creating a new service for your integration: Please read our documentation in section Configuring Services and Integrations and follow the steps outlined in the Create a New Service section, selecting JFrog Xray + PagerDuty Notifications as the Integration Type in step 4. Continue with the In JFrog Xray Setup section (below) once you have finished these steps.
- Enter an Integration Name in the format
JFrog
and select JFrog Xray + PagerDuty Notifications from the Integration Type menu. - Click the Add Integration button to save your new integration. You will be redirected to the Integrations tab for your service.
- An Integration Key will be generated on this screen. Click on the integration name next to the integration key and copy the integration URL in a safe place as it will be used when you configure the integration with JFrog Xray + PagerDuty Notifications in the next section.
- Navigate to Xray Security & Compliance in JFrog Platform’s Administration section and click on it
- Click on Webhooks in the General tile
- Create a new webhook for pagerduty
- Enter Webhook Name
- Enter URL (URL is the Events API endpoint from pagerduty) ex:
https://events.pagerduty.com/integration/<integration_id>/enqueue
- Add custom header
hostname
with the value of your Artifactory instance hostname (no protocol). Hostname is needed to construct a valid link to the Xray watch in the PagerDuty notification. If not provided, it will be replaced by<hostname_was_not_set_in_webhook_header>
string. - Click Save
- Navigate to Security and Compliance in JFrog Platform’s Application section and select Policies
- Next, specify the policy name and select security from the dropdown list below policy name
- Next, create a new rule for the policy by clicking on the New Rule to the right
- Enter a rule name
- In the criteria section, select the minimal severity or the cvss score. Violations in Xray are filtered based on this criteria and sent to pagerduty
- In the Automatic Actions section, select Trigger Webhook checkbox and select the webhook that you created above for pagerduty
- Click on Save
- A policy rule is created with the rule name specified in Step11
- Click create to create a policy with name specified in Step9
- Navigate to watches in the Security and Compliance section on the left
- Create a new watch or edit an existing watch
- In order to create a new watch, click on the New Watch present at the top right corner of the screen
- Enter the name and description of the watch
- In Manage Resources section, click on Add repositories or Add Builds or Add Bundles and then include the resource that you want to watch from the available resources and click Save
- In the Assigned policies section, Click on Manage policies towards the right and include the policy created in Step15 and click Save
- Click Save to save the watch
- You’ll see the watch in the list of watches
- To manually trigger a watch, click on the play button and this will start sending any violations related to the watch to pagerduty
- Find the integration to delete by navigating to Services and selecting Service Directory
- Select the service with your integration and navigate to Integrations tab
- Navigate to the integration by clicking on the integration name (JFrog Xray + PagerDuty Notifications)
- Click on the Delete Integration button in the top right corner.