M0-12 Secret & Vendor Asset 基础版 #12
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
目标
设计知习后端密钥与服务商资产管理模块,为全系统提供 API Key 的加密存储、生命周期管理和轮换机制。
本 Issue 只做架构设计,不直接实现代码。
背景说明
知习依赖多个外部服务:DeepSeek API、硅基流动 API、百度 OCR API、腾讯云 COS。每个服务都需要 API Key,这些 Key 不能明文存在于代码或配置文件中,需要加密存储、支持轮换、记录使用日志。
Secret 模块管理"密钥本身",Config 模块管理"非敏感的动态参数"。敏感数据走 Secret,普通配置走 Config,不可混淆。
模块职责
本模块负责:
本模块不负责:
候选数据对象
基础设施依赖判断
安全设计
加密方案:
访问控制:
轮换机制:
API 设计
Internal Provider(供其他模块调用):
AAPI:
Domain Event 设计
Admin 视图设计
密钥管理页:
访问日志页:
交付检查
验收标准
禁止事项
不建议当前阶段实现