Compare commits

...
6 changed files with 12 additions and 12 deletions

No files matched your search

+1 -1
View File
@@ -63,7 +63,7 @@ It contains hundreds of controls covering CIS, NIST 800, NIST CSF, CISA, RBI, Fe
| Provider | Checks | Services | [Compliance Frameworks](https://docs.prowler.com/projects/prowler-open-source/en/latest/tutorials/compliance/) | [Categories](https://docs.prowler.com/projects/prowler-open-source/en/latest/tutorials/misc/#categories) |
|---|---|---|---|---|
| AWS | 383 | 67 -> `prowler aws --list-services` | 28 -> `prowler aws --list-compliance` | 7 -> `prowler aws --list-categories` |
| AWS | 387 | 67 -> `prowler aws --list-services` | 28 -> `prowler aws --list-compliance` | 7 -> `prowler aws --list-categories` |
| GCP | 77 | 13 -> `prowler gcp --list-services` | 1 -> `prowler gcp --list-compliance` | 2 -> `prowler gcp --list-categories`|
| Azure | 135 | 16 -> `prowler azure --list-services` | 2 -> `prowler azure --list-compliance` | 2 -> `prowler azure --list-categories` |
| Kubernetes | 83 | 7 -> `prowler kubernetes --list-services` | 1 -> `prowler kubernetes --list-compliance` | 7 -> `prowler kubernetes --list-categories` |
@@ -1,6 +1,6 @@
{
"Provider": "aws",
"CheckID": "documentdb_cluster_backup_retention",
"CheckID": "documentdb_cluster_backup_enabled",
"CheckTitle": "Check if DocumentDB Clusters have backup enabled.",
"CheckType": [],
"ServiceName": "DocumentDB",
@@ -4,7 +4,7 @@ from prowler.providers.aws.services.documentdb.documentdb_client import (
)
class documentdb_cluster_deletion_protection(Check):
class documentdb_cluster_deletion_protection_enabled(Check):
def execute(self):
findings = []
for cluster in documentdb_client.db_clusters.values():
@@ -21,11 +21,11 @@ class Test_documentdb_cluster_deletion_protection:
"prowler.providers.aws.services.documentdb.documentdb_service.DocumentDB",
new=documentdb_client,
):
from prowler.providers.aws.services.documentdb.documentdb_cluster_deletion_protection.documentdb_cluster_deletion_protection import (
documentdb_cluster_deletion_protection,
from prowler.providers.aws.services.documentdb.documentdb_cluster_deletion_protection_enabled.documentdb_cluster_deletion_protection_enabled import (
documentdb_cluster_deletion_protection_enabled,
)
check = documentdb_cluster_deletion_protection()
check = documentdb_cluster_deletion_protection_enabled()
result = check.execute()
assert len(result) == 0
@@ -52,11 +52,11 @@ class Test_documentdb_cluster_deletion_protection:
"prowler.providers.aws.services.documentdb.documentdb_service.DocumentDB",
new=documentdb_client,
):
from prowler.providers.aws.services.documentdb.documentdb_cluster_deletion_protection.documentdb_cluster_deletion_protection import (
documentdb_cluster_deletion_protection,
from prowler.providers.aws.services.documentdb.documentdb_cluster_deletion_protection_enabled.documentdb_cluster_deletion_protection_enabled import (
documentdb_cluster_deletion_protection_enabled,
)
check = documentdb_cluster_deletion_protection()
check = documentdb_cluster_deletion_protection_enabled()
result = check.execute()
assert len(result) == 1
@@ -91,11 +91,11 @@ class Test_documentdb_cluster_deletion_protection:
"prowler.providers.aws.services.documentdb.documentdb_service.DocumentDB",
new=documentdb_client,
):
from prowler.providers.aws.services.documentdb.documentdb_cluster_deletion_protection.documentdb_cluster_deletion_protection import (
documentdb_cluster_deletion_protection,
from prowler.providers.aws.services.documentdb.documentdb_cluster_deletion_protection_enabled.documentdb_cluster_deletion_protection_enabled import (
documentdb_cluster_deletion_protection_enabled,
)
check = documentdb_cluster_deletion_protection()
check = documentdb_cluster_deletion_protection_enabled()
result = check.execute()
assert result[0].status == "PASS"
assert (