NSIO 开发日报

8月19日 / 周三

NS 层面聚焦发布能力扩展(Windows arm64、macOS SDK)和功能完善(地址规划 v2、Gateway Exit 重新密钥交接、网络监测增强);NSD 控制面完成 PLAN-115 全局跨网络隧道地址规划,修正数据库存储配置。关键风险点:跨平台真机验证、PLAN-115 多集群隔离性、安全操作交接流程需要充分验证。

20
项合入
2
个模块
4
项需注意
2
位提交者
← 全部日报

今日要点

01
Windows arm64 和 macOS SDK 发布支持发布
CI 发布矩阵扩展,新增 Windows arm64 构建和 macOS 交叉编译支持,覆盖更多用户平台需求,直接影响发布策略和用户升级选择。
02
全局跨网络唯一隧道地址(PLAN-115)完成功能
完成地址规划重要项目,实现跨网络隧道地址全局唯一分配,提升系统地址管理能力,是网络配置验收的关键功能。
03
Gateway Exit 重新密钥交接(EXIT-REKEY-001)安全
完成安全操作任务交接,涵盖 WireGuard 会话保活修复,影响生产环境网关安全性和连接稳定性,需生产环境验证。

分模块详情

ns ns · 15 项

扩展发布构建能力至 Windows arm64 和 macOS,完成 Gateway Exit 重新密钥交接,增强网络监测和地址规划,改进错误诊断和 Windows 用户体验。

做了什么
  • 完成 EXIT-REKEY-001 任务交接,包括 WireGuard 会话保活和相关修复
  • 扩展发布矩阵:添加 Windows arm64 构建和 macOS SDK 交叉编译
  • 完成地址规划 v2:Node 扩展范围和 Service VIP /15 方案
  • 网络监测能力增强:网络变更路径可观测、忽略 TUN 自身地址
  • host-smoke 迁移完成,新增采样 L3/L4 探针能力
  • 错误处理改进:保留完整错误链、创建状态目录父目录、改进服务目录加载报告
  • Windows 用户指导:wintun.dll 缺失时提供清晰安装步骤
  • 修复 IPv6 专属绕过端点失败、状态质量门回归
怎么验证
  • 验证 Windows arm64 构建:查看发布物中 Windows arm64 版本,下载并运行,确认程序启动无误且版本信息正确
  • 验证 WireGuard 保活:启用 Gateway Exit 功能,运行 nsc status 观察连接状态,期间切换网络或 VPN,确认连接在 10 分钟内保持活跃未中断
  • 验证 wintun.dll 指导:Windows 环境下运行安装程序,在 wintun.dll 缺失时查看错误提示,确认包含具体安装步骤说明
  • 验证错误链保留:修改状态目录权限使其不可写,运行 nsc,查看生成的日志文件,确认错误信息包含完整的错误嵌套链而非 'unknown error'
  • 验证 IPv6 端点修复:在仅支持 IPv6 的网络或绕过端点配置下启动 nsc,查看运行日志确认无 IPv6-only 相关错误
  • 验证网络变更检测:启用网络监测功能,切换网络连接或 VPN,运行 nsc status 查看是否报告网络变更事件
重点关注
  • Windows arm64 发布版本待真机或模拟器环境验证,特别是驱动程序和权限提升机制的兼容性
  • EXIT-REKEY-001 交接需在生产 Gateway 环境中验证,确保切换过程中无连接中断
  • 地址规划 v2 在多网络、多租户环境下的隔离性和正确性需完整集成测试验证
  • IPv6 专属端点修复需在纯 IPv6 网络环境中验证
nsd nsd · 5 项

完成 PLAN-115 全局跨网络隧道地址规划项目,修正数据库迁移和 Node 池存储配置,提升控制面稳定性和扩展能力。

做了什么
  • 完成 PLAN-115:实现跨网络隧道地址全局唯一分配方案
  • 数据库迁移增强:迁移文件变更时自动重建 nsd-store,修正 Node 池底线常量
  • 存储配置优化:Node 池跨越整个块、使用 FNV 种子作为游标、删除 Node 扩展门控
  • 标记 TASK-198 和 PLAN-115 完成并已部署
怎么验证
  • 验证迁移自动重建:修改任一 migrations/ 目录下的 SQL 文件,重新编译项目,观察编译输出日志确认 nsd-store 被重建
  • 验证 Node 池配置:编译后查看数据库结构或配置文件,确认 Node 池范围跨越整个块而非被扩展门控限制
  • 验证 PLAN-115 隧道地址:部署新版本,在多网络环境中为节点分配隧道地址,检查各网络中的地址是否保持全局唯一
  • 验证完成标记:查看源代码中 TASK-198 和 PLAN-115 的完成标记是否已更新
