-
Notifications
You must be signed in to change notification settings - Fork 18
/
data_perimeter_governance_policy_1.json
141 lines (141 loc) · 4.51 KB
/
data_perimeter_governance_policy_1.json
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PreventRAMExternalResourceShare",
"Effect": "Deny",
"Action": [
"ram:CreateResourceShare",
"ram:UpdateResourceShare"
],
"Resource": "*",
"Condition": {
"StringNotEqualsIfExists": {
"aws:PrincipalTag/dp:exclude:identity": "true"
},
"Bool": {
"ram:RequestedAllowsExternalPrincipals": "true"
}
}
},
{
"Sid": "PreventExternalResourceShare",
"Effect": "Deny",
"Action": [
"ec2:ModifyImageAttribute",
"ec2:ModifyFPGAImageAttribute",
"ec2:ModifySnapshotAttribute",
"ec2:ModifyVpcEndpointServicePermissions",
"ssm:ModifyDocumentPermission",
"rds:ModifyDBSnapshotAttribute",
"rds:ModifyDBClusterSnapshotAttribute",
"redshift:AuthorizeDataShare",
"redshift:AuthorizeSnapshotAccess",
"ds:ShareDirectory",
"logs:PutSubscriptionFilter",
"lakeformation:GrantPermissions",
"lakeformation:BatchGrantPermissions",
"appstream:UpdateImagePermissions",
"macie2:CreateInvitations",
"securityhub:CreateMembers",
"securityhub:InviteMembers",
"guardduty:CreateMembers",
"guardduty:InviteMembers",
"auditmanager:StartAssessmentFrameworkShare",
"docdb:ModifyDBClusterSnapshots"
],
"Resource": "*",
"Condition": {
"StringNotEqualsIfExists": {
"aws:PrincipalTag/dp:exclude:identity": "true"
}
}
},
{
"Sid": "ProtectActionsNotSupportedByPrimaryDPControls",
"Effect": "Deny",
"Action": [
"ec2:CreateTransitGatewayPeeringAttachment",
"ec2:AcceptTransitGatewayPeeringAttachment",
"ec2:RejectTransitGatewayPeeringAttachment",
"ec2:DeleteTransitGatewayPeeringAttachment",
"ec2:CreateVpcPeeringConnection",
"ec2:AcceptVpcPeeringConnection",
"ec2:RejectVpcPeeringConnection",
"ec2:DeleteVpcPeeringConnection",
"ec2:CreateVpcEndpoint",
"ec2:AcceptVpcEndpointConnections",
"ec2:RejectVpcEndpointConnections",
"ec2:CopyImage",
"ec2:CopyFpgaImage",
"ec2:CopySnapshot",
"ec2:CreateVolume",
"route53:CreateVPCAssociationAuthorization",
"route53:AssociateVPCWithHostedZone",
"route53:DisassociateVPCFromHostedZone",
"route53:ListHostedZonesByVPC",
"route53:DeleteVPCAssociationAuthorization",
"macie2:AcceptInvitation",
"securityhub:AcceptAdministratorInvitation",
"guardduty:AcceptAdministratorInvitation",
"auditmanager:UpdateAssessmentFrameworkShare",
"es:AcceptInboundConnection",
"es:CreateOutboundConnection"
],
"Resource": "*",
"Condition": {
"StringNotEqualsIfExists": {
"aws:PrincipalTag/dp:exclude:resource": "true"
}
}
},
{
"Sid": "PreventPublicBucketACL",
"Effect": "Deny",
"Action": [
"s3:PutBucketAcl",
"s3:CreateBucket"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"s3:x-amz-acl": [
"public-read",
"public-read-write"
]
},
"StringNotEqualsIfExists": {
"aws:PrincipalTag/dp:exclude:identity": "true"
}
}
},
{
"Sid": "PreventS3PublicAccessBlockConfigurations",
"Effect": "Deny",
"Action": "s3:PutAccountPublicAccessBlock",
"Resource": "*",
"Condition": {
"StringNotEqualsIfExists": {
"aws:PrincipalTag/dp:exclude:identity": "true"
}
}
},
{
"Sid": "ProtectDataPerimeterTags",
"Effect": "Deny",
"Action": "*",
"Resource": "*",
"Condition": {
"StringNotEqualsIfExists": {
"aws:PrincipalTag/team": "admin"
},
"ForAnyValue:StringEquals": {
"aws:TagKeys": [
"dp:*",
"team"
]
}
}
}
]
}