Skip to content

Commit c73f6cc

Browse files
authored
Merge pull request #431 from armosec/cspmexceptions
Add CSPM exception policy type and related attributes
2 parents 3d04711 + a26bf30 commit c73f6cc

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

armotypes/cloudposturetypes.go

+9
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,12 @@ const (
9999
ScanInProgressScore = 2
100100
ScanSuccessScore = 3
101101
)
102+
103+
type CSPMExceptionPolicy struct {
104+
BaseExceptionPolicy `json:",inline"`
105+
Name string `json:"name"` // rule name
106+
Controls []string `json:"controls"` // affected controls
107+
Severity string `json:"severity"`
108+
SeverityScore int `json:"severityScore"`
109+
RuleHash string `json:"ruleHash"`
110+
}

armotypes/exceptionpolicy.go

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const (
1212

1313
// RuntimeIncidentPolicy - policy for runtime incidents
1414
RuntimeIncidentExceptionPolicyType PolicyType = "runtimeIncidentExceptionPolicy"
15+
16+
// CSPM - policy for CSPM
17+
CSPMExceptionPolicyType PolicyType = "cspmExceptionPolicy"
1518
)
1619

1720
type BaseExceptionPolicy struct {

identifiers/designators.go

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ const (
104104
AttributeProjectID = "projectId" // Jira project ID
105105
AttributeIssueTypeID = "issueTypeId" // Jira issue type ID
106106
AttributeWorkflowGUID = "workflowGUID" // workflow GUID
107+
AttributeAccount = "account"
107108
)
108109

109110
// Repository scan related attributes

0 commit comments

Comments
 (0)