Skip to content

Commit 869ca13

Browse files
Merged dev into feature/OPT-508
2 parents 160acd3 + 323a4dd commit 869ca13

File tree

172 files changed

+11494
-963
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+11494
-963
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Change Log
2+
3+
All release notes are documented in [Releases Section](https://github.com/iriusrisk/startleft/releases)

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ All the info is available at: https://github.com/iriusrisk/startleft/wiki/Source
2020

2121
# Open Threat Model (OTM)
2222
See GitHub wiki: https://github.com/iriusrisk/startleft/wiki/Open-Threat-Model-(OTM)
23+
24+
# Change Log
25+
All release notes are documented in [Releases Section](https://github.com/iriusrisk/startleft/releases)

examples/cloudformation/iriusrisk-cft-mapping.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ trustzones:
66
#type 4
77
- id: f0ba7722-39b6-4c81-8290-a30a248bb8d9
88
name: Internet
9-
$source: {$singleton: {$root: "Resources|squash(@)[?Type=='AWS::EC2::SecurityGroup' && Properties.SecurityGroupEgress[0].CidrIp]"}}
9+
$source: {$singleton:
10+
{$root: "Resources|squash(@)[?Type=='AWS::EC2::SecurityGroup' && Properties | (SecurityGroupEgress[0].CidrIp || SecurityGroupIngress[0].CidrIp)]"}}
1011

1112
# The order of the components is important because parent components must be defined before child components
1213
components:
@@ -55,7 +56,10 @@ components:
5556
type: ec2
5657
name: {$path: "_key"}
5758
$source: {$root: "Resources|squash(@)[?Type=='AWS::EC2::Instance']"}
58-
parent: {$findFirst: {$searchParams:{ searchPath: ["Properties.SubnetId.Ref","Properties.SubnetId"], defaultValue: "b61d6911-338d-46a8-9f39-8dcd24abfe91"}}}
59+
parent: { $findFirst: { $searchParams: { searchPath: [
60+
"Properties | SubnetId.Ref || (NetworkInterfaces[].SubnetId.Ref | [0])",
61+
"Properties | SubnetId || (NetworkInterfaces[].SubnetId | [0])"
62+
], defaultValue: "b61d6911-338d-46a8-9f39-8dcd24abfe91" } } }
5963
tags:
6064
- { $path: "Type" }
6165

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"Resources": {
3+
"CustomVPC": {
4+
"Type": "AWS::EC2::VPC",
5+
"Properties": {
6+
"CidrBlock": "10.0.0.0/16"
7+
}
8+
},
9+
"PrivateSubnet1": {
10+
"Type": "AWS::EC2::Subnet",
11+
"Properties": {
12+
"VpcId": {
13+
"Ref": "CustomVPC"
14+
},
15+
"AvailabilityZone": "Select",
16+
"CidrBlock": "10.0.2.0/24",
17+
"MapPublicIpOnLaunch": false
18+
}
19+
},
20+
"PrivateSubnet2": {
21+
"Type": "AWS::EC2::Subnet",
22+
"Properties": {
23+
"VpcId": {
24+
"Ref": "CustomVPC"
25+
},
26+
"AvailabilityZone": "elect",
27+
"CidrBlock": "10.0.3.0/24",
28+
"MapPublicIpOnLaunch": false
29+
}
30+
},
31+
"PublicSubnet1": {
32+
"Type": "AWS::EC2::Subnet",
33+
"Properties": {
34+
"VpcId": {
35+
"Ref": "CustomVPC"
36+
},
37+
"AvailabilityZone": "Select",
38+
"CidrBlock": "10.0.0.0/24",
39+
"MapPublicIpOnLaunch": false
40+
}
41+
},
42+
"PublicSubnet2": {
43+
"Type": "AWS::EC2::Subnet",
44+
"Properties": {
45+
"VpcId": {
46+
"Ref": "CustomVPC"
47+
},
48+
"AvailabilityZone": "Select",
49+
"CidrBlock": "10.0.1.0/24",
50+
"MapPublicIpOnLaunch": false
51+
}
52+
}
53+
}
54+
}

0 commit comments

Comments
 (0)