You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem\nRuntime logs and customer scan history are only pruned via a manual maintenance endpoint. For long‑running deployments, the SQLite runtime DB can grow unbounded, impacting performance and storage.\n\n## Evidence\n- runtime_db.apply_retention_policies exists but is only wired to /api/runtime/maintenance/retention (nmapui/handlers/routes.py).\n- No scheduled or startup invocation of retention policies.\n\n## Proposed Fix\n- Add a periodic maintenance task (e.g., daily or weekly) to run apply_retention_policies.\n- Expose retention limits in settings with sane defaults.\n- Log retention runs to runtime_logs for observability.\n\n## Notes\nThis is especially important for always‑on deployments scanning daily.
Problem\nRuntime logs and customer scan history are only pruned via a manual maintenance endpoint. For long‑running deployments, the SQLite runtime DB can grow unbounded, impacting performance and storage.\n\n## Evidence\n- runtime_db.apply_retention_policies exists but is only wired to /api/runtime/maintenance/retention (nmapui/handlers/routes.py).\n- No scheduled or startup invocation of retention policies.\n\n## Proposed Fix\n- Add a periodic maintenance task (e.g., daily or weekly) to run apply_retention_policies.\n- Expose retention limits in settings with sane defaults.\n- Log retention runs to runtime_logs for observability.\n\n## Notes\nThis is especially important for always‑on deployments scanning daily.