Archive the differentiated YuXinGu product docs, AI engineering system, design contract, and Go/Vue scaffold. Next execution prioritizes Cece-parity over early innovation (see .ai/product/STRATEGY.md). Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
739 B
Markdown
26 lines
739 B
Markdown
# 11 安全规范
|
||
|
||
## 认证与授权
|
||
|
||
- API 使用 Bearer Token(JWT 或 session);中间件校验。
|
||
- 资源级校验:用户只能访问自己的档案/订单。
|
||
|
||
## 密钥
|
||
|
||
- 仅环境变量 / 密钥托管;禁止写进前端与仓库。
|
||
- 轮换流程写入运维笔记(后置)。
|
||
|
||
## 输入校验
|
||
|
||
- 所有外部输入在 handler 层校验(生日范围、分页上限、字符串长度)。
|
||
- SQL 一律参数化;禁止拼接。
|
||
|
||
## 隐私与合规
|
||
|
||
- 生日、测评结果属敏感个人信息:明示用途、支持删除(软删 + 注销流程后置)。
|
||
- 对外文案:无医疗疗效、无吉凶祸福;报告页固定免责声明组件。
|
||
|
||
## 支付
|
||
|
||
- 验签、幂等、金额以服务端订单为准。
|