|
|
158faeb655
|
fix(sandbox): sanitize userId → container name(下划线→横杠)
better-auth 生成的 user id 格式是 \`user_xxx\`(带下划线),
Incus 容器名规则只允许 [a-zA-Z0-9-],用下划线会报
"Invalid instance name: Name can only contain alphanumeric and hyphen characters"。
修法:containerName() 用 \`.replace(/[^a-zA-Z0-9-]/g, '-')\` 把所有非法字符替换。
影响:存量 17 个用户全部成功 provisioned 为 sb-user-xxx(横杠版)。
Phase 5 生产上线完成(2026-04-19):
- orchestrator 绑 0.0.0.0:8700 + iptables 放行 172.17/172.18 网段
- LobeChat .env 加 SANDBOX_BACKEND_URL=http://172.18.0.1:8700 + SECRET
- feat/self-hosted-sandbox 分支 push Gitea,VPS 上 docker build → lobechat-custom:sandbox
- 重 tag :latest 并 docker compose up -d --force-recreate lobe
- 17 个存量用户 backfill 沙箱全成功,池子占 3.7GB(CoW)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-04-19 21:59:10 +08:00 |
|
|
|
98e8486bcf
|
auto-save 2026-04-19 21:39 (+1, ~2)
|
2026-04-19 21:39:57 +08:00 |
|
|
|
7df50e0dc3
|
phase 5 prep: backfill-users.ts + deployment runbook in .memory
- scripts/backfill-users.ts: 扫 PG users 表,对每人幂等调 orchestrator POST /users
- orchestrator/package.json: 加 postgres 依赖
- .memory/project.md: Phase 3/4 完成状态,Phase 5 上线 checklist
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-04-19 21:17:01 +08:00 |
|
|
|
cbf8125afd
|
auto-save 2026-04-19 21:06 (+6, ~4)
|
2026-04-19 21:06:57 +08:00 |
|
|
|
1b8a216fbd
|
auto-save 2026-04-19 21:01 (+3, ~2)
|
2026-04-19 21:01:27 +08:00 |
|
|
|
8b26a2155a
|
auto-save 2026-04-19 13:31 (+1, ~1)
|
2026-04-19 13:33:05 +08:00 |
|