Files
digital-psychology/apps/docs/standards/11-security.md
T
jackyu66gitandCursor 2fb1dfee14 chore: seal Design Vision v1 and monorepo scaffold
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>
2026-08-02 16:00:44 +08:00

26 lines
739 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 11 安全规范
## 认证与授权
- API 使用 Bearer TokenJWT 或 session);中间件校验。
- 资源级校验:用户只能访问自己的档案/订单。
## 密钥
- 仅环境变量 / 密钥托管;禁止写进前端与仓库。
- 轮换流程写入运维笔记(后置)。
## 输入校验
- 所有外部输入在 handler 层校验(生日范围、分页上限、字符串长度)。
- SQL 一律参数化;禁止拼接。
## 隐私与合规
- 生日、测评结果属敏感个人信息:明示用途、支持删除(软删 + 注销流程后置)。
- 对外文案:无医疗疗效、无吉凶祸福;报告页固定免责声明组件。
## 支付
- 验签、幂等、金额以服务端订单为准。