Skip to content

Commit 348f8d0

Browse files
authored
Revert to more permissive policy (#109)
1 parent 5a5a0b1 commit 348f8d0

File tree

4 files changed

+8
-32
lines changed

4 files changed

+8
-32
lines changed

templates_cloudlogs/CloudLogs.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Metadata:
1414
- ExternalID
1515
- TrustedIdentity
1616
- BucketARN
17-
- AccountID
1817

1918
ParameterLabels:
2019
CloudLogsRoleName:
@@ -25,8 +24,6 @@ Metadata:
2524
default: "Trusted Identity (Sysdig use only)"
2625
BucketARN:
2726
default: "Bucket ARN"
28-
AccountID:
29-
default: "Account ID"
3027

3128
Parameters:
3229
CloudLogsRoleName:
@@ -41,9 +38,6 @@ Parameters:
4138
BucketARN:
4239
Type: String
4340
Description: The ARN of your s3 bucket associated with your Cloudtrail trail.
44-
AccountID:
45-
Type: String
46-
Description: The Identifier of your AWS account.
4741

4842
Resources:
4943
CloudLogsRole:
@@ -80,7 +74,7 @@ Resources:
8074
Action:
8175
- "s3:List*"
8276
Resource:
83-
- !Sub '${BucketARN}/AWSLogs/${AccountID}'
84-
- !Sub '${BucketARN}/AWSLogs/${AccountID}/*'
77+
- !Sub '${BucketARN}'
78+
- !Sub '${BucketARN}/*'
8579
Roles:
8680
- Ref: "CloudLogsRole"

templates_cloudlogs/OrgCloudLogs.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Metadata:
1616
- ExternalID
1717
- TrustedIdentity
1818
- BucketARN
19-
- AccountID
2019

2120
ParameterLabels:
2221
CSPMRoleName:
@@ -29,8 +28,6 @@ Metadata:
2928
default: "Trusted Identity (Sysdig use only)"
3029
BucketARN:
3130
default: "Bucket ARN"
32-
AccountID:
33-
default: "Account ID"
3431

3532
Parameters:
3633
CSPMRoleName:
@@ -48,9 +45,6 @@ Parameters:
4845
BucketARN:
4946
Type: String
5047
Description: The ARN of your s3 bucket associated with your Cloudtrail trail.
51-
AccountID:
52-
Type: String
53-
Description: The Identifier of your AWS account.
5448

5549
Resources:
5650
CloudLogsRole:
@@ -87,8 +81,8 @@ Resources:
8781
Action:
8882
- "s3:List*"
8983
Resource:
90-
- !Sub '${BucketARN}/AWSLogs/${AccountID}'
91-
- !Sub '${BucketARN}/AWSLogs/${AccountID}/*'
84+
- !Sub '${BucketARN}'
85+
- !Sub '${BucketARN}/*'
9286
Roles:
9387
- Ref: "CloudLogsRole"
9488
CloudAgentlessRole:

templates_cspm_cloudlogs/FullInstall.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Metadata:
1212
- ExternalID
1313
- TrustedIdentity
1414
- BucketARN
15-
- AccountID
1615

1716
ParameterLabels:
1817
CSPMRoleName:
@@ -25,8 +24,6 @@ Metadata:
2524
default: "Trusted Identity (Sysdig use only)"
2625
BucketARN:
2726
default: "Bucket ARN"
28-
AccountID:
29-
default: "Account ID"
3027

3128
Parameters:
3229
CSPMRoleName:
@@ -44,9 +41,6 @@ Parameters:
4441
BucketARN:
4542
Type: String
4643
Description: The ARN of your s3 bucket associated with your Cloudtrail trail.
47-
AccountID:
48-
Type: String
49-
Description: The Identifier of your AWS account.
5044

5145
Resources:
5246
CloudAgentlessRole:
@@ -100,7 +94,7 @@ Resources:
10094
Action:
10195
- "s3:List*"
10296
Resource:
103-
- !Sub '${BucketARN}/AWSLogs/${AccountID}'
104-
- !Sub '${BucketARN}/AWSLogs/${AccountID}/*'
97+
- !Sub '${BucketARN}'
98+
- !Sub '${BucketARN}/*'
10599
Roles:
106100
- Ref: "CloudLogsRole"

templates_cspm_cloudlogs/OrgFullInstall.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Metadata:
1313
- TrustedIdentity
1414
- BucketARN
1515
- OrganizationUnitIDs
16-
- AccountID
1716

1817
ParameterLabels:
1918
CSPMRoleName:
@@ -28,8 +27,6 @@ Metadata:
2827
default: "Trusted Identity (Sysdig use only)"
2928
OrganizationUnitIDs:
3029
default: "Organization Unit IDs (Sysdig use only)"
31-
AccountID:
32-
default: "Account ID"
3330

3431
Parameters:
3532
CSPMRoleName:
@@ -50,9 +47,6 @@ Parameters:
5047
OrganizationUnitIDs:
5148
Type: String
5249
Description: Organization Unit IDs to deploy
53-
AccountID:
54-
Type: String
55-
Description: The Identifier of your AWS account.
5650

5751
Resources:
5852
CloudAgentlessRole:
@@ -105,8 +99,8 @@ Resources:
10599
Action:
106100
- "s3:List*"
107101
Resource:
108-
- !Sub '${BucketARN}/AWSLogs/${AccountID}'
109-
- !Sub '${BucketARN}/AWSLogs/${AccountID}/*'
102+
- !Sub '${BucketARN}'
103+
- !Sub '${BucketARN}/*'
110104
Roles:
111105
- Ref: "CloudLogsRole"
112106
RolesStackSet:

0 commit comments

Comments
 (0)