OpsLevel
Introduction to Snyk and OpsLevel Integration
OpsLevel allows you to define what operational maturity looks like for your organization. Within OpsLevel you can use Rubrics to create definitions for what a mature service looks like and evaluate your services to measure their adherence to your preferred best practices. With OpsLevel Checks you can verify your services meet the standards you care about.
With Snyk and OpsLevel you can create checks for vulnerabilities in your services.
How it Works
Add a Snyk Integration
In the OpsLevel app, click Integrations in the left sidebar.
Click on the + New Integration button.
Click the Snyk tile to add the integration.
Create a Check
Navigate to the Rubrics sub menu under the Service Health menu in OpsLevel
Create a Custom Event check
Select the Snyk integration you created from the Integration dropdown
Choose one of the Check Templates from the dropdown.
Consult the following list for information about each template:
No Critical Vulnerabilities: Any service that has critical vulnerabilities in its package manifest file will fail this check.
No High Vulnerabilities: Any service that has high vulnerabilities in its package manifest file will fail this check.
Less than 3 Medium Vulnerabilities: Any service with 3 or more medium vulnerabilities in its package manifest will fail this check.
Less than 5 Low Vulnerabilities: Any service with 5 or more low vulnerabilities in its package manifest file will fail this check.
OpsLevel will populate Service Specifier field, which is used to determine what service to run the check for, and the Success Condition field, which is used to determine if the check should pass or fail. OpsLevel will also provide a sample payload to test the check.
Send payloads to OpsLevel using snyk
snyk
Run your test command using Snyk CLI and send the JSON output back to OpsLevel using the code below.
snyk test --prune-repeated-subdependencies --json |
curl -X POST http://app.opslevel.local:5000/integrations/custom_event/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
-H 'content-type: application/json' --data-binary @-
This will send all the vulnerabilities for the service to OpsLevel where the check created in the previous section will be executed.
Last updated
Was this helpful?