Skip to content

Latest commit

 

History

History
98 lines (85 loc) · 9.82 KB

File metadata and controls

98 lines (85 loc) · 9.82 KB

Highlights from update made on 07/12/2023

  • 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

PagerDuty + JFrog Xray Integration Benefits

  • 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.

How it Works

  • 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.

Available Information in PagerDuty

  • 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

Requirements

  • 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.

Support

If you need help with this integration, please contact support@jfrog.com

Integration Walkthrough

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.

In PagerDuty

Add JFrog Xray integration to an existing PagerDuty service or create a new service by following the steps below.

Integrating With a PagerDuty Service

  1. From the Configuration menu, select Services.
  2. 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.
  3. Enter an Integration Name in the format JFrog and select JFrog Xray + PagerDuty Notifications from the Integration Type menu.
  4. Click the Add Integration button to save your new integration. You will be redirected to the Integrations tab for your service.
  5. 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. integrations

In JFrog Xray

  1. Navigate to Xray Security & Compliance in JFrog Platform’s Administration section and click on it step1
  2. Click on Webhooks in the General tile
  3. Create a new webhook for pagerduty new webhook
  4. Enter Webhook Name
  5. Enter URL (URL is the Events API endpoint from pagerduty) ex: https://events.pagerduty.com/integration/<integration_id>/enqueue
  6. 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. step6
  7. Click Save
  8. Navigate to Security and Compliance in JFrog Platform’s Application section and select Policies step8
  9. Next, specify the policy name and select security from the dropdown list below policy name step9
  10. Next, create a new rule for the policy by clicking on the New Rule to the right new rule
  11. Enter a rule name
  12. 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
  13. In the Automatic Actions section, select Trigger Webhook checkbox and select the webhook that you created above for pagerduty
  14. Click on Save step14
  15. A policy rule is created with the rule name specified in Step11
  16. Click create to create a policy with name specified in Step9
  17. Navigate to watches in the Security and Compliance section on the left step17
  18. Create a new watch or edit an existing watch
  19. In order to create a new watch, click on the New Watch present at the top right corner of the screen
  20. Enter the name and description of the watch
  21. 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
  22. In the Assigned policies section, Click on Manage policies towards the right and include the policy created in Step15 and click Save
  23. Click Save to save the watch
  24. You’ll see the watch in the list of watches
  25. To manually trigger a watch, click on the play button and this will start sending any violations related to the watch to pagerduty step25

How to Uninstall

  1. Find the integration to delete by navigating to Services and selecting Service Directory
  2. Select the service with your integration and navigate to Integrations tab
  3. Navigate to the integration by clicking on the integration name (JFrog Xray + PagerDuty Notifications)
  4. Click on the Delete Integration button in the top right corner.