Prerequisites
- A Slack incoming webhook URL. In Slack, create an app for your workspace
(or open an existing one), turn on Incoming Webhooks, choose Add New
Webhook to Workspace and pick the channel. The URL starts with
https://. It is the credential: anyone holding it can post to that channel. - An administrator of the TRUSTIVAN organization, signed in. Changing
notifications needs
webhooks:manage, which an API key cannot hold. - For a destination, a plan that includes webhooks.
The quick way: Settings → Notifications
1
Paste the URL
Settings → Notifications, then paste the incoming webhook URL. It is
stored encrypted and never shown again.
2
Choose the events
Choose which alerts post to Slack. A scan is announced only when it found
new critical or high findings, and a verdict only when it blocks a
deployment.
The flexible way: a destination
Use a destination when you want finding status changes, NHI Security events, a severity floor, or a second channel. Sign in withcurl first so
cookies.txt holds the session (see the quickstart).
secret, not url, so it is stored encrypted. A Slack
destination takes no config; sending any is a 400. The URL must be
https://.
Send a test message, then read whether it arrived:
What it posts
- Plain text.
<,>and&in a finding title or an asset name are escaped, so a title containing<!channel>cannot notify a whole channel. - One message per event. Slack keeps no record that TRUSTIVAN can update, so a finding that is later resolved is a second message, not an edit of the first.
- A verdict has no severity, so a
min_severityfilter never holds back a blocking verdict.
Troubleshooting
See also
- Send notifications to Slack, Jira and other tools: every channel, field and limit
- Microsoft Teams
- Webhooks: the signed envelope, to write your own receiver