-
Notifications
You must be signed in to change notification settings - Fork 96
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
Implement support for jupyterlab-gallery config #2501
Implement support for jupyterlab-gallery config #2501
Conversation
6453d5b
to
85ca022
Compare
Any consideration yet into how we could handle authenticating to a Github/Gitlab server with this workflow? As a workaround to date, we've put a PAT in the HTTPS URL. But that would mean committing a PAT Into source code. Might not be a HUGE problem if it's scoped to read-only on the needed repo and the nebari config is protected... still not ideal |
@kenafoster One possibility would be to source the PATs from environment variables and substitute in the URLs; let's continue the discussion in nebari-dev/jupyterlab-gallery#2 |
Tested locally: jupyterlab:
gallery_settings:
title: Example repositories
destination: examples
exhibits:
- title: Nebari
git: https://github.com/nebari-dev/nebari.git
homepage: https://github.com/nebari-dev/nebari
description: 🪴 Nebari - your open source data science platform
icon: https://raw.githubusercontent.com/nebari-dev/nebari-design/main/logo-mark/horizontal/Nebari-Logo-Horizontal-Lockup-White-text.svg
- title: PyTorch Tutorial
git: https://github.com/yunjey/pytorch-tutorial.git
homepage: https://github.com/yunjey/pytorch-tutorial
description: PyTorch Tutorial for Deep Learning Researchers
icon: https://github.com/yunjey/pytorch-tutorial/raw/master/logo/pytorch_logo_2018.svg
default_images:
jupyterlab: quay.io/nebari/nebari-jupyterlab:jupyterlab-gallery-db9c173-20240604 |
A limitation for now is that users can see contents |
I attempted passing the Currently, all the config files get passed on to the of JupyterHub Helm chart via Lines 85 to 104 in 749a1f1
which then get populated by the custom logic during the spawn sequence. This logic also only works with k8s but this is not a problem for nebari. The problem is that Kubernetes config maps are designed to store non-confidential data as per the documentation. A possibly better solution would be to use |
I managed to use the dedicated k8
|
The latest commit, An alternative might be to either:
For now we can instead revert to using the configuration files as before, and document that the PAT need to be scoped to the specific repositories that are used and to be read-only (which is a good practice anyways) and that it might be accessed by the user. |
@krassowski It seems like Nebari would benefit from having docs on this. Could you open a docs PR that explain how to use it or at a minimum point to the docs in https://github.com/nebari-dev/jupyterlab-gallery? |
nebari-dev/nebari-docs#478 is waiting for review over a week now. |
Actually, is there a way to update the example repos? If so and it's not obvious how to do so or if there is not a way to update the example repo could you add that info to the docs? It sounds like there is an update button that shows up. If that's the case, docs may not be needed. |
Thank you, this is actually a good point - I opened nebari-dev/jupyterlab-gallery#23 to track this on the jupyterlab-gallery side. |
Reference Issues or PRs
What does this implement/fix?
Put a
x
in the boxes that applyTesting
Any other comments?