Skip to content

功能: 支持受密码保护模型交互加载 - #203

Draft
ypwhs wants to merge 3 commits into
masterfrom
feature/model-password-lifecycle
Draft

功能: 支持受密码保护模型交互加载#203
ypwhs wants to merge 3 commits into
masterfrom
feature/model-password-lifecycle

Conversation

@ypwhs

@ypwhs ypwhs commented Aug 4, 2026

Copy link
Copy Markdown
Member

C# Model 将可选 model_password 写入现有加载 JSON,并透传原生结构化错误;DlcvTest 在需要密码时弹窗重试,取消或失败时保留当前模型且不持久化密码。

.dvst.dvso.dvsp 在加载期向每个流程模型节点传递同一密码;加载成功或失败后均清理流程上下文,带密码节点绕过流程模型缓存。保护错误码保持为 MODEL_PASSWORD_REQUIREDMODEL_PASSWORD_INVALID,使现有重试交互可用。原 DvsModel.Load(string, int)LoadFromRoot(JObject, int) 签名保留,并新增带密码重载。

验证:

  • OpenIVS.sln Debug x64 Build/minimal 构建通过。
  • dvs-model-password-selftest 通过,覆盖流程成员密码透传、缓存绕过、成功与失败上下文清理、旧加载重载,以及缺失/错误密码错误码;该测试仅使用系统临时目录中的最小 .dvsp fixture,不加载原生推理 DLL。
  • model-channel-order-selftest 通过。
  • 受保护的 balloon DVO 使用掩码 PasswordBox 验证错误密码重试、取消保持和正确密码透传;正确密码进入 Sentinel 授权层后因无加密狗返回 MODEL_DECRYPT_FAILED,未标记为加载成功。
  • 历史无新增密码层 DVO 不弹密码框,进入原授权层并因无加密狗返回 MODEL_DECRYPT_FAILED

限制:正确密码后的完整模型加载、推理与正式交付仍需要可用的 Sentinel 或深盾加密狗及对应正式环境。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant