Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trusted indicator #6393

Closed
jtpio opened this issue Nov 10, 2021 · 4 comments · Fixed by #6736
Closed

Trusted indicator #6393

jtpio opened this issue Nov 10, 2021 · 4 comments · Fixed by #6736

Comments

@jtpio
Copy link
Member

jtpio commented Nov 10, 2021

Problem

The classic notebook shows a "Trust" indicator in the top area:

image

RetroLab currently doesn't provide such indicator.

Proposed Solution

JupyterLab shows a shied in the status bar:

image

And exposes a command to trust a notebook:

image

We can reuse the same command, and add a new button to the menu area to the right of the kernel status indicator:

https://github.com/jupyterlab/retrolab/blob/9010ff543538dd6b15d647dd38ce44626095db84/packages/notebook-extension/src/index.ts#L165

Additional context

This indicator can be added to the notebook-extension: https://github.com/jupyterlab/retrolab/blob/main/packages/notebook-extension/src/index.ts

@krassowski
Copy link
Member

JupyterLab shows a shield on the statusbar (but there are some issues that we need to fix notebooks often being marked as not trusted even though those should be trusted.

@jtpio
Copy link
Member Author

jtpio commented Nov 10, 2021

Ah thanks @krassowski 👍

For some reason it has never been really visible to me. Probably because it's "down" in the UI and easy to miss.

I have updated the top comment to mention that.

@JasonWeill
Copy link
Collaborator

The Jupyter Notebook security docs suggest that JupyterLab also makes a menu option in the File menu available for trusting an untrusted notebook. Will there be a separate PR for the new menu option?

@krassowski
Copy link
Member

Good point. JupyterLab has this option in the command palette but not in the menu.

While I don't see a mention of JupyterLab in that link, I see the point. I guess the problem with the docs in jupyter-notebook subdomain is that it sometimes speaks for Jupyter Notebook as a code/product and sometimes it makes broad statements which can or should be interpreted as "Jupyter as a whole", while not having a normative power itself. The current docs for jupyter-server at https://jupyter-server.readthedocs.io/en/latest/operators/security.html also contain the same mention.

@jtpio jtpio transferred this issue from jupyterlab/retrolab Apr 27, 2022
@jtpio jtpio added this to the 7.0 milestone Apr 27, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants