Back to Checks
E2E Networks nodes have accidental protection enabled
node_accidental_protection_enabled
Service: nodeSeverity: medium
OfficialBuilt-inVerified
Categories:resilience
Resource Type:NotDefined
E2E Networks nodes should have accidental protection enabled to guard against unintended deletion or modification of compute instances.
Risk
Nodes without accidental protection are easier to delete or modify unintentionally, increasing the risk of service disruption and unplanned exposure of compute resources.
Run this check with Prowler
Run in Prowler CloudRun
prowler e2enetworks --checks node_accidental_protection_enabledRecommendation
Enable accidental protection on nodes to prevent unintended deletion or modification.
Check Code
from prowler.lib.check.models import Check, CheckReportE2eNetworks
from prowler.providers.e2enetworks.services.node.node_client import node_client
class node_accidental_protection_enabled(Check):
"""Check if E2E Networks nodes have accidental protection enabled."""
def execute(self) -> list[CheckReportE2eNetworks]:
findings = []
for node in node_client.nodes:
report = CheckReportE2eNetworks(metadata=self.metadata(), resource=node)
report.status = "PASS"
report.status_extended = (
f"Node {node.name} has accidental protection enabled."
)
if not node.is_accidental_protection:
report.status = "FAIL"
report.status_extended = (
f"Node {node.name} does not have accidental protection enabled."
)
findings.append(report)
return findings