Skip to content

Commit 8f395f7

Browse files
committed
Add documentation about the vulnerabilities notification system #106
Signed-off-by: tdruez <[email protected]>
1 parent 5cfa079 commit 8f395f7

File tree

5 files changed

+43
-18
lines changed

5 files changed

+43
-18
lines changed

dje/tests/test_user.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,9 @@ def test_user_admin_form_scope_homepage_layout_choices(self):
417417
self.assertNotContains(response, card_layout_other.name)
418418

419419
def test_user_model_send_internal_notification(self):
420-
notification = self.nexb_user.send_internal_notification(verb="Updated", description="details")
420+
notification = self.nexb_user.send_internal_notification(
421+
verb="Updated", description="details"
422+
)
421423
self.assertEqual("Updated", notification.verb)
422424
self.assertEqual("details", notification.description)
423425
self.assertEqual("dejacodeuser", notification.actor_content_type.model)
Loading
Loading
Loading

docs/reference-vulnerability-management.rst

+40-17
Original file line numberDiff line numberDiff line change
@@ -237,28 +237,51 @@ attention, while still providing access to less urgent issues for deeper analysi
237237
7. Notifications
238238
-----------------
239239

240-
DejaCode provides a notification system to alert users about vulnerabilities that
241-
exceed a **predefined risk threshold**. This ensures timely awareness of critical issues
242-
that may impact the security of your software products.
240+
DejaCode provides a robust notification system to alert users about vulnerabilities,
241+
ensuring timely awareness of critical issues that may impact the security of your
242+
software products.
243+
244+
**Triggered Alerts**
245+
Notifications are automatically sent whenever new vulnerabilities are discovered.
246+
247+
**Delivery Channels**
248+
Notifications are displayed in the user interface and can be integrated into external
249+
workflows using the Webhook system.
250+
251+
Internal Notifications
252+
^^^^^^^^^^^^^^^^^^^^^^
253+
254+
To receive internal notifications about vulnerability data, a new user-specific field,
255+
**"Vulnerability Impact Notification"**, has been introduced.
256+
257+
.. image:: images/reference-vulnerability-management/notification-vulnerability-impact-field.jpg
258+
:width: 300
259+
260+
- Users with this flag activated will receive notifications each time new
261+
vulnerabilities are identified during the daily data update process.
262+
- These notifications include links to:
263+
264+
- **Vulnerabilities View**: A filtered list of vulnerabilities affecting the user's
265+
monitored packages.
266+
- **Package List View**: A filtered list of packages impacted by these
267+
vulnerabilities.
268+
269+
.. image:: images/reference-vulnerability-management/notification-internal.jpg
243270

244-
Notification Behavior:
245271

246-
- **Triggered Alerts**:
247-
Notifications are sent automatically when vulnerabilities have a
248-
**risk score greater than or equal to the configured threshold**.
249-
This threshold can be adjusted globally or per Product, as described in the
250-
:ref:`vulnerabilities_risk_threshold` section.
272+
Webhook Notifications
273+
^^^^^^^^^^^^^^^^^^^^^
251274

252-
- **Delivery Channels**:
253-
Notifications are displayed in the user interface and can also be integrated into
254-
external workflows or email alerts, depending on the system's configuration.
275+
A dedicated event, ``vulnerability.data_update``, is available in Webhook system.
276+
This event is triggered each time the vulnerability data update process is completed.
255277

256-
- **Exclusions**:
257-
Vulnerabilities with a risk score below the threshold do not trigger notifications by
258-
default, ensuring that only the most significant issues demand immediate attention.
278+
- DejaCode administrators can define Webhooks, such as a Slack notification or other
279+
integrations, to be executed when this event occurs.
280+
- This integration allows organizations to incorporate DejaCode notifications into
281+
their external workflows for enhanced vulnerability management.
259282

260-
Notifications are a key component of the vulnerability management workflow, enabling
261-
users to monitor and respond to potential threats effectively.
283+
.. image:: images/reference-vulnerability-management/notification-webhook.jpg
284+
:width: 400
262285

263286
8. CycloneDX and CSAF VEX Outputs
264287
---------------------------------

0 commit comments

Comments
 (0)