CIS_Benchmarks/cis_auditor/benchmarks/nginx/__init__.py
2026-06-18 20:47:15 +03:00

15 lines
596 B
Python

"""CIS NGINX Benchmark v3.0.0."""
from __future__ import annotations
from ..base import BenchmarkInfo
# Import the hand-coded check functions and profile maps from the original module
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from nginx_audit.checks import ALL_CHECKS, PROFILE_CHECKS
benchmark = BenchmarkInfo(
name="CIS NGINX Benchmark",
version="v3.0.0",
profiles=list(PROFILE_CHECKS.keys()),
checks_by_profile=PROFILE_CHECKS,
check_registry=ALL_CHECKS, # callable functions — BenchmarkInfo.run_profile handles both
)