Skip to content

API endpoints for Group-level Security Dashboard

Fabien Catteau requested to merge 6709-group-security-dashboard-api-poc into master

Create 2 API endpoints:

  • list vulnerabilities (occurrences) at the group level
  • get a summary of the vulnerabilities at the group level (AKA counts)

TODO

  • Split entities
  • Add DB indexes
  • Avoid N+1 queries when serializing vulnerability feedback as part of the vulnerability occurrence
  • Validate response using JSON schema
  • Implement proper feature check as discussed with @gonzoyumo
  • Sort vulnerabilities in controller's index action
  • Remove all debug code
  • Factorize report types
  • Make code Rubocop compliant
  • Estimate expected amount of data (and growth over time). See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/7757#note_106574518.

Does this MR meet the acceptance criteria?

Edited by Kamil Trzciński

Merge request reports