Canonical var is TELEGRAM_ALLOWED_USERS. Processing fallback in start.sh
is kept for backward compat, but the UI should not expose the old alias.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Merge pull request #21 from anurag008w/mainβ
Somrat Sorkar
Unverified signature
18ecb3d
Enhance Jupyter security, environment builder UX, and browser reliability
Merge branch 'main' into main
Anurag
Unverified signature
b835b9d
Remove legacy TELEGRAM_USER_ID and BACKUP_DATASET from env-builder
Codex
67c54ed
Fix sync robustness, devdata activation, alias cleanup, and timing-safe auth compare
Codex
14fd0fa
fix: use GATEWAY_TOKEN as Jupyter token fallback when JUPYTER_TOKEN unsetβ
health-server.js starts before start_jupyter_once() runs, so
process.env.JUPYTER_TOKEN is empty in Node. Mirror start.sh fallback:
if JUPYTER_TOKEN is unset or "huggingface", use GATEWAY_TOKEN instead β
that's what Jupyter is started with, so the injected header now matches.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix: inject Jupyter token header to skip JupyterLab's own login screenβ
Proxy requests to JupyterLab now include Authorization: token <JUPYTER_TOKEN>
so Jupyter recognises the session and doesn't show its password prompt.
Our /login gate handles auth β no need for a second Jupyter login.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Replace per-route env-builder cookie auth with a single /login + /logout route
- HMAC-SHA256 session token (huggingclaw-session-v1) instead of raw GATEWAY_TOKEN in cookie
- Use crypto.timingSafeEqual to prevent timing-attack token comparisons
- Session cookie now uses Path=/ (fixes /env-builder.js 401 that caused empty page)
- requireAuth() helper redirects any protected route β /login?next=<path>
- Gate /terminal/ (JupyterLab) and /env-builder + /env-builder.js with requireAuth()
- Remove old /env-builder/login and /env-builder/logout routes
- If already authed, /login redirects to ?next= instead of showing form
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Default Jupyter root changed to /home/node and README updatedβ
Anurag
Unverified signature
b617e46
Default Jupyter root changed to /home/node and README updated
Revert Jupyter root default to /home/node and document /home option
Anurag
2ddec0e
Improve privacy-detection timeout, robust state snapshotting, and Jupyter terminal defaultsβ
Anurag
Unverified signature
094b01a
Improve privacy-detection timeout, robust state snapshotting, and Jupyter terminal defaults
Set default Jupyter root to filesystem root
Anurag
be6d947
Implement sessions_marker to monitor session changesβ
Anurag
Unverified signature
c68251f
Added sessions_marker function to track changes in the sessions directory and trigger immediate sync on session updates.
Fix shutdown process to handle sync loop correctlyβ
Anurag
Unverified signature
8b566d2
Fixed bug by ensuring the background sync loop is killed before running the shutdown syncs to avoid timeout issues.
Update comments and instructions in .env.example
Anurag
Unverified signature
73b8a17
Update labels for key rotation settings
Anurag
Unverified signature
f570788
Refactor key rotator and merge kimi-coding with moonshotβ
Anurag
Unverified signature
233a0dc
Refactor multi-provider key rotator to improve key management and error handling. Merge kimi-coding and moonshot providers due to shared hostname.
Merge branch 'main' into edit
Anurag
Unverified signature
e19a071
Merge pull request #117 from anurag008w/codex/fix-bugs-in-start.sh,-health-server.js,-env-builder.js,-env-5ae6s5β
Anurag
Unverified signature
8665528
Improve provider mapping, harden env-builder, and tighten health-server security/behavior
Merge branch 'edit' into codex/fix-bugs-in-start.sh,-health-server.js,-env-builder.js,-env-5ae6s5
Anurag
Unverified signature
6f89b5f
Stop gating env-builder.js behind cookie auth to eliminate iframe 401
Anurag
a9c21e0
Merge pull request #115 from anurag008w/codex/fix-bugs-in-start.sh,-health-server.js,-env-builder.js,-env-y8p5pnβ
- GET /env-builder β shows login form if not authed
- POST /env-builder/login β validates GATEWAY_TOKEN, sets httpOnly cookie
- GET /env-builder/logout β clears cookie
- GET /env-builder.js β 401 if not authed (prevents unauthenticated JS load)
- Constant-time token comparison to prevent timing attacks
- Cookie: HttpOnly, SameSite=Strict, 24h TTL, scoped to /env-builder
- No protection when GATEWAY_TOKEN is unset (dev mode)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
login.html:
- Fix token input/button centering (remove Bootstrap navbar pull-left)
- Update token hint: GATEWAY_TOKEN is default, JUPYTER_TOKEN overrides
- Remove stale "default token is huggingface" text
start.sh:
- Silence GATEWAY_TOKEN auto-enable message (was noisy debug output)
- Redirect pip install output to /dev/null, show one-liner status
- Remove "JUPYTER_TOKEN not set β using GATEWAY_TOKEN" noise
- Replace "DEV_MODE enabled (false) β starting JupyterLab..." with clean
"Terminal : starting / started / installed" format
- Remove "Jupyter terminal disabled for this boot" noise
- Remove "Private :" line from startup summary
- Clean DevData restore messages to match consistent format
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
chore: remove legacy alias env vars from env-builderβ
TELEGRAM_USER_ID and TELEGRAM_USER_IDS are legacy aliases for
TELEGRAM_ALLOWED_USERS. Remove from UI to avoid confusion β use
TELEGRAM_ALLOWED_USERS instead.
154 β 152 fields.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Remove merge comparison section from README per review
Dockerfile: remove ENV DEV_MODE=false baked at build time β was causing
start.sh auto-enable check to fail (DEV_MODE non-empty β condition skipped).
DEV_MODE is now unset at runtime by default; HF Space Variable overrides
still work normally.
health-server.js: simplify JUPYTER_ENABLED logic β true by default, only
false when DEV_MODE=false or HUGGINGCLAW_JUPYTER_ENABLED=false is explicitly
set by the user.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
fix: default JUPYTER_ENABLED to true, clean up footerβ
- JUPYTER_ENABLED now defaults to true; only disabled when DEV_MODE=false
or HUGGINGCLAW_JUPYTER_ENABLED=false is explicitly set
- Fixes logic bug where HUGGINGCLAW_JUPYTER_ENABLED="false" (truthy string)
short-circuited the GATEWAY_TOKEN fallback check
- Remove Private Space explanation text from dashboard footer
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>