Commit Graph

5 Commits

Author SHA1 Message Date
Geonwoo Jeong
d824a7f9f1 fix(codex-auth): make the local container OAuth bridge temporary (#743)
Codex redirects the browser to fixed loopback ports 1455/1457, which the container network does not share with the host. Publishing them permanently would hold those ports hostage from every other Codex client, so they move into an opt-in compose.codex-oauth.yaml overlay applied only while signing in.

docker-compose.ghcr.yml now mounts the whole ./data tree like the other manifests. Its previous three-subtree mount left data/system — the JWT signing secret, accounts, grants, per-owner Codex tokens — in the container's writable layer, where a recreate discarded it. Upgrading an existing GHCR deployment needs a one-time copy out of the running container; CONTAINERIZATION.md documents the exact commands.
2026-08-03 20:50:55 +08:00
Ilia Avdeev
b41e6ee299 test: guard supervisord-as-root + non-root children invariant 2026-06-22 14:51:13 +02:00
Bingxi Zhao (Frank)
dfa0c9b1ea fix(deploy): wire DEEPTUTOR_* proxy env via single JSON-backed exporter
The PR's relative-path + proxy.ts rewrite design depends on two env vars
(DEEPTUTOR_API_BASE_URL, DEEPTUTOR_AUTH_ENABLED) read server-side by the
Next.js middleware. As submitted they were only set by the Docker entrypoint,
and the auth one read a non-existent auth.json key — so auth enforcement was
silently disabled and the PyPI `deeptutor start` path was unwired.

- Export both vars from render_environment() (the single JSON-backed source of
  truth), so the Docker entrypoint AND the `deeptutor start` launcher get them
  consistently. DEEPTUTOR_API_BASE_URL falls back to localhost:<backend_port>.
- launcher.py: set both in common_env using the resolved backend_url, so they
  track port-conflict reassignment.
- Dockerfile: drop the duplicated, buggy per-var heredocs (one read the wrong
  key `auth_enabled` instead of `enabled`, leaving the proxy auth gate always
  off); the export_runtime_settings_to_env eval now provides both. Add them to
  the env-unset list for hygiene.
- Update the two placeholder tests to assert the new proxy-based design instead
  of the removed build-time sed mechanism; add DEEPTUTOR_* coverage in
  test_runtime_settings.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 21:12:40 +08:00
Bingxi Zhao (Frank)
ca7916bc57 fix: docs, docker deployment & official web 2026-05-22 20:19:32 +08:00
Bingxi Zhao (Frank)
85779c846b refactor env settings and installation 2026-05-11 12:59:56 +08:00