File size: 1,307 Bytes
688925d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.dalab.autocompliance.dto;

import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * DTO representing a single, executable compliance control or check.
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ComplianceControlDTO {
    private String controlId; // Unique identifier for the control (e.g., "CIS-GCP-1.1", "PCI-REQ-3.4")
    private String name; // Short, human-readable name of the control
    private String description; // Detailed description of what the control checks
    private String severity; // e.g., CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL
    private List<String> applicableFrameworks; // e.g., ["CIS Benchmark v1.3", "PCI DSS v3.2.1"]
    private List<String> targetAssetTypes; // Asset types this control applies to (e.g., "GCP_BUCKET", "AWS_IAM_USER")
    private String remediationSteps; // Suggested steps to remediate a non-compliant finding
    private Map<String, String> evaluationParametersDefinition; // Parameters needed to evaluate this control (name: type)
    private String detailsLink; // Link to external documentation for this control
    private boolean enabled; // Whether this control is currently active for evaluation
}