docs(tasks): define app and backend VLM integration

This commit is contained in:
QiuSW
2026-07-27 09:22:03 +08:00
parent 45d4d11fe5
commit 45d1436033
12 changed files with 357 additions and 11 deletions
+7 -1
View File
@@ -116,7 +116,13 @@
## 7. 安全与隐私
- 密钥只来自环境变量或被忽略的本地配置。
- 通用密钥只来自环境变量或被忽略的本地配置。T-207 的 provider API Key 是唯一
例外:只能由 ADMIN write-only 写入,使用环境 master key + AEAD 随机 nonce
加密落库;读取接口、HTML、日志、事件、错误和 App 永不返回明文或密文。
- 生产采购 App 只调用肉包后端,不保存或直连 VLM provider。Debug 本机 mock 必须
位于 Debug source set,配置被 Git 忽略且不得进入 Release APK。
- provider HTTP transport 必须禁用重定向,并在解析和连接阶段阻断私网、本机、
链路本地、组播、metadata 与 DNS rebinding;生产远程目标只允许 HTTPS。
- 真实蝦皮订单文本、参考图及其规范化生成物只能位于仓库外或 `.local/`、
`private-fixtures/` 等被忽略目录;测试使用脱敏 fixture。
- 普通日志不得输出完整蝦皮订单号、店铺名或本机原图绝对路径。