Integrations
Notifications
NightVision tells you what needs attention in three ways: emails it sends itself, signals in the dashboard, and messages your own pipeline sends after a scan.
What NightVision sends itself
Section titled “What NightVision sends itself”NightVision sends two kinds of email about scans and findings.
- Project digests. A recurring security report for one project, with its findings and scan results. Open the project under Projects and select Subscribe to digest. Choose a weekly or monthly digest. Each person subscribes for themselves.
- Emailed scan reports. A link to the PDF report for one scan, sent to your own address. Open the scan, select Export report, then Email me a copy of the PDF report.
See Reports and exports for what each one contains.
NightVision does not post scan results or findings to Slack, Microsoft Teams or a webhook on its own. To reach those, send the message from your pipeline, as shown below.
Changes to an API are the exception. When you watch an API in the API inventory, NightVision emails you about security-relevant changes and can post each change set to a webhook URL, including a Slack webhook. See Get notified about changes.
Signals in the dashboard
Section titled “Signals in the dashboard”The dashboard raises problems where you already look, so you do not need an alert to find them.
- Needs attention on Overview counts what is wrong right now: logins that are failing, last scans that failed or were blocked, scans that ran signed out, applications with no authentication, and applications that have not been scanned in 14 days or have never been scanned. Each row links to the application or scan behind it.
- Login status is a column on Applications. An application whose login is failing also shows an alert on its own page, with Re-record login.
- The top bar shows how many scans are running while any scan is in progress.
A failing login matters most. The scan still runs, but signed out, so pages behind the login are not tested. See Authentication.
Slack from a pipeline
Section titled “Slack from a pipeline”A pipeline that runs a scan can post the result to Slack with a Slack incoming webhook. Create the webhook in Slack, store its URL as a pipeline secret named SLACK_WEBHOOK_URL, and add this after the scan.
nightvision scan my-app --auth my-app-login > scan-results.txtSCAN_ID=$(head -n 1 scan-results.txt)
nightvision export sarif -s "$SCAN_ID" --exclude-severity info,low \ --exclude-resolution false_positive,wont_fixCOUNT=$(jq '[.runs[].results[]] | length' results.sarif)
curl -X POST -H 'Content-type: application/json' \ --data "{\"text\": \"NightVision scan of my-app finished with $COUNT findings at medium severity or higher. https://app.nightviz.ai/scans/$SCAN_ID\"}" \ "$SLACK_WEBHOOK_URL"The same pattern works for Microsoft Teams or any service that accepts a webhook: count the findings in the SARIF file and post the link.
To post only when something was found, wrap the curl command in if [ "$COUNT" -gt 0 ].
For the pipeline setup itself, see Scan from a pipeline.
To file a Jira issue for each finding, and to have Jira status changes update findings in NightVision, see Jira.