Overview
The Comments API enables team collaboration through threaded discussions on vulnerabilities. All comment operations enforce team-based access control to ensure data isolation.Server Actions
addComment
Add a comment to a vulnerability.The ID of the vulnerability to comment on
The comment text content
Whether the operation succeeded
The created comment object
- User must belong to the same team as the vulnerability
- Logs audit trail entry
- Revalidates vulnerability page cache
getComments
Retrieve all comments for a vulnerability.The ID of the vulnerability
Whether the operation succeeded
Array of comment objects, ordered by creation date (newest first)
- User must belong to the same team as the vulnerability
- Returns empty array if unauthorized
Security
Team Isolation
All comment operations verify that:- User is authenticated
- User belongs to a team
- Vulnerability belongs to the same team
- Cross-team access is prevented
Audit Logging
Comment creation is logged to the audit trail with:- Action type:
ADD_COMMENT - Entity type:
Vulnerability - Entity ID: vulnerability ID
- Details: User email who added the comment
Use Cases
Vulnerability discussion
Vulnerability discussion
Team members can discuss impact, affected systems, and remediation strategies directly on vulnerability entries.
Remediation tracking
Remediation tracking
Document remediation progress, testing results, and verification steps as comments for audit trail.
Analyst collaboration
Analyst collaboration
Analysts can request additional information or clarification from vulnerability reporters through comments.
Executive updates
Executive updates
Provide status updates or priority changes through comments visible to all team members.
Related APIs
Vulnerabilities
Manage vulnerability entries
Notifications
Get notified about new comments