forked from wangziqi/gongxue-base
chore: gate production postgres tuning and taro handoff
This commit is contained in:
25
README.md
25
README.md
@@ -70,6 +70,7 @@
|
||||
- `docs/refactor/legacy-feature-gap-matrix.md`
|
||||
- `docs/refactor/supabase-frontend-access-strategy.md`
|
||||
- `docs/refactor/taro-frontend-integration.md`
|
||||
- `docs/refactor/taro-production-integration-checklist.md`
|
||||
- `docs/refactor/multitenant-auth-security-contract.md`
|
||||
- `docs/refactor/next-development-todo.md`
|
||||
- `docs/refactor/blueprint-coverage.md`
|
||||
@@ -460,7 +461,15 @@ cp docs/refactor/production-launch-evidence.template.json docs/refactor/producti
|
||||
npm run launch:gate -- --evidence docs/refactor/production-launch-evidence.json
|
||||
```
|
||||
|
||||
`production-launch-evidence.json` 不入 Git,里面只记录验收摘要、artifact 路径、审批人和时间,不保存真实 access token、支付密钥、对象存储密钥或用户隐私明细。门禁会要求以下证据全部齐备并通过:`readiness:production`、`readiness:production:db`、真实 `smoke:auth:remote`、`test:rls`、PocketBase production dry-run、`pb:import:validate`、`pb:import:sample`、真实数据 API 读路径压测、API/worker/Taro 构建、`smoke:taro:h5`、`smoke:taro:h5:interaction`、严格 `taro-h5-release-guardrails-test --require-runtime-config`、`audit:runtime`、真实 `@codex-security` 扫描,以及备份、回滚、真实数据抽样、生产 provider、对象存储控制、支付对账和三套 H5 `runtime-config.json` 人工确认。
|
||||
`production-launch-evidence.json` 不入 Git,里面只记录验收摘要、artifact 路径、审批人和时间,不保存真实 access token、支付密钥、对象存储密钥或用户隐私明细。门禁会要求以下证据全部齐备并通过:
|
||||
|
||||
- `readiness:production`、`readiness:production:db`、严格 `perf:postgres:evidence -- --strict`。
|
||||
- 真实 `smoke:auth:remote`、`test:rls`。
|
||||
- PocketBase production dry-run、`pb:import:validate`、`pb:import:sample`。
|
||||
- 真实数据 API 读路径压测、API/worker/Taro 构建。
|
||||
- `smoke:taro:h5`、`smoke:taro:h5:interaction`、严格 `taro-h5-release-guardrails-test --require-runtime-config`。
|
||||
- `audit:runtime`、真实 `@codex-security` 扫描。
|
||||
- 备份、回滚、真实数据抽样、生产 provider、对象存储控制、支付对账和三套 H5 `runtime-config.json` 人工确认。
|
||||
|
||||
补充说明:当前 Codex 环境如果没有暴露 `@codex-security` 可调用工具,不能把插件扫描写成已完成;只能先用 `npm run audit:runtime`、`npm run test:readiness`、`npm run test:rls` 和代码审查作为临时安全证据,并在上线证据里保留插件扫描待补项。
|
||||
|
||||
@@ -573,6 +582,20 @@ $env:DATABASE_URL="postgresql://postgres:postgres@127.0.0.1:54322/postgres"
|
||||
npm run perf:postgres:evidence
|
||||
```
|
||||
|
||||
生产上线前必须用严格模式生成门禁摘要:
|
||||
|
||||
```powershell
|
||||
$env:PG_TUNING_PROFILE="shared-host"
|
||||
npm run perf:postgres:evidence -- --strict --json
|
||||
Remove-Item Env:\PG_TUNING_PROFILE
|
||||
```
|
||||
|
||||
严格模式会检查 4 核 16G profile、`pending_restart=0`、`pg_stat_statements` 可用、`jit=off`,以及 API 请求相关超时不为 0。需要生成可人工复核的 `ALTER SYSTEM` SQL 时运行:
|
||||
|
||||
```powershell
|
||||
npm run perf:postgres:sql -- --profile=shared-host
|
||||
```
|
||||
|
||||
上线前角色旅程烟测:
|
||||
|
||||
```powershell
|
||||
|
||||
Reference in New Issue
Block a user