Skip to content

Delete detection

Uday Korlimarla edited this page Jul 15, 2020 · 1 revision

Why find these directories to delete?

  1. Organizations may have compliance restrictions to maintain data of several years worth.
  2. To help accomplish this, Checkmarx provides retention feature.
  3. The retention feature within checkmarx are set to preserve both the Source-Directories as well as results stored in the database.
  4. Disk-Space at some-point becomes a problem (As scans & projects and code LOC increases over time - linear or exponential).
  5. This is a reason-enough to consider deleting directories as they age.

Detection.

  1. Query Checkmarx REST API for scans.
  2. Filter out the scans that are not locked.
  3. Filter out scans that do not meet an arbitrary date-range.
  4. List of directories is the concatenation of projectID, _ and sourceId
Clone this wiki locally