Skip to content

Commit

Permalink
Merge pull request #90 from kuettai/main
Browse files Browse the repository at this point in the history
Fixed new features error handling
  • Loading branch information
kuettai authored Apr 26, 2024
2 parents c527d4d + fe2b324 commit 29e5936
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
8 changes: 7 additions & 1 deletion Screener.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,13 @@ def scanByService(service, regions, filters):

GLOBALRESOURCES = Config.get(globalKey, [])
if len(GLOBALRESOURCES) > 0:
contexts[service[0]]['GLOBAL'] = GLOBALRESOURCES
garr = {}
ginfo = {}
for identifier, obj in GLOBALRESOURCES.items():
garr[identifier] = obj['results']
ginfo[identifier] = obj['info']

contexts[service[0]]['GLOBAL'] = arr

time_end = time.time()
scanned = Config.get(scannedKey)
Expand Down
3 changes: 3 additions & 0 deletions frameworks/Framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ def formatTitle(self, title):
return '<h3>' + title + '</h3>'

def getContent(self, _m):
if len(_m) == 0:
return

serv, check = _m.split(".")
if check == '$length':
cnt = self.getResourceCount(serv)
Expand Down
2 changes: 1 addition & 1 deletion frameworks/FrameworkPageBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from frameworks.WAFS.WAFS import WAFS
from frameworks.MSR.MSR import MSR
from frameworks.CIS.CIS import CIS
from frameworks.CIS.CIS import NIST
from frameworks.NIST.NIST import NIST

class FrameworkPageBuilder(PageBuilder):
COMPLIANCE_STATUS = ["Not available", "Compliant", "Need Attention"]
Expand Down
6 changes: 3 additions & 3 deletions frameworks/NIST/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"2": ["ec2.SGDefaultDisallowTraffic"],
"3": ["ec2.EBSInUse", "ec2.EBSEncrypted"],
"4": ["ec2.EC2Active"],
"5": [""],
"5": [],
"6": [],
"7": ["ec2.EBSEncrypted"],
"8": ["ec2.ASGIMDSv2"],
Expand Down Expand Up @@ -297,7 +297,7 @@
"22": [],
"23": [],
"24": ["rds.DefaultMasterAdmin"],
"25": ["rdsDefaultMasterAdmin"],
"25": ["rds.DefaultMasterAdmin"],
"26": [],
"27": ["rds.StorageEncrypted"],
"34": [],
Expand Down Expand Up @@ -331,7 +331,7 @@
"13": ["s3.BucketLifecycle"],
"14": ["s3.BucketVersioning"],
"15": ["s3.ObjectLock"],
"17": ["ServerSideEncrypted", "s3.SSEWithKMS"],
"17": ["s3.ServerSideEncrypted", "s3.SSEWithKMS"],
"19": [],
"20": ["s3.MFADelete"]
},
Expand Down

0 comments on commit 29e5936

Please sign in to comment.