Files
rengine/shared/services/scan_scope.py
T
Yogesh Ojha b4d2d5bdcb feat: Introduce focused rescan functionality and related models
- Added new definitions for dashboard windows and stale target management.
- Expanded domain definitions to include additional public second-level domains.
- Created rescan models and logic to handle asset rechecks based on previous scan results.
- Implemented new scan scopes (FULL and FOCUSED) to differentiate between complete scans and focused rescans.
- Developed asset seed stage to initiate scans from previously identified assets.
- Enhanced scan factory and resolution services to support new scanning configurations and seed assets.
- Updated existing scan models and services to accommodate new features and ensure compatibility.
- Added logging and error handling for focused rescans during scan finalization.
2026-09-06 08:31:29 +05:30

12 lines
337 B
Python

"""A focused rescan is evidence, not a census — every surface rollup filters on this."""
from __future__ import annotations
from shared.enums.scan import ScanScope
from shared.models.scan import Scan
def census_only(model=Scan):
"""Runs that describe a target's whole surface."""
return model.scope == ScanScope.FULL.value