chore(mongodbatlas): remove variable used only 1 time

This commit is contained in:
Andoni A.
2025-07-17 16:55:10 +02:00
parent cb66b3289b
commit d9865d2816
2 changed files with 1 additions and 11 deletions
-9
View File
@@ -1,11 +1,2 @@
from prowler.lib.logger import logger
# MongoDB Atlas Provider Configuration
# Supported encryption providers
ATLAS_ENCRYPTION_PROVIDERS = ["AWS", "AZURE", "GCP", "NONE"]
# Network access configuration
ATLAS_OPEN_WORLD_CIDRS = ["0.0.0.0/0", "::/0"]
logger.info("MongoDB Atlas Provider configuration loaded")
@@ -1,7 +1,6 @@
from typing import List
from prowler.lib.check.models import Check, CheckReportMongoDBAtlas
from prowler.providers.mongodbatlas.config import ATLAS_OPEN_WORLD_CIDRS
from prowler.providers.mongodbatlas.services.projects.projects_client import (
projects_client,
)
@@ -38,7 +37,7 @@ class projects_network_access_list_exposed_to_internet(Check):
open_entries = []
for entry in project.network_access_entries:
if entry.cidr_block and entry.cidr_block in ATLAS_OPEN_WORLD_CIDRS:
if entry.cidr_block and entry.cidr_block in ["0.0.0.0/0", "::/0"]:
open_entries.append(f"CIDR: {entry.cidr_block}")
if entry.ip_address and entry.ip_address in ["0.0.0.0", "::"]: