Files
Nexus/docs/audit/2026-06-07-settings-ip-allowlist-subscription.md
T
Nexus Agent 2e911dcca7 fix(frontend): 设置页恢复 IP 白名单订阅 URL 与解析预览
补回代理订阅配置 UI,修正 ip-allowlist 保存 payload 为 manual_ips + subscription_url。
2026-06-07 19:34:24 +08:00

36 lines
1023 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.
# 审计 — 设置页 IP 白名单订阅恢复
## 范围
| 文件 | 变更 |
|------|------|
| `frontend/src/pages/SettingsPage.vue` | 订阅 URL、解析预览、节点展示、正确 save payload |
| `frontend/src/types/api.ts` | `SubscriptionParseResponse``IpAllowlistSaveRequest` |
| `deploy/install_ops_cron.sh` | 同日前序 commitcron bash 调用) |
| `deploy/gate_log.jsonl` | 门控记录 |
## Step 3 规则扫描
| H | 规则 | 结论 |
|---|------|------|
| H1 | 后端 API 未删 | PASS — `parse-subscription` / `IpAllowlistSaveRequest` 仍在 |
| H2 | SSRF 仍由后端拦截 | PASS — 未改 `settings.py` |
| H3 | 错误 payload 修复 | FIXED — 不再 POST `{ ips }` |
## Closure
| H | 判定 | 依据 |
|---|------|------|
| H1 | PASS | `server/api/settings.py` |
| H2 | PASS | 解析仍走服务端 |
| H3 | FIXED | `saveAllowlist` payload |
## DoD
- [x] vite build 通过
- [x] changelog / audit
## 验证
设置页 → 登录 IP 白名单 → 订阅 URL + 解析预览 + 保存