-
Notifications
You must be signed in to change notification settings - Fork 0
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
init #3
base: main
Are you sure you want to change the base?
init #3
Conversation
…tallable (the placeholder would have usually been replaced when chart is published via chartpress).
…false" instead of false - Add env variable to set execution mode to k8s for proxy
…se to route some urls to the workspaces directly)
…n our ml-workspace
…NAL_ARGS - Add missing slash to readiness probe path
…NAL_ARGS - allow setting extraEnv values for proxy - fix port issues
…s for new release
Reviewer's Guide by SourceryThis pull request refactors the JupyterHub Helm chart to support MLHub and MLWorkspace images, modifies default values, and updates various configurations to enable SSH tunneling and other features. File-Level Changes
Tips
|
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @NxPKG - I've reviewed your changes and found some issues that need to be addressed.
Blocking issues:
- Address security concerns with running containers as root (link)
Overall Comments:
- Consider the security implications of setting UID and fsGid to 0 in the hub and singleuser configurations. Running containers as root is generally not recommended.
- The changes are extensive and significantly alter the original JupyterHub setup. Please provide more documentation on the rationale behind major changes, especially regarding networking and authentication modifications.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🔴 Security: 1 blocking issue, 2 other issues
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟡 Documentation: 3 issues found
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
@@ -11,8 +11,8 @@ hub: | |||
cookieSecret: | |||
publicURL: | |||
initContainers: [] | |||
uid: 1000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚨 issue (security): Address security concerns with running containers as root
Changing UID and fsGid to 0 means containers are running as root, which is a significant security risk. Please justify this change and consider reverting to non-root user if possible.
|
||
|
||
auth: | ||
type: dummy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚨 question (security): Explain the switch to custom authentication and its implications
The change from 'dummy' to 'custom' authentication with NativeAuthenticator could have security implications. Please provide details on how this affects user authentication and any additional setup required.
@@ -19,6 +19,9 @@ rules: | |||
- apiGroups: [""] # "" indicates the core API group | |||
resources: ["events"] | |||
verbs: ["get", "watch", "list"] | |||
- apiGroups: [""] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚨 question (security): Justify the addition of new RBAC permissions for the hub
The hub now has permissions to list, create, and delete services. Please explain why these new permissions are necessary and any potential security implications.
For most parts you should be able to follow the comprehensive guide linked below. | ||
|
||
Most prominent changes: | ||
- change of the command fields in hub and proxy yamls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (documentation): Consider rephrasing for specificity.
Consider rephrasing to: 'modification of the command fields in the hub and proxy YAML files.'
- change of the command fields in hub and proxy yamls | |
modification of the command fields in the hub and proxy YAML files |
We do not push the helm chart to a repository for now, so feel free to download it from the [mlhub releases page](https://github.com/ml-tooling/ml-hub/releases) or to create the package yourself via `helm package jupyterhub/`. | ||
|
||
You can then deploy the chart via `helm upgrade --install mlhub packaged-chart.tgz --namespace $namespace --values config.yaml`. | ||
The config.yaml can be used to overrride default values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (documentation): Fix typo: 'overrride' should be 'override'.
The config.yaml can be used to overrride default values. | ||
|
||
--- | ||
<br/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (documentation): Consider removing the HTML line break.
Markdown handles line breaks without needing HTML tags. Consider removing '
' for cleaner markdown.
<br/> | |
--- | |
# Original Readme: |
User description
Description
This PR fixes #
Notes for Reviewers
Signed commits
PR Type
Enhancement, Documentation
Description
values.yaml
to MLHub-specific versions.Changes walkthrough 📝
1 files
README.md
Update README for MLHub integration and deployment instructions
README.md
compatibility.
1 files
requirements.txt
Update Kubespawner dependency to specific GitHub version
images/hub/requirements.txt
jupyterhub-kubespawner
dependency.kubespawner
with specific fixes.9 files
deployment.yaml
Update hub deployment configuration for MLHub compatibility
jupyterhub/templates/hub/deployment.yaml
rbac.yaml
Update RBAC rules to allow hub to manage services
jupyterhub/templates/hub/rbac.yaml
service.yaml
Add SSH port configuration to hub service
jupyterhub/templates/hub/service.yaml
deployment.yaml
Update proxy deployment configuration for MLHub compatibility
jupyterhub/templates/proxy/deployment.yaml
netpol.yaml
Update network policy for proxy port changes
jupyterhub/templates/proxy/netpol.yaml
secret.yaml
Update proxy secret configuration for additional SSL entries
jupyterhub/templates/proxy/secret.yaml
service.yaml
Update proxy service target ports
jupyterhub/templates/proxy/service.yaml
netpol.yaml
Update singleuser network policy port
jupyterhub/templates/singleuser/netpol.yaml
values.yaml
Update default values and images for MLHub
jupyterhub/values.yaml
Summary by Sourcery
Refactor deployment configurations to support MLHub and ml-tooling images, introduce environment variables for better configurability, add SSH tunneling support, and update documentation to reflect these changes.
New Features:
Enhancements:
Documentation: