docs: 固化 SuperAPI 普通用户验收链
Pipelines as Code CI / hwlab-web-probe-sentinel-nc01- Success
Pipelines as Code CI / platform-infra-gitea-nc01- Failed
Pipelines as Code CI / unidesk-host- Success

This commit is contained in:
pikastech
2026-07-19 11:30:23 +02:00
parent 64c2c19bd1
commit 3933236427
+17 -1
View File
@@ -106,11 +106,27 @@ bun scripts/superapi-cli.ts public status
cd /root/unidesk
bun scripts/cli.ts web-probe product-smoke \
--product superapi \
--target NC01 \
--target <target> \
--profile management
```
- `management l0-smoke` 一次覆盖 PostgreSQL、skill CRUD、API Key 单向保存、绑定启停、历史导入和快照。
- 普通 Sub2API 用户权限变更使用独立最短链:
- 先用 `codex-pool users ensure` 创建隔离普通测试用户和 Key
- 用户、目标和 Key 名通过参数输入,凭据只使用命令输出的 owner-only
`sourceRef`
- 禁止把一次性用户 ID、邮箱或凭据路径写成通用默认值;
- 创建 fixture 后先运行 `auth l0-smoke`
- 只有 L0 PASS 才运行 `native status``auth l1-user-smoke` 和 typed
`ordinary-user` Web smoke
- `auth l1-user-smoke` 一次覆盖自己的 Key 同步、别名和绑定 round-trip、
历史 403、跨用户 403、Key 注册 403 和 Secret 脱敏;
- typed `ordinary-user` Web smoke 一次覆盖历史导航隐藏、`/history` 深链
回退、同会话历史 API 403、注册按钮隐藏和绑定弹框;
- 请求历史只对管理员开放;
- 普通用户不得看到历史导航,且后端 `history.list|get` 必须返回 403
- 浏览器内验证预期 403 时使用 BrowserContext API request
- 禁止使用页面 `fetch`,避免把预期拒绝误记为 console failure。
- L1 必须同时满足:
- gateway、API、worker、Web 四个 native 进程 ready
- `public status` 的声明、期望配置、DNS 和健康检查 ready;