Repository navigation
v1.3.1 — 安全与治理:API 密钥 · Admin 控制台 · 数据质量审计
亮点 Highlights
- API 密钥与访问治理(PR #63) —— PyJWT API key 签发/吊销/删除(
/api/admin/keys,完整密钥仅签发时展示一次);查询接口要求同源或有效密钥;slowapi 四桶限流:匿名批量 6/min、匿名单查 30/min、持钥统一 60/min、登录 5/min 防爆破- API keys & access governance (PR #63) — PyJWT key issue/revoke/delete (
/api/admin/keys, the full key shown exactly once at issuance); query endpoints require same-origin or a valid key; slowapi four-bucket rate limits: 6/min anonymous batch, 30/min anonymous single lookup, 60/min unified for key holders, 5/min login brute-force guard
- API keys & access governance (PR #63) — PyJWT key issue/revoke/delete (
- Admin 控制台 ——
#/admin登录 + 标签页壳:数据源管理、密钥管理、任务区一站式;公开数据源页退役为只读;全局迷你进度条、主题/语言切换- Admin console —
#/adminlogin + tabbed shell: source management, key management, and the tasks area in one place; the public sources page retired to read-only; global mini progress bar, theme/locale switchers
- Admin console —
- 明暗主题切换 —— 日间/夜间一键切换,localStorage 记忆 + 首帧前恢复不闪屏
- Light/dark theme — one-click day/night switch, persisted in localStorage and restored before first paint (no flash)
- verdict-aware 评分(spec 2026-09-06) —— 存档章(informational)退出威胁置信度:数字仅由指控源决定;"冲突"重定义为真对立(benign × 指控);"已印证"只数独立指控源;API 新增 has_archive
- Verdict-aware scoring (spec 2026-09-06) — archive-stamped (informational) observations no longer feed threat confidence: the number is decided solely by accusing sources; "conflict" redefined as true opposition (benign × accusing); "corroborated" counts independent accusing sources only; the API gains has_archive
- IntelMQ 审计落地 —— 三条数据质量绊线(未映射原生值/first_seen 不可解析/feed 重定向);分类词表 P1 迁移(botnet → infected-system);dataplane/blocklist_de 信号语义修正;stopforumspam 逐条分级(活跃垃圾发送者升可疑)
- IntelMQ audit follow-through — three data-quality tripwires (unmapped native values / unparseable first_seen / feed redirects); classification vocabulary P1 migration (botnet → infected-system); dataplane/blocklist_de signal-semantics fixes; per-record stopforumspam grading (active spammers upgraded to suspicious)
- 数据水印(PR #62) —— layer-2 构建水印:gamma=1/512 记录携带 ingest_ref,
verify_watermark.pyCLI 双模式核验;哨兵源不进 42 源口径- Data watermark (PR #62) — layer-2 build watermark: 1-in-512 records carry an ingest_ref, verifiable via the
verify_watermark.pyCLI in two modes; the sentinel never counts toward the 42-source roster
- Data watermark (PR #62) — layer-2 build watermark: 1-in-512 records carry an ingest_ref, verifiable via the
- 安全加固与依赖(PR #64/#65) —— docs 门控(
IP_RADAR_ENABLE_DOCS默认关)、SPA 非 404 透传修复、SECRET 未配置兜底 urandom、eval×3/sources 收进超管面;fastapi 0.141.1 + starlette 1.6.0(清 PYSEC 16+1)
修复 Fixed
- 集成三件:fail2ban verdict 解析(原 glob 永不命中,改 python3 JSON 提取)、wazuh 以 Bearer 发送 API key、graylog content-pack 空 headers 注意事项
- Integrations: fail2ban verdict parsing (the old glob never fired — now a python3 JSON extraction), wazuh sends the API key as Bearer, graylog content-pack empty-headers caveat
- XFF 仅信任已配置代理(
IP_RADAR_PROXY_HEADERS默认关),反代后按 IP 限流才生效- XFF trusts only configured proxies (
IP_RADAR_PROXY_HEADERS, off by default); per-IP limits behind a reverse proxy need it on
- XFF trusts only configured proxies (
升级 Upgrade
git pull --ff-only && docker compose up -d --buildWeb 界面同源查询零变化、无需密钥;程序化 API 访问需配置 IP_RADAR_API_JWT_SECRET(≥32 字节)后在 /admin 签发密钥。
Same-origin web queries are unchanged and need no key; programmatic API access requires IP_RADAR_API_JWT_SECRET (≥32 bytes) and a key issued from /admin.
Full Changelog: v1.3.0...v1.3.1