Repository navigation
v1.4.6
🚀 新增功能
- 全链路资产画像抽屉重构与任务同步增量摘要:
ChainDrawer.vue改用rootClassName对齐主题边距与背景,上线吸顶主头部与滚动联动锚点条、空记录维度默认折叠开关、加载骨架屏、10 行分页及中/英/俄三语适配;GroupAssetsDetail.vue画像入口升级为常驻轻量胶囊按钮;后端sync_asset完成同步后记录sync_summary(按资产分类及total_new/total_update汇总),并在TaskList.vue展示增量徽章与分级阶段异常提示(phase_errors、error_msg)。
🛠️ 性能与重构
- 发包阶段并发租约与 DNS 并发解析容错:新增
packet_lease.py,结合 MongoDB 原子租约与本地flock兜底,在massdns与port_scan等发包阶段按槽位限制并发(默认沿用system_config或 1 槽位,支持内部环境变量ARL_PACKET_PHASE_SLOTS在1–16范围内覆写),并在启动清理与异常回收路径释放残留租约;抽离公共dns_client,支持公共 DNS 轮询、区分NXDOMAIN与瞬态超时重试、递归 CNAME 解析及复用massdns预解析记录,缓解高并发解析丢结果风险。 - 并发双态收敛与空闲缩容机制修复:
/api/system_config/performance与SystemSettings.vue新增pending_convergence/pending_nodes待收敛态展示;scheduler.reconcile_worker_concurrency()在节点空闲时自动补齐扩缩容对齐;修复celerytask.run_task()退出未恢复原SIGTERM处理器导致空闲 Worker 无法响应pool_shrink的问题。 - 全局前端视觉令牌、空状态组件与多语言布局统一:在
App.vue与style.css中统一卡片、边框、背景、终端及吸顶 CSS 变量(并移除App.vue中重复覆写--arl-text-secondary为旧透明度0.45的赋值);抽离公共ArlEmpty.vue空状态组件并统一.arl-pagination-bar与中/英/俄三语响应式布局。
🐛 问题修复与加固
- Worker 启动代际跟踪与滞留任务快速收敛:Worker 就绪与任务执行阶段记录
WORKER_BOOT_ID与worker_instances快照,结合心跳识别容器重启或已离线节点的滞留任务并收敛状态;引入分级safe_phase容错,关键发现阶段失败显式阻断并保留局部可用资产,辅助阶段降级记录阶段异常。 - 指纹删除保护与跨 Worker 缓存失效:新增
fingerprint_deleted墓碑集合与fingerprint_initialized_v1初始化标记,避免已删除指纹在缓存刷新、扫描执行或服务重启后被重新回填;fingerprint_cache.py引入基于system_config的_fingerprint_cache_version跨 Worker 缓存版本号与RLock保护;arlupdate.py基于聚合管道去重后为fingerprint.name与fingerprint_deleted.name建立唯一索引;Fingerprint.vue补充删除加载锁、-update_date,-_id稳定排序、翻页勾选隔离与human_rule筛选对齐。 - KeepAlive 状态刷新与任务重同步/重启清理:策略列表页增加
onActivated与firstActivation防重,同步加固PolicyDetail.vue提交空值兜底;修复AssetScope.vue在 KeepAlive 离屏切换下的侧栏偏移;任务重新同步(SyncTask.post、sync_task_to_scope)及任务重启(restart_task)同步清理历史sync_summary(以及restart_task中的phase_errors),并在hasSyncSummary中屏蔽waiting/running/error同步态下的旧徽章展示。
🛡️ 安全与配置
- 首次部署管理员密码前置校验与引导文档完善:
start-prod.sh在 Python 环境检查后校验环境变量与.env中ARL_ADMIN_PASSWORD(12–1024 字符),按首次随机密码、预设环境变量与既有账号三类情况输出对应登录与--reset引导,并明确区分 Nginx Basic Auth 与平台登录口令;inject_user.py在未生成随机密码时清理遗留/tmp/arl_initial_admin_password;Login.vue移除过期"arlpass"占位符;同步更新中英文 README、快速启动与 API 接口文档。
🚀 New Features
- Attack-chain asset profile drawer overhaul and task sync incremental summary: updated
ChainDrawer.vueto applyrootClassNamefor theme padding and background alignment, adding dual sticky headers with a scroll-spy anchor rail, a default toggle hiding empty sections, loading skeletons, 10-row pagination, and trilingual support; convertedGroupAssetsDetail.vueprofile triggers into persistent lightweight pill buttons; persistedsync_summary(total_new/total_updateand category breakdown) insync_assetand rendered incremental sync badges alongside tiered phase failure notices (phase_errors,error_msg) inTaskList.vue.
🛠️ Performance & Refactoring
- Packet-phase concurrency leasing and DNS resolution resilience: added
packet_lease.pycombining atomic MongoDB leases with localflockfallback around packet-heavymassdnsandport_scanphases (bounded bysystem_configor1slot by default, overridable within1–16via the internalARL_PACKET_PHASE_SLOTSenvironment variable) with startup and failure cleanup of stale slots; extracted shareddns_clientfeaturing public DNS rotation, transient timeout retries distinct fromNXDOMAIN, recursive CNAME tracking, and reuse of pre-resolvedmassdnsrecords to mitigate silent drops under concurrency. - Dual-state worker concurrency convergence and idle shrink fix: exposed
pending_convergenceandpending_nodesruntime metrics in/api/system_config/performanceandSystemSettings.vue; addedscheduler.reconcile_worker_concurrency()to align concurrency drift when workers become idle; restored previousSIGTERMhandlers upon exit fromcelerytask.run_task()so idle worker pools respond properly topool_shrink. - Frontend visual tokens, shared empty-state component, and multi-locale layout unification: consolidated global card, border, background, terminal, and sticky CSS tokens across
App.vueandstyle.css(and removed the redundant0.45opacity--arl-text-secondaryoverwrite inApp.vue); extractedArlEmpty.vueand unified.arl-pagination-barstyling and responsive layouts across Chinese, English, and Russian locales.
🐛 Bug Fixes & Hardening
- Worker boot generation tracking and orphan task convergence: recorded per-worker
WORKER_BOOT_IDandworker_instancessnapshots during startup and task execution to recognize and converge orphaned tasks left by restarted or absent workers; implemented tieredsafe_phasefault handling separating critical discovery failures from auxiliary phase errors while preserving partial results. - Fail-closed fingerprint deletion and cross-worker cache invalidation: introduced the
fingerprint_deletedtombstone collection andfingerprint_initialized_v1sentinel to prevent deleted rules from reappearing on cache refresh, scan execution, or restart; addedsystem_config-backed_fingerprint_cache_versioninvalidation andRLockprotection infingerprint_cache.py; added aggregation-deduplicated unique indexes onfingerprint.nameandfingerprint_deleted.nameinarlupdate.py; updatedFingerprint.vuewith deletion loading guards, deterministic-update_date,-_idsorting, non-preserved cross-page selection, andhuman_rulefilter alignment. - KeepAlive view refresh and stale sync metadata cleanup: added
onActivatedrefresh withfirstActivationdeduplication to the policy list and null-safety guards inPolicyDetail.vue; fixed KeepAlive sidebar anchor drift inAssetScope.vue; cleared priorsync_summaryacross task re-sync (SyncTask.post,sync_task_to_scope) and task restart (restart_task, also clearingphase_errors), and gatedhasSyncSummaryagainstwaiting,running, anderrorsync states.
🛡️ Security & Configuration
- Bootstrap admin password preflight validation and documentation updates: validated
ARL_ADMIN_PASSWORDlength (12–1024 chars from environment or.env) instart-prod.shafter Python environment setup, printing flow-specific login and--resetinstructions while distinguishing Nginx Basic Auth from platform credentials; cleared stale/tmp/arl_initial_admin_passwordininject_user.pywhenever no random password is generated; replaced the legacy"arlpass"placeholder inLogin.vuewith localized prompts, and synchronized bilingual README, Quickstart, and API Guide docs.
Full Changelog: v1.4.5...v1.4.6