Fix: set native user passwords via Hub admin API in manage_users.py#152
Open
mariodruiz wants to merge 3 commits into
Open
Fix: set native user passwords via Hub admin API in manage_users.py#152mariodruiz wants to merge 3 commits into
mariodruiz wants to merge 3 commits into
Conversation
MioYuuIH
approved these changes
Jun 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix native user batch onboarding by updating manage_users.py to set passwords through the Hub admin API instead of the legacy
passwords.dbm kubectl path, which no longer matches how the Hub stores credentials. Align multi-node example values with the single-node spawn UI group names and descriptions.
Changes
scripts/manage_users.py (main fix)
• Replace kubectl/passwords.dbm password writes with Hub admin API calls:
• /hub/admin/api/set-password (single user)
• /hub/admin/api/batch-set-password (batch)
• Add per-user fallback if the batch API call fails
• Fix batch result parsing (success / failed / results[])
• Improve generate_password() so auto-generated passwords meet Hub strength rules (upper, lower, digit, special)
• No change to the existing two-step flow: create → set-passwords
runtime/values-multi-nodes.yaml.example
• Align course group labels with values.yaml (TEACHING LABS, DEVELOPMENT ENVIRONMENT, CUSTOM REPOS)
• Add groupOrder for spawn/Home page grouping
• Normalize code-server profile descriptions
runtime/values.yaml
• Minor description tweaks for code-cpu / code-gpu spawn labels
Testing
In Dublin Cluster
Checklist