Skip to content

v0.2.0 feat: 增加试用注册与审核激活 - #162

Merged
mirror29 merged 6 commits into
mainfrom
codex/dashboard-waitlist
Aug 28, 2026
Merged

v0.2.0 feat: 增加试用注册与审核激活#162
mirror29 merged 6 commits into
mainfrom
codex/dashboard-waitlist

Conversation

@mirror29

Copy link
Copy Markdown
Owner

Summary

  • 增加公开试用申请、管理员 waitlist 审核和一次性激活链接
  • 增加数据库实时 admin 权限校验、登录状态隔离与受限公开 JSON 入口
  • 增加不可变访问审计,记录批准、拒绝、轮换和激活事件
  • 更新中英文自托管与当前状态文档

Test Coverage

  • Dashboard: 16 files / 73 tests passed
  • Paper: 970 tests passed
  • Shared middleware: 34 tests passed
  • Migration 0043_waitlist integration test passed

Pre-Landing Review

  • 安全复核:无剩余 P0/P1/P2
  • 覆盖注册、审核、激活、重复审核、令牌轮换、角色保留、请求体上限、Argon2 饱和与日志脱敏
  • append-only 审计拒绝 UPDATE、DELETE、TRUNCATE

Design Review

  • 沿用现有 Dashboard 设计语言;管理员入口仅对 session admin 角色显示
  • 后端仍按数据库角色强制授权,菜单隐藏不作为安全边界

Plan Completion

  • No plan file detected

Verification

  • pnpm test
  • pnpm typecheck
  • pnpm build
  • uv run pytest -q
  • bash scripts/check-consistency.sh
  • git diff --check

Documentation

  • README.md
  • README.zh-CN.md
  • docs/04-current-state.md

Test plan

  • 访客申请试用进入 pending
  • 管理员批准后生成 48 小时一次性激活链接
  • 申请人设置密码后才能登录
  • 拒绝、重复审核与旧令牌均被阻止
  • admin 角色省略时 CLI 改密不会清空角色
  • 审计事件不记录明文令牌或密码且不可修改/清空

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 28, 2026

Copy link
Copy Markdown

Deploying inalpha-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: c04ae36
Status: ✅  Deploy successful!
Preview URL: https://b353954d.inalpha-web.pages.dev
Branch Preview URL: https://codex-dashboard-waitlist.inalpha-web.pages.dev

View logs

@mirror29
mirror29 merged commit 762e3fb into main Aug 28, 2026
14 checks passed
@github-actions

Copy link
Copy Markdown

Review base: 8aef537

🤖 DeepSeek V4 Pro PR Review

⚠️ review 未完成:DeepSeek API 调用失败:DeepSeek 未返回可发布的 review 正文

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant