Skip to content

Require token authentication for Unsloth Jupyter - #1

Merged
callen-bot merged 1 commit into
mainfrom
security/jupyter-auth-20260910
Sep 10, 2026
Merged

callen-bot merged 1 commit into
mainfrom
security/jupyter-auth-20260910

Conversation

@callen-bot

Copy link
Copy Markdown
Contributor

The custom entrypoint explicitly disabled Jupyter authentication and allowed every origin. Generate a secure token when JUPYTER_TOKEN is unset/empty, preserve explicitly supplied tokens with safe Python quoting, and remove wildcard CORS. Pin JUPYTER_CONFIG_DIR for the supervised server. Store the config/token with owner-only permissions and document local token retrieval.

Use the public login page for the health check and avoid copying Jupyter credentials into the SSH environment file. Existing network bindings remain as configured.

Validation: python3 scripts/test_jupyter_auth.py and Bash syntax checks passed. A local Jupyter Server 2.21.0 smoke test returned 403 for missing/incorrect tokens, 200 with the generated token, and 200 for /login. Full GPU-container startup was not run. Local Docker Compose 2.31 rejects the existing gpus: all field on both base and patched configurations, so full Compose validation is blocked by that pre-existing compatibility issue.

Addresses BRE2-1112.

@callen-bot
callen-bot merged commit 59ae9fd into main Sep 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant