forked from prowler-cloud/prowler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(compliance): add ENSRD2022 for Azure and GCP (prowler-cloud#5746)
- Loading branch information
Showing
15 changed files
with
5,091 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import warnings | ||
|
||
from dashboard.common_methods import get_section_containers_ens | ||
|
||
warnings.filterwarnings("ignore") | ||
|
||
|
||
def get_table(data): | ||
# append the requirements_description to idgrupocontrol | ||
data["REQUIREMENTS_ATTRIBUTES_IDGRUPOCONTROL"] = ( | ||
data["REQUIREMENTS_ATTRIBUTES_IDGRUPOCONTROL"] | ||
+ " - " | ||
+ data["REQUIREMENTS_DESCRIPTION"] | ||
) | ||
|
||
aux = data[ | ||
[ | ||
"REQUIREMENTS_ATTRIBUTES_MARCO", | ||
"REQUIREMENTS_ATTRIBUTES_CATEGORIA", | ||
"REQUIREMENTS_ATTRIBUTES_IDGRUPOCONTROL", | ||
"REQUIREMENTS_ATTRIBUTES_TIPO", | ||
"CHECKID", | ||
"STATUS", | ||
"REGION", | ||
"ACCOUNTID", | ||
"RESOURCEID", | ||
] | ||
] | ||
|
||
return get_section_containers_ens( | ||
aux, | ||
"REQUIREMENTS_ATTRIBUTES_MARCO", | ||
"REQUIREMENTS_ATTRIBUTES_CATEGORIA", | ||
"REQUIREMENTS_ATTRIBUTES_IDGRUPOCONTROL", | ||
"REQUIREMENTS_ATTRIBUTES_TIPO", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import warnings | ||
|
||
from dashboard.common_methods import get_section_containers_ens | ||
|
||
warnings.filterwarnings("ignore") | ||
|
||
|
||
def get_table(data): | ||
# append the requirements_description to idgrupocontrol | ||
data["REQUIREMENTS_ATTRIBUTES_IDGRUPOCONTROL"] = ( | ||
data["REQUIREMENTS_ATTRIBUTES_IDGRUPOCONTROL"] | ||
+ " - " | ||
+ data["REQUIREMENTS_DESCRIPTION"] | ||
) | ||
|
||
aux = data[ | ||
[ | ||
"REQUIREMENTS_ATTRIBUTES_MARCO", | ||
"REQUIREMENTS_ATTRIBUTES_CATEGORIA", | ||
"REQUIREMENTS_ATTRIBUTES_IDGRUPOCONTROL", | ||
"REQUIREMENTS_ATTRIBUTES_TIPO", | ||
"CHECKID", | ||
"STATUS", | ||
"REGION", | ||
"ACCOUNTID", | ||
"RESOURCEID", | ||
] | ||
] | ||
|
||
return get_section_containers_ens( | ||
aux, | ||
"REQUIREMENTS_ATTRIBUTES_MARCO", | ||
"REQUIREMENTS_ATTRIBUTES_CATEGORIA", | ||
"REQUIREMENTS_ATTRIBUTES_IDGRUPOCONTROL", | ||
"REQUIREMENTS_ATTRIBUTES_TIPO", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.