github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/ec2/no_public_ingress_acl.cf.go (about) 1 package ec2 2 3 var cloudFormationNoPublicIngressAclGoodExamples = []string{ 4 `--- 5 AWSTemplateFormatVersion: 2010-09-09 6 Description: Godd example of excessive ports 7 Resources: 8 NetworkACL: 9 Type: AWS::EC2::NetworkAcl 10 Properties: 11 VpcId: "something" 12 Rule: 13 Type: AWS::EC2::NetworkAclEntry 14 Properties: 15 NetworkAclId: 16 Ref: NetworkACL 17 Protocol: 6 18 CidrBlock: 10.0.0.0/8 19 RuleAction: allow 20 `, 21 } 22 23 var cloudFormationNoPublicIngressAclBadExamples = []string{ 24 `--- 25 AWSTemplateFormatVersion: 2010-09-09 26 Description: Bad example of excessive ports 27 Resources: 28 NetworkACL: 29 Type: AWS::EC2::NetworkAcl 30 Properties: 31 VpcId: "something" 32 Rule: 33 Type: AWS::EC2::NetworkAclEntry 34 Properties: 35 NetworkAclId: 36 Ref: NetworkACL 37 Protocol: 6 38 CidrBlock: 0.0.0.0/0 39 RuleAction: allow 40 `, 41 } 42 43 var cloudFormationNoPublicIngressAclLinks = []string{} 44 45 var cloudFormationNoPublicIngressAclRemediationMarkdown = ``