AGENTS: server data is the single source of truth
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
5e485b01d6
commit
9d87aa48be
13
AGENTS.md
13
AGENTS.md
@ -114,9 +114,16 @@ python scripts/_api_logs.py
|
||||
|
||||
## 数据安全
|
||||
|
||||
### 核心原则:服务器数据永远是唯一真实来源
|
||||
|
||||
- **禁止**用任何方式将本地数据文件推送或覆盖到服务器
|
||||
- `monitor.db`、`pb_data/*.db` 已从 git 追踪中移除,永远不纳入 commit
|
||||
- 本地的 `monitor.db` 仅供本地开发调试,与线上数据无关
|
||||
- 任何涉及数据库的操作,必须直接在服务器上执行,不得经由 git 同步
|
||||
|
||||
- `monitor.db` 是线上核心数据,任何操作前必须备份:
|
||||
```bash
|
||||
cp /opt/douyinWEB/backend/data/monitor.db /tmp/monitor.db.bak_$(date +%s)
|
||||
```
|
||||
```bash
|
||||
cp /opt/douyinWEB/backend/data/monitor.db /tmp/monitor.db.bak_$(date +%s)
|
||||
```
|
||||
- `shorts_channels` 表存储 YouTube OAuth token,泄露会导致频道失控
|
||||
- 密码哈希存于 `kv_settings` 表,key = `admin_password_hash`,用 `SHA256(SESSION_SECRET:password)`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user