Commit Graph
9 Commits
Author SHA1 Message Date
GloridustandClaude Opus 4.8 3c9c30fcb4 chore(docker): 00-woc-identity 也用显式 chmod 755(补齐 #17)
PR #17 把脚本权限改为显式 755/644 以摆脱构建机 umask 影响,但它之后才加的
00-woc-identity 钩子仍是 chmod +x,是唯一漏网。该钩子由 root 运行(711 也能跑、
非功能性问题),此处仅为与其余几行统一、彻底做到与 umask 无关。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 01:17:36 +08:00
Ethan ZouandGitHub 35bc9c4435 Merge pull request #17 from mkblbj/codex/fix-script-permissions
Fix Docker script permissions
2026-06-14 01:15:10 +08:00
GloridustandClaude Opus 4.8 8fd147bccc fix(P0): unique persistent machine-id per instance + manual reset
All instances shared the image-baked machine-id (a67bf09f...), so Tencent
saw every WechatOnCloud account worldwide as one "device" — a textbook
device-farm signal triggering risk control and the forced-logout loop
reported across old and new versions.

- docker/woc-identity.sh: new /custom-cont-init.d/00-woc-identity hook —
  generates a unique machine-id on first start, persists it in the data
  volume (survives restart/upgrade/recreate), writes /etc/machine-id +
  /var/lib/dbus/machine-id, removes /.dockerenv. Existing instances get a
  fresh unique id on first upgraded start (volume lacks the file).
- regenInstanceMachineId + POST /api/admin/instances/:id/regen-machine-id:
  roll a brand-new device id and restart, for accounts re-flagged by risk
  control. Gated on the hook being present (old image → instructs upgrade).
- Admin 实例卡片「安全」弹窗新增「重置设备 ID 并重启」。

Verified: two fresh containers get distinct machine-ids; id persists across
restart; regen (rm persisted file + restart) yields a new persistent id.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-06 01:41:45 +08:00
mkblbj 75dc45183f Fix Docker script permissions 2026-06-03 13:24:27 +09:00
huglemon 6df7d8c7cf fix: add CJK IME paste fallback 2026-06-03 00:08:47 +08:00
Gloridust 4f582f2c5e fix Chinese input & copyboard & log 2026-06-02 19:46:28 +08:00
Gloridust 49b785ff9f fix autostart 2026-06-01 19:42:35 +08:00
Gloridust 5c5e9c8540 update 2026-05-29 22:00:23 +08:00
Gloridust 81a50313c3 init 2026-05-29 15:26:59 +08:00