Skip to content

Commit 74e9f75

Browse files
authored
feat: Allow CloudFront distributions without a default root object. (#3)
1 parent 41a8691 commit 74e9f75

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

tofu/modules/macie/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
output "template_id" {
22
value = data.external.template_id.result.id
3-
description = "The ID of the Macie2 sensitivity inspection template"
3+
description = "The ID of the Macie2 sensitivity inspection template."
44
}

tofu/modules/security-hub-automations/rules/definitions.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,52 @@ Rules:
155155
WorkflowStatus:
156156
- Comparison: EQUALS
157157
Value: NEW
158+
159+
- RuleName: Allow CloudFront distributions without a default root object.
160+
Description: Our applications don't allow listing, so we don't need a default
161+
root object.
162+
IsTerminal: false
163+
RuleOrder: 5
164+
RuleStatus: ENABLED
165+
Actions:
166+
- FindingFieldsUpdate:
167+
Note:
168+
Text: Application doesn't support or require default root object.
169+
UpdatedBy: sechub-automation
170+
VerificationState: BENIGN_POSITIVE
171+
Workflow:
172+
Status: SUPPRESSED
173+
Type: FINDING_FIELDS_UPDATE
174+
Criteria:
175+
ComplianceSecurityControlId:
176+
- Comparison: EQUALS
177+
Value: CloudFront.1
178+
ComplianceStatus:
179+
- Comparison: EQUALS
180+
Value: FAILED
181+
ProductName:
182+
- Comparison: EQUALS
183+
Value: Security Hub
184+
RecordState:
185+
- Comparison: EQUALS
186+
Value: ACTIVE
187+
WorkflowStatus:
188+
- Comparison: EQUALS
189+
Value: NEW
190+
ResourceTags:
191+
- Comparison: EQUALS
192+
Key: project
193+
Value: getcalfresh
194+
# Tax benefits applications.
195+
- Comparison: EQUALS
196+
Key: project
197+
Value: ctc
198+
- Comparison: EQUALS
199+
Key: project
200+
Value: fyst
201+
- Comparison: EQUALS
202+
Key: project
203+
Value: gyr
204+
- Comparison: EQUALS
205+
Key: project
206+
Value: gyr-es

0 commit comments

Comments
 (0)