Skip to content

v0.2.0 — Real-time Audit, Scheduler, One-Click Demo

Choose a tag to compare

@DevMinions DevMinions released this 28 May 09:31
· 55 commits to main since this release

第二个开源版本 ✨

本版集中补齐对外可观察性 + 工程能力,从 v0.1.0 起累计 11 个 phase。

重点亮点

实时审计闭环

  • POST/PUT/DELETE 自动写入 audit_logs(异步 goroutine,API 不阻塞)
  • SSE 流 /api/audit-logs/stream — Web Dashboard 实时面板订阅
  • Prometheus audit_events_total / sse_subscribers 指标

工程能力

  • 内置 cron scheduler(过期 token 清理 + 晚归扫描)+ /api/scheduler/jobs 查任务
  • /api/upload 文件上传(MIME 嗅探 + 5MiB 限制 + 静态 serve)
  • /api/statistics/repairs-by-day 时序聚合,Web Dashboard 加 LineChart 趋势
  • Render Blueprint render.yaml — 一键 deploy demo

国际化与质量

  • 英文 README.en.md + 顶部语言切换
  • 主仓库回归 audit_api.py 38/38 · Web E2E 17/17 · vitest 31/31 · go test 全绿
  • Web bundle code-split(最大 chunk 386KB)

修了什么

  • B1-B6 / B6b 全部审计发现的 schema/RBAC/SQL 参数错位 bug
  • PaginatedRequest contract:前端不传分页参数也不再 400

安全

  • 默认密码 admin123 移除,首启随机生成 16 字符
  • main 分支 ruleset 防 force push / 防 deletion
  • Private Vulnerability Reporting 启用

完整变更详见 docs/CHANGELOG.md 中 [0.2.0]。

一键 demo

Deploy to Render

移动端

UniApp(可同时构建 H5 + 微信小程序)拆到 DevMinions/UniDormManager-Mobile,WIP 状态。