重点关注
  • Node 池配置变更(跨越整个块)需所有集群节点完全升级后才能生效,升级顺序和兼容性需严格控制
  • 数据库迁移涉及存储结构变更,需完整的备份策略,推荐先在非生产环境验证后再部署到生产
  • PLAN-115 全局隧道地址方案待多集群、多租户场景下的隔离性和扩展性完整验证

风险与待办

跨平台发布验证不足:Windows arm64 和 macOS 交叉编译支持缺乏真机验证证据,驱动程序、权限提升、依赖库等平台特定功能的兼容性需充分测试。
PLAN-115 隔离性风险:全局跨网络隧道地址方案在多集群、多租户环境中的隔离性和扩展性未见明确验证,FNV 种子游标机制在高并发地址分配下的碰撞风险需评估。
安全操作交接风险:EXIT-REKEY-001 涉及生产网关密钥重新分配和 WireGuard 会话变更,需在真实运行环境中验证避免导致网关连接中断。
数据库迁移降级风险:Node 池配置和 FNV 种子游标的存储结构变更,降级难度高,需完整备份和回滚策略支撑。

原始合入记录

展开全部 20 项(脚本采集,未经研判)

NS(ns)(15 项)

  • docs(task): hand off the Gateway Exit rekey blackout (EXIT-REKEY-001) — eleven
    • docs(task): hand off the Gateway Exit rekey blackout (EXIT-REKEY-001)
  • fix(nsc): keep a live Gateway Exit WireGuard session from lapsing — eleven
    • fix(nsc): keep a live Gateway Exit WireGuard session from lapsing
  • fix(nsc): stop IPv6-only bypass endpoints from failing the capture plan — eleven
    • fix(nsc): stop IPv6-only bypass endpoints from failing the capture plan
  • ci(release): build the full six-target matrix (macOS SDK + Windows arm64) — eleven
    • ci(release): add Windows arm64 to the release matrix
    • ci(release): install the macOS SDK before cross-building darwin
  • feat/ns-host-smoke — silex
    • docs(plan): close tun smoke migration
    • feat(host-smoke): add sampled l3 and l4 probes
    • feat(nsc): expose service protocol in status
    • refactor(host-smoke): narrow runner to tun smoke
  • docs(plan-147): record completion and the per-platform verification — eleven
    • docs(plan-147): record completion and the per-platform verification
  • feat(nsc): tell the operator how to install wintun.dll — eleven
    • feat(nsc): tell the operator how to install wintun.dll
  • build(release): add Windows arm64 to the release matrix — eleven
    • build(release): add Windows arm64 to the release matrix
  • fix(nsc): keep the error chain in fatal failure reasons — eleven
    • fix(nsc): keep the error chain in fatal failure reasons
  • fix(state): create the state directory's parents, and stop hiding why it failed — eleven
    • fix(state): create the state directory's parents, and stop hiding why it failed
  • fix(services): report a missing catalogue as the loading role experiences it — eleven
    • fix(services): report a missing catalogue as the loading role experiences it
  • feat(netmon): make the network-change path observable — eleven
    • feat(netmon): make the network-change path observable
  • feat(netmon): ignore our own TUN addresses in the change fingerprint — eleven
    • feat(netmon): ignore our own TUN addresses in the change fingerprint
  • feat(nsc): address plan v2 — Node extension range, Service VIP /15 — eleven
    • feat(nsc): address plan v2 — Node extension range, Service VIP /15
  • fix: close status quality gate regressions — silex

控制面(nsd)(5 项)

  • build(store): rebuild nsd-store when a migration file changes — eleven
    • build(store): rebuild nsd-store when a migration file changes
  • fix(store): correct the Node pool floor constant in the migration — eleven
    • fix(store): correct the Node pool floor constant in the migration
  • fix(store): pool spans the whole block; drop the Node extension gate — eleven
    • refactor(store): drop the Node extension gate — the extension is just the block
    • fix(store): let a Node pool span the whole block, with the FNV seed as cursor
  • docs: mark TASK-198 / PLAN-115 completed and deployed — eleven
    • docs: mark TASK-198 / PLAN-115 completed and deployed
  • feat(store): global cross-Network unique tunnel addresses (PLAN-115) — eleven
    • docs(plan): record PLAN-115 implementation result and PR links
    • feat(store): global cross-Network unique tunnel addresses (PLAN-115)