5 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
04040a2c06 release: v1.6.5
Ship a content workspace you choose, one exec tool for every language,
Mastery Path modes that gate its tools, and Settings that grades
readiness instead of listing faults.

Release notes: assets/releases/ver1-6-5.md
2026-09-06 13:46:29 +08:00
Bingxi Zhao (Frank)
02ba56793e chore: checkpoint backend stabilization workspace 2026-09-01 21:28:15 +08:00
Bingxi Zhao (Frank)
9983c0a3d1 fix: partners & multi-user 2026-06-27 18:27:16 +08:00
Bingxi Zhao (Frank)
8ad39f7038 chore(docker): drop now-dead gosu/libcap2-bin infra; align docs with root-supervisord model
#582 made supervisord run as root with per-program user=deeptutor, so the
gosu privilege-drop binary is no longer invoked. Remove the gosu and
libcap2-bin apt packages and the setcap step (a setuid-capable binary that
was left unused == needless attack surface), and refresh the Dockerfile
comments.

Realign the authoritative docs that still described the old gosu model:
- CONTAINERIZATION.md: supervisord runs as root and drops each program to
  deeptutor via user=; fix the verification snippet.
- compose.yaml: correct the (now wrong + dangerous) note that cap_drop ALL
  is safe — root supervisord NEEDS CAP_SETUID/CAP_SETGID to setuid its
  children, so cap_drop ALL would stop the backend/frontend from starting.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 20:56:26 +08:00
enihcam
90f2f6afee feat(deploy): add podman compose.yaml + .env.example for rootless
Tested rootless-podman deployment shape:

  * read_only: true on every service
  * userns_mode: keep-id (host UID 1000 -> container UID 1000)
  * tmpfs mounts for /tmp, /run, /var/run, /var/log, /root, /home
  * bind mounts on ./data (no named volumes: podman auto-creates
    them with the userns-mapped root UID 100000, which 755's
    incorrectly against the host)
  * loopback-only port bindings (drop the 127.0.0.1: prefix to
    expose on all interfaces)
  * PocketBase sidecar uses the corrected /pb_data, /pb_public,
    /pb_hooks mount paths from the docker-compose fix.

The entrypoint chowns /app/data and gosu-drops to the unprivileged
deeptutor user (UID 1000) before starting supervisord, so under
userns_mode: keep-id the running process is your host user.

.env.example carries only the host-side loopback bindings and TZ. URL
knowledge lives in data/user/settings/system.json (read by the
entrypoint on every start -> DEEPTUTOR_API_BASE_URL -> proxy.ts). No
compose env var for the API base.
2026-06-17 21:41:01 +08:00