jupyter / jupyter/notebook

/api/contents reachable while user not logged in

Open
#4,846 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

Context: notebook version 6.0.0., protected by a password, launched has jupyter lab.

while session is log out, I still can access /api/contents.
However, /api/kernels returns an error message {"message": "Forbidden", "reason": null}, which is the expected result.

Contributor guide

Open the contributing guide

Research direction

Reproduce the behavior in Jupyter Notebook 6.0.0 with password protection enabled: log out and request /api/contents, then compare it with /api/kernels. The work is done when unauthenticated access to /api/contents is rejected consistently with the protected endpoint.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
authentication, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.