加密敏感数据并优化补CK流程

This commit is contained in:
yml2213
2026-06-24 09:10:31 +08:00
parent 8e65af538c
commit 177ec42416
9 changed files with 315 additions and 23 deletions
+8
View File
@@ -59,6 +59,14 @@ cd web/frontend && npm install && npm run dev
访问 `http://localhost:5173`,默认账号 `admin / admin123`
### 敏感数据加密
账号密码、邮箱密码、Cookie、代理密钥等敏感字段会以密文形式落盘。生产环境请在 `.env` 中设置稳定的 `APP_ENCRYPTION_KEY`,并长期保留;更换该密钥会导致历史密文无法解密。
```bash
python -c "import secrets; print(secrets.token_urlsafe(32))"
```
## 角色权限
| 角色 | 权限 |