-
Notifications
You must be signed in to change notification settings - Fork 505
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
Can I choose who can read/run my voila notebooks? #216
Comments
I'm planning on implementing a prelaunch hook where you can interrogate the request. For my use case, I will guard the voila instance with a landing page that does login, then the prelaunch hook will either allow the notebook or display an error page saying the user is not permissioned. Not sure if the voila maintainers have plans to do this anyway but I'll be writing it in the next few days. |
That sounds great! I am looking forward testing this when available. Thanks @timkpaine . |
will be doing the work in #218 |
Hi Marc&Tim, https is almost possible, we need to expose the certfile options only I think. Authentication can be customized using I am not sure if we should expose this ourselves as a configuration in VoilaConfiguration, or if we should rely on jupyter_server for this. I can imagine the login handler for voila to be configured separately from jupyter_server/notebook/lab, since I'd like it to be more permissive for voila than for the notebook (when they both run on the same server). Maybe we should have the VoilaHandler use a different login_handler_class, which can be configured using VoilaConfiguration. This would make it possible to have the normal notebook login, but have no (or a different) voila login system. |
@maartenbreddels makes sense to me. I don't know enough about jupyter_server vs voila to know who should handle it, but your intuition to make it optionally separately configurable sounds like the right direction. |
Hello @maartenbreddels , that's interesting. Yes, being able to provide "password", "certfile" and "keyfile" on the ServerApp would be a good starting point - at least I could use https and give the application password to authorized users only. I did try to follow the notebook documentation with |
voila standalone reads voila.json/.py, and indeed. It would be more jupyter-like to have VoilaApp inherit from JupyterApp, which would then read jupyter_config.py/.json and jupyter_voila_config.py. I'm not sure how that ties in with the modications to the config system we have in mind (having a conf.d subdir like we now have for automatic nbextension enabling). |
Thanks @maartenbreddels
Interesting! I've tried to add a |
adding:
might be useful, it should print out where it is looking at. |
I see. The file was at the correct place (either
However the approach does not seem to work with the other fields like
|
Yes, that part is still missing (certfile, keyfile). It might be worth waiting till we base more of voila on jupyter-server, so we do not do needless work with this (sorry 😄). |
No problem @maartenbreddels - we'll keep in touch then! And thanks answering my questions. Also, @timkpaine I did follow your links... your voila-dashboard project looks awesome! |
@maartenbreddels, I am not sure where to look for the release notes of voila... Is voila 0.1.10 now based on Jupyter Server? Should I give another attempt at configuring passwords and certificates? Thanks! |
Not yet #369 Voila standalone is still not based on jupyer_server. |
Thanks @maartenbreddels for the update! I will follow #270, then. |
Currently, is there some way to control access in voila applications? Something like: an user can have access just to some pre-specified folders. |
@rladeira afaik no, not yet. |
@rladeira this is more in the scope of JupyterHub which is the multi user application serving Jupyter notebooks, voila dashboards, handling authentication and authorizations. |
Thanks for the answers, @timkpaine and @SylvainCorlay. Any references on how to integrate JupyterHub and voila dashboards? |
you may set up an authentication and authorization proxy https://github.com/gwrun/tutorials/tree/main/voila/docker-compose |
If you are running a JupyterHub and want to share ad-hoc Voilà dashboards with specific users via the same authentication as used in your JupyterHub, please take a look at my ContainDS Dashboards project. |
Thanks for working on voila!
I have a question regarding authentication: can I use voila with https? Is it possible to make the notebooks accessible only to selected users? Thanks
The text was updated successfully, but these errors were encountered: