(self)
| 142 | auth_status: str = "" # Auth validation status (applied, verified, failed) |
| 143 | delegated_to: str = "" # Viking name of the mesh peer running this scan (delegated scans) |
| 144 | egress_iface: str = "" # Interface the scan host routes the target over (e.g. eth0, tailscale0) |
| 145 | egress_tunneled: bool = False # True when that interface is the Tailscale tunnel |
| 146 | log_entries: List[Dict[str, str]] = field(default_factory=list) # Buffered scan log entries |
| 147 | |
| 148 | def to_dict(self) -> Dict[str, Any]: |
| 149 | return { |
| 150 | 'scan_id': self.scan_id, |
| 151 | 'scan_type': self.scan_type.value, |
| 152 | 'target': self.target, |
| 153 | 'status': self.status, |
| 154 | 'progress_percent': self.progress_percent, |
| 155 | 'findings_count': self.findings_count, |
| 156 | 'current_check': self.current_check, |
| 157 | 'started_at': self.started_at.isoformat() if self.started_at else None, |
| 158 | 'completed_at': self.completed_at.isoformat() if self.completed_at else None, |
| 159 | 'error_message': self.error_message, |
| 160 | 'auth_type': self.auth_type, |
| 161 | 'auth_status': self.auth_status, |
| 162 | 'delegated_to': self.delegated_to, |
| 163 | 'egress_iface': self.egress_iface, |
| 164 | 'egress_tunneled': self.egress_tunneled, |
no outgoing calls
no test coverage detected