feat(aws): AWS Found Sec Best Practices & PCI DSS v3.2.1 upgrade (#7017)

Co-authored-by: pedrooot <pedromarting3@gmail.com>
This commit is contained in:
Harshit Raj Singh
2025-03-11 14:01:16 +05:30
committed by GitHub
parent b7bce6008f
commit eca8c5cabd
4 changed files with 7130 additions and 580 deletions

View File

@@ -562,8 +562,11 @@ def get_section_containers_format1(data, section_1, section_2):
direct_internal_items.append(internal_section_container)
# Cut the title if it's too long
tittle_external = section[:70] + " ..." if len(section) > 70 else section
accordion_item = dbc.AccordionItem(
title=f"{section}", children=direct_internal_items
title=f"{tittle_external}", children=direct_internal_items
)
section_container = html.Div(
[

View File

@@ -1,6 +1,6 @@
import warnings
from dashboard.common_methods import get_section_containers_format4
from dashboard.common_methods import get_section_containers_format1
warnings.filterwarnings("ignore")
@@ -9,12 +9,15 @@ def get_table(data):
aux = data[
[
"REQUIREMENTS_ID",
"REQUIREMENTS_ATTRIBUTES_SECTION",
"CHECKID",
"STATUS",
"REGION",
"ACCOUNTID",
"RESOURCEID",
]
]
].copy()
return get_section_containers_format4(aux, "REQUIREMENTS_ID")
return get_section_containers_format1(
aux, "REQUIREMENTS_ATTRIBUTES_SECTION", "REQUIREMENTS_ID"
)