DocsSecurity & ComplianceFinding Timeline

Finding Timeline

Every status and severity change of a security finding, by a user or by the system, is recorded in an append-only timeline: who decided what, when and why.


Overview

The detail page of a finding (/dashboard/security/findings/<id>) shows a "Timeline" card under the evidence. Events are listed most recent first, with the kind of event, the actor ("System" for automatic actions), the status transition, the motivation and the relative date (hover for the exact time). "Load more" fetches older events. The timeline is available to every authenticated user, also for resolved and false-positive findings.

Note: The timeline starts when this feature is deployed: findings detected earlier show only the events recorded from then on (there is no backfill of past changes).

Finding detail with priority score explanation, ownership and timeline

Recorded Events

Each change writes one event in the same database transaction as the change itself: if the event cannot be written, the change is rolled back.

  • created: first detection of the finding by a scan (cause first_detection)
  • status_changed: a manager or admin used Acknowledge, Resolve, Mark as false positive or Reopen (a user reopening is a status_changed to open, a scan reopening is reopened_by_scan)
  • reopened_by_scan: a scan reopened an acknowledged, resolved, false-positive or risk-accepted finding. Causes: new_vulnerable_version (matched_software, matched_version or installed_version changed), evidence_changed (a file hash changed), severity_increased, redetected (found again after an automatic resolution), material_change (any other material change)
  • severity_changed: a scan changed the severity, in either direction (cause severity_changed, metadata from_severity / to_severity)
  • auto_resolved: the matcher no longer detects the finding. Causes: no_longer_matched (OSV and NVD: component removed or upgraded to a non-vulnerable version) exposure_gone (the risky port is no longer reachable from the Internet) and eol_gone (the operating system or runtime is no longer at or near its end of life, for example after an upgrade). A finding held open by stale evidence records nothing
  • A re-report that only refreshes last_seen, the title, the description or non-material details records no event
  • assigned: a manager or admin changed the assignee (metadata from_assignee / to_assignee with their usernames, shown as "alice → bob", "Unassigned" when empty)
  • commented: a user added a comment (the text is in reason). See Finding Assignment & Comments (/docs/security/assignment-comments)
  • sla_updated: the priority recomputation changed the SLA due date (metadata cause sla_computed, due_at, previous_due_at, rule, target_hours), shown as "SLA updated". See SLA (/docs/security/sla)
  • Risk acceptance: accepting a risk is a status_changed to risk_accepted (justification in reason, metadata expires_at); its expiry is a system status_changed back to open (cause risk_acceptance_expired); a scan can reopen it with reopened_by_scan. See Risk Acceptance (/docs/security/risk-acceptance)
  • Suppression rules: a rule that suppresses a finding writes a system status_changed (cause suppression_rule, metadata rule_id, action, expires_at); when the rule is deactivated or expires the finding goes back to open with a system status_changed (cause suppression_rule_deactivated or suppression_rule_expired), or moves to another live rule with a suppression_changed event, shown as "Suppression changed" (cause suppression_rule_transferred). See Suppression Rules (/docs/security/suppression-rules)
  • In the timeline the created event is labelled "Detected" and a comment "Comment"; events of a deleted user show "Deleted user" as actor

Motivation of User Actions

Every status action takes a "reason" in the JSON body (text, trimmed, at most 2000 characters), recorded in the status_changed event. The reason is required for resolve, false-positive and reopen: a missing, empty or blank reason is rejected with 400 and a field error on reason. It is optional for acknowledge. An invalid reason (not a string, or too long) is rejected with 400 on every action; the status does not change and no event is written. System events carry an Italian reason and a machine-readable metadata.cause.

  • In the findings table and in the finding detail, Acknowledge, Resolve, Mark as false positive and Reopen open a dialog that asks for the reason before sending the action
  • The confirm button stays disabled while a required reason is empty; the reason starts empty every time the dialog opens
  • If the request fails the error is shown as a toast notification while the dialog stays open, so the reason is not lost
  • The same actions can be applied to many findings at once, with one status_changed event per changed finding (metadata {"bulk": true}): see Bulk Finding Actions (/docs/security/bulk-actions)

Reopening a Finding

A resolved, false-positive or risk-accepted finding can be reopened by a manager or admin with the "Reopen" action (shown only on closed findings, in the table and in the detail). The finding returns to open and active, resolved_at is cleared and the priority is recomputed. Reopening an open or acknowledged finding returns 409 and records nothing; viewers get 403. Reopening a finding the system auto-resolved does not stop the next scan from auto-resolving it again if it is still not detected. The queue lists only active findings by default: choose Resolved, False positive or Risk accepted in the Status filter to see closed findings and their Reopen action.

curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"reason": "The fix was not applied"}' \
  "https://idp.example.com/api/v1/security/findings/42/reopen/"

API

GET /api/v1/security/findings/<id>/events/ returns the timeline, paginated (page, page_size up to 1000), most recent first. Fields: id, event, actor_type (user or system), actor (username, null for the system), from_status, to_status, reason, metadata, created_at. An unknown finding returns 404.

curl -H "Authorization: Bearer $TOKEN" \
  "https://idp.example.com/api/v1/security/findings/42/events/?page_size=50"

Append-Only

Events cannot be modified or deleted through the API or the Django admin: the events endpoint is read-only (PUT, PATCH, POST and DELETE return 405). Comments, added with POST /api/v1/security/findings/<id>/comments/, have no edit or delete endpoint. The Django admin shows events without add, change or delete permissions. In the admin, the status, severity, is_active and resolved_at of a finding are read-only so that no change bypasses the timeline.

Note: Events live as long as their finding: when the retention task (SECURITY_FINDING_RETENTION_DAYS) deletes an inactive finding, or its asset is deleted, the timeline is deleted with it.