Does JupyterHub RBAC meet our access control requirement?
JupyterHub has role-based access control built into the open-source core from JupyterHub 2.0 onward, and the project publishes no paid edition that adds it. RBAC governs permissions on the Hub's API, so it decides who can start servers, manage users or change roles through that API, but it does not govern every path to your notebooks, data or compute. Before you evaluate the software, write your requirement in three parts: who holds administrative rights, who may delegate a task to someone else, and which resources each delegated role can touch. A requirement that says only 'admins control access' cannot be tested against the Hub, because it does not name the permissions involved.
Start by mapping each delegated task to scopes. A scope is a specific permission the Hub checks when it evaluates an API request, such as the servers scope for starting and stopping user servers. A role is a collection of scopes. Scopes are not assigned directly to users, groups or services, so the working design is a short list of roles, each granted to the people or services that need it. Administrators are set with c.Authenticator.admin_users in jupyterhub_config.py, and that list should stay short. The roles and scopes documentation describes the least-privilege model, and the authenticators documentation states that fine-grained RBAC permissions are generally preferable to full admin privileges. Confirm the default role and scope names in the version you deploy, because the set can change between releases.
Then test the design from the outside. Sign in as a delegated user, attempt actions outside that role, and confirm the Hub refuses them. Document the controls for paths RBAC does not cover, including the notebook server a user reaches once it starts, the storage and databases behind it, the Kubernetes or host access of the operators who run the platform, and the Hub database itself. Each of those needs a named owner and evidence. The decision you are making is whether the role model plus those controls meets the requirement. If a reviewer asks who can see another user's notebook, the answer should come from a test result and a documented control, and a security test of the Hub setup before approval can produce that evidence.
What JupyterHub RBAC covers in the open-source core
This table lists the access control capabilities that the open-source JupyterHub core provides and the ones a reviewer must still confirm. Read the status column first: built-in items can be tested in your own deployment, while items marked to confirm need evidence from the project documentation or your own testing. The main takeaway is that role-based delegation is built in and no paid edition is published, but identity group mapping and audit logging need checking in your environment.
| Capability | Status | What it means for the reviewer |
|---|---|---|
| Roles and scopes for Hub API permissions | Built in, available since JupyterHub 2.0 | Map each role to the API actions it grants and review those mappings before granting access. |
| Least-privilege delegation, such as a role that only culls idle servers | Built in | A narrow task can be delegated without full admin rights. Test that the role cannot do more than intended. |
| admin_users for full administrators | Built in, set in jupyterhub_config.py | Full admin rights go only to the accounts listed here. Keep the list short and review it on a schedule. |
| Paid edition for RBAC | None published by the project | Access control is not gated behind a paid tier in the project's published materials. Confirm this with the project before you rely on it. |
| Identity provider group mapping into roles | Depends on the authenticator, confirm for your setup | Check whether your chosen authenticator passes group membership into role assignment before you plan the mapping. |
| Audit logging of role-based actions | Not covered by the project facts, to confirm | Confirm with the project documentation and your own testing before you treat it as evidence for an assessor. |
How JupyterHub RBAC evaluates a request
An API request to JupyterHub passes through three components. The proxy is the only process exposed to the public, so it routes traffic into the deployment. The Hub manages user accounts, authenticates each caller and spawns one notebook server per user. The RBAC layer runs inside the Hub and checks each API request against the permissions held by the caller. The practical consequence is that the authorization decision is made in the Hub, so the Hub's configuration, database and token handling are where access control is enforced. Before you rely on the design, confirm with the documentation for your version which API paths the proxy forwards and which of them the RBAC layer governs.
A scope is a single permission used to evaluate an API request, such as the servers scope for starting and stopping user servers. A role is a named collection of scopes. Scopes reach people, groups and services only through roles, never directly, so the role is the unit you review, name and delegate. An illustrative idle-server cleanup job could hold a role that carries only the scopes needed to stop servers, instead of an account with full administrator rights. The project describes this as least privilege: before roles, creating users required full admin rights, so delegating a narrow task meant granting broad access. Review the JupyterHub roles and scopes documentation for the scope list in your version.
Administrators named with c.Authenticator.admin_users in jupyterhub_config.py sit outside the role model. They are full administrators, so every name in that list has unrestricted access to the Hub, and no role limits what they can do. Treat the list as a privileged access register: keep it short, review it on a schedule, and confirm how changes to it are approved and logged in your environment. The authenticators documentation states that fine-grained RBAC permissions are generally preferable to full admin privileges, so the design question is which people truly need admin status and which can operate with a role. Settle that split before go-live, since it determines how much delegation you can offer without widening administrative access.
How a request to the Hub is checked against roles and scopes
The check starts when a user or service sends a request through the proxy, the only public-facing process, which forwards it to the Hub API. The Hub authenticates the caller first, then checks whether the identity is listed in c.Authenticator.admin_users. Listed identities have full access. Everyone else is checked against their assigned roles: the request is allowed only if one of those roles contains a scope that covers the action, such as the servers scope for starting a user server. Otherwise it is denied. Confirm the role and scope names against your JupyterHub version before you write policy.
Request path from the proxy through authentication to an allow or deny decision.
Which roles and admin accounts to define before rollout
Five decisions determine what a delegate can do and how far a single compromised account can reach. Work through them in order: the task list sets the scopes, the scopes set the roles, and the roles show how many people still need full admin rights.
Delegated tasks mapped to scopes
List each task you want to hand to someone without full admin rights, such as culling idle servers, starting or stopping a user's server, or reading user lists. Then find the scope that covers each task. In JupyterHub RBAC, a scope is the single permission checked on an API request, for example the servers scope for starting and stopping user servers, and a role is a collection of scopes. Scopes are never assigned directly to users, so check each role against the scope names in your JupyterHub version before granting it.
Roles and scopes docsSize of admin_users
Set c.Authenticator.admin_users in jupyterhub_config.py to the fewest named accounts that truly need full administrator rights. Every entry can do everything the Hub allows, so each extra name widens the damage a compromised account or an honest mistake can cause. Before RBAC, delegating a narrow task such as culling idle servers meant granting broad admin access, which is why teams often over-populate this list. Record a short written reason for each account and review the list on a fixed schedule.
Identity to user and group mapping
Decide how usernames and group memberships from your company identity provider become JupyterHub users and role assignments. The mechanism depends on the authenticator you run, so confirm the exact behavior in the authenticator documentation and in a test environment before you write role rules against it. Check what happens when someone leaves, changes teams or shares a name with another account, because a stale mapping keeps access alive. Record which attribute drives each role assignment.
Authenticators docsOwnership of role definitions
Name one owner for role definitions and a second reviewer for every change. Store role and scope settings in version control and require a reviewed change for each edit, so the person who wrote a change is not the only one who approved it. Decide who can approve a new delegated task, who can add an admin account and how urgent changes get recorded afterward. Without this, a role can quietly broaden during a support request, and nobody notices until an assessor asks who approved it.
Where role events are recorded
Decide where role-related events are kept and who reviews them before rollout. Confirm which admin actions, server start and stop requests and token activity the Hub logs in your setup, and where those logs are sent. The Hub keeps its state in a database, with SQLite as the default and PostgreSQL recommended for production, so plan retention and backups for that data too. Agree on a review cadence and on how evidence is exported for an assessor.
How the RBAC answer changes by team size and deployment
A single team on one Hub usually needs a short list of administrators and, at most, one or two delegated roles. RBAC still applies, so the design question is which routine tasks, such as stopping idle user servers, can go to an operator without giving that person full admin rights. The role documentation explains how scopes and roles fit together.
- Keep admin_users short: Set
c.Authenticator.admin_usersinjupyterhub_config.pyonly for people who must manage the Hub itself. - Delegate narrow tasks: Create a role that carries the
serversscope so an operator can start and stop user servers without broad access. - Use a written access list: Keep one page that names each administrator, role holder and service account, with the reason for each grant.
- Handle joiners and leavers: A written request and a removal step on the login side usually cover a team this size, so decide who owns that step.
Check that every role holder appears on the access list and that no service account holds more scopes than its job requires.
When several teams share one Hub, RBAC becomes the mechanism that keeps each team's administrative reach small. Scopes are never assigned directly to users, groups or services, so each team's access is built from roles granted to groups or individuals. Most of the work then moves to naming, approval and change control, while the separation of user data between teams is a distinct design topic covered on the multi-tenant page.
- Map roles to team duties: Define roles such as a server operator or a culling operator, and grant each one to the team lead or group that needs it.
- Source groups from the identity provider: Confirm with your authenticator how group membership reaches the Hub, since a role grant is only as current as that feed.
- Assign a role owner: Name one person per role who approves changes and removes grants when a team changes.
- Track changes: Record each role grant and removal in a ticket or change log so the history can be shown later.
Ask for the role-to-team matrix, the owner of each role and the process for removing access when a team member moves on.
Zero to JupyterHub runs the Hub as part of a Helm deployment, so RBAC settings are written into Helm values and reviewed like any other chart change. The guide lists Kubernetes 1.28.0 or later and Helm 3.5 or later as requirements. Confirm the exact keys for admin_users and roles against the chart version you deploy, because the authentication guide shows the pattern under hub.config for authenticator settings.
- Keep values in version control: Store the Helm values that hold admin and role settings in the repository the platform team reviews.
- Separate cluster access from Hub access: Kubernetes RBAC controls who can change the chart or read secrets, while JupyterHub roles control what users can do inside the Hub. These need separate reviews.
- Restrict cluster administration: Limit who can run Helm upgrades or edit the namespace, since that path can change Hub access directly.
- Plan the Hub database: The Hub keeps its state in a database, and PostgreSQL is the recommended production choice when there is no other preference, so confirm who owns that database and its backups.
Check the values diff for every role change and confirm who can run Helm against the namespace.
The Littlest JupyterHub is aimed at a small number of users, 0 to 100, on a single server, and its configuration lives in files on that host. RBAC settings sit in the Hub configuration, so anyone who can edit those files or log in to the host with administrative rights can change Hub access. Host security is the first control to get right, and the Hub's RBAC works as a second layer inside it.
- Control host access first: Limit SSH and sudo to named operators, because host control reaches the Hub's configuration.
- Keep admin_users minimal: Set
c.Authenticator.admin_usersto the few people who run the Hub, and confirm each name matches an account on the identity side. - Delegate routine work through roles: Give an operator a role for tasks such as stopping idle servers so that the operator does not need admin rights.
- Back up configuration and state: Keep copies of the configuration and the Hub database so a role change can be reversed and reviewed.
Ask who holds root or sudo on the host, who can edit the configuration files and where the backups are kept.
When access must be reviewed under a regulated data requirement, the reviewer needs a dated record of who held each admin right and role, who approved it and when it ended. RBAC defines the permissions, but the evidence comes from exports of role assignments, identity group membership, change tickets and whatever logs your setup produces. Confirm what your JupyterHub version and authenticator record before promising an assessor any log.
- Export the role inventory: Produce a list of roles, scopes and holders at a fixed point in time, and repeat the export for each review.
- Tie each grant to an approval: Link every admin right and role grant to a ticket with a named approver, so the reviewer can sample it.
- Compare the list to the identity provider: Check that each Hub holder still exists and still belongs to the group that justified the grant.
- Prepare removal evidence: Show that access for leavers and changed roles was removed, with the date of each removal.
Ask the assessor which sample they will test and whether they need logs from the Hub or the host. DeployOpen can prepare systems and evidence for an assessment, but the auditor or certification body issues the conclusion.
Gaps to close before the platform is approved
RBAC limits what each user and service can do, but it does not answer every question an approver will ask. The gaps below sit around the role model: change evidence, identity group sync, change control, vulnerability handling and support. Each has a usual cover, and most should be closed before the Hub goes live.
Audit evidence for role changes
Who changed a role or the admin list is the first question an auditor asks, and RBAC does not answer it by itself. Confirm what the Hub records about edits to admin_users and role assignments, and whether those records keep the actor and the time. Where the Hub records little, add logging around the configuration pipeline. Keep that evidence in a system the Hub administrators cannot edit.
Identity provider group sync
Mapping identity provider groups to JupyterHub roles depends on the authenticator, so confirm which group data your authenticator passes to the Hub before designing the mapping. The default PAM authenticator and OAuthenticator providers are configured differently, and a separate package may be needed for your directory. Decide whether group membership grants roles automatically or through a reviewed list. Then test that a user removed from a group loses the matching access, including running servers. Settings live in jupyterhub_config.py or Helm values.
Role definitions as code
Roles and their scopes are only as trustworthy as the change history behind them. Keep role definitions and admin_users in a version-controlled configuration repository, and make every change through a reviewed merge request. Name an owner for the role model and review it on a fixed schedule against the people who hold each role. Keep secrets such as OAuth client secrets out of that repository. Diff the rendered configuration at each release so an unexpected scope change is visible before it reaches the Hub.
Vulnerability response without a bug bounty
The Jupyter security page says the maintainers are volunteers and the project runs no bug bounty, so no vendor commits to a patch date for a JupyterHub advisory. Vulnerabilities are tracked under CVE vendor ID 15653. Plan your own intake: watch the project's advisories, name an internal owner who can build and roll out a patched Hub, and keep a tested rollback for the Helm chart and container image. After major upgrades, schedule an outside review of the access layer.
Jupyter security pageNo commercial support contract
The project lists no paid edition, managed cloud or commercial vendor, and its help channels are a Discourse forum and Zulip chat. A blocked research team has no vendor to call unless your organization arranges cover. Set up an internal support rota for the Hub, or agree a written retainer with a partner that names escalation contacts, response expectations and an upgrade calendar. Confirm those terms before the platform is approved.
Jupyter communityOrder of work to put JupyterHub RBAC in production
Put JupyterHub RBAC in production by moving in a fixed order: confirm the version, map delegated work to scopes, define roles, connect identity groups, prove denials, version the configuration and review membership on a schedule. The result is a Hub where non-admin staff can do their assigned tasks and nothing more, with evidence a reviewer can check.
Confirm the version and release line
The platform team checks that the deployed JupyterHub is 2.0 or later, the first release with role-based access control, and records the exact version in the change record. Confirm the version in your Helm values or your environment, not only in a document. Because the project publishes patch releases on more than one line, the team also names which line it tracks and who applies upgrades. The JupyterHub package listing on PyPI shows the current releases. Done when the version, the tracked line and the upgrade owner are written down and approved.
List delegated tasks and their scopes
The Hub owner and the teams that need help write down each task they want to hand to non-admin staff, such as culling idle servers or starting servers for a class. For each task, map the API permissions it needs to scopes in the RBAC documentation. A scope is the specific permission checked on each API request, such as the servers scope for starting and stopping user servers. Review each mapping with the task owner and remove any scope the task does not need. Done when a table of task, scope and owner is approved and no delegated task requires full admin rights.
Define roles and keep admin users minimal
The platform engineer groups the approved scopes into roles, one role for each job function, and defines them in the Hub configuration. Set
c.Authenticator.admin_usersinjupyterhub_config.pyto the smallest set of people who need full administration, and document who holds that access and why. Restart the Hub and confirm the administrator list matches the approved list. Done when the Hub starts with the roles defined and the admin list matches the signed-off document.Connect identity groups to roles
Scopes are not assigned directly to users, groups or services, so the identity team maps each identity provider group to one of the roles from the previous step. Confirm with your authenticator's documentation that group membership reaches the Hub in the form the mapping expects. Sign in with one test account per group and check that it has the expected role and no others. Done when each test account shows exactly the permissions of its role and a group change in the identity provider produces the expected change on the Hub.
Test denied actions with non-admin accounts
The security engineer signs in with non-admin test accounts and attempts every action outside each role: stopping another user's server, viewing other users, and changing roles or group membership. Each attempt should be refused, and the refusal should appear in the Hub logs. Also run each delegated task to confirm it still succeeds. Record the results in a test report that lists the account, the action, the expected result and the actual result. Done when every denied action is refused, every delegated task succeeds and the report is signed off by someone other than the person who configured the roles.
Document the configuration as code
The platform team keeps
jupyterhub_config.py, the role definitions, the group mappings and the Helm values in version control, and changes go through review. The commit history then shows who changedadmin_usersor a role and when. Ask a team member who did not write the configuration to rebuild the role table from the repository alone. Done when a clean deployment from the repository produces the same roles and admin list as the running Hub, and every change to access is traceable to an approved review.Schedule a recurring membership review
The access owner sets a recurring review of who holds each role and who is listed in
admin_users, based on the review interval in your access policy. At each review, remove leavers and stale grants, and confirm that each delegated task still has a named owner. Re-run the denied-action tests after each Hub upgrade, since a change to the release can change what a role allows. Done when the first review is signed off, the next review is on the calendar and the upgrade checklist includes the denial tests.
What a security reviewer asks to see for RBAC
This table lists what a security reviewer typically requests for JupyterHub role-based access control, the evidence to provide for each request and where that evidence lives. Read each row as a question the reviewer will ask, then check whether the Hub configuration, the identity provider, the change system or the test record can answer it. Cells marked Confirm depend on your own tooling, so verify them before the review starts.
| Reviewer request | Evidence to provide | Where it lives |
|---|---|---|
| Role and scope definitions | Each custom role with its scope list, plus the scopes granted by the built-in roles, exported as reviewed text. | Hub configuration (jupyterhub_config.py, or Helm values under hub.config). Confirm which roles are custom in your deployment. |
| admin_users list, with an owner for each entry | The current c.Authenticator.admin_users list, with a named owner, the reason for admin rights and the last review date for each account. | Hub configuration for the list. Owners are not stored by JupyterHub, so Confirm where your team keeps the owner register. |
| Tests showing non-admin roles are denied out-of-scope actions | Test cases with a limited-role account attempting out-of-scope API calls, such as starting another user's server, with the recorded responses. | Test record kept by the team that ran the tests. Confirm the test set covers every role you grant. |
| Configuration history | Version history of the config file and Helm values showing who changed roles, scopes and admin_users, when, and the approval for each change. | Change system (Git repository or change tickets). Confirm that the deployment pipeline keeps the rendered values as well as the source files. |
| Identity provider mapping | How group or claim values from the identity provider map to Hub roles or admin status, with the exact claim names and the provider's group settings. | Identity provider (group and claim settings) plus the authenticator settings in the Hub configuration. Confirm which authenticator passes group membership to the Hub. |
| Event record for role or admin changes | Audit entries for role assignments and admin grants or removals, showing the actor, the time and the target account. | Hub logs and the central log platform. Confirm which role and admin changes the Hub logs and whether a config file change creates any record. |
Questions buyers ask before approving JupyterHub RBAC
Does JupyterHub role-based access control require a paid edition?
No. The project publishes no paid edition or managed cloud offering for JupyterHub, and role-based access control is part of the open-source Hub, introduced in JupyterHub 2.0. You define roles and scopes in the Hub's own configuration, so the software adds no license fee. JupyterHub is licensed under the BSD 3-Clause license, which you can confirm in the project's LICENSE file. What you still pay for is the people who design, test and review the roles, plus the infrastructure that runs the Hub. Before approving any outside quote, ask the provider to state in writing whether software licensing is included and to name every third-party package they plan to add, such as an authenticator.
What does it cost to set up JupyterHub RBAC roles and scopes?
The open-source software has no license cost, so the cost is labor and any outside help. Three internal activities drive it: designing roles by listing each delegated task and the scopes it needs, testing that each role can perform its task and nothing else, and review by the person who owns access control. Costs grow with the number of roles, the number of identity groups that feed them, and the number of environments that must be tested, such as staging and production. Some work recurs, including role changes when a team's duties change and retesting after JupyterHub upgrades. An outside quote follows from the written scope, so ask for line items covering design, build, testing, review and handover, and confirm whether retesting after upgrades is included.
How long does it take to set up JupyterHub RBAC?
There is no fixed duration, because the timeline follows the number of delegated tasks and how much identity integration the roles depend on. A small set of roles, such as one for culling idle servers and one for a support group, is a short design and test cycle for a team that already knows the Hub. Each added task brings its own scope mapping and test cases. Identity work adds time when roles depend on group claims from a directory, because those groups must be confirmed and mapped before any role can be tested. Ask any provider for a timeline built from your task list and identity sources, with review and retest milestones written in before work starts.
What does our team need to provide for an RBAC setup?
Provide these inputs before work starts:
- A written list of delegated tasks, such as starting and stopping servers for a support group or culling idle servers.
- The identity groups or attributes that should map to each role, plus the current members of admin_users in jupyterhub_config.py.
- A non-production Hub with its current jupyterhub_config.py or Helm values if you deploy on Kubernetes.
- A named owner who approves each role, and a test account for each role so its permissions can be checked.
The quality of these inputs sets how much early effort goes to discovery and how much goes to design and testing. Missing group mappings are the most common reason a role design has to be reopened, so confirm them with your directory owners first.
Can our own platform team set up JupyterHub RBAC without a partner?
Yes, for a small role set, as long as someone independent reviews the result. Your team can define roles, add them to configuration and write tests if the delegated tasks are few and clear. Read the RBAC roles and scopes documentation for your JupyterHub version before you start, and keep admin_users limited to people who need full control. Outside help becomes more valuable when the role set grows, several identity sources must map to roles, or an independent reviewer must check the design before an assessment. Whichever path you choose, test that each delegated account can perform its task and nothing more, and record who approved each role.
Does JupyterHub RBAC include audit logging, and what should we confirm?
Do not assume that audit logging is built in for role changes. Confirm it against the RBAC documentation for your JupyterHub version and in your own non-production Hub. Ask the team to show a log entry for each key action: a delegated user starting a server, an administrator changing a role, and a request outside a role's scope being refused. Check where the Hub's logs are written, who can read them, how long they are kept, and whether changes to configuration files are recorded in version control or another change record. If the logs do not meet your evidence needs, treat the gap as a separate work item in the written scope.
What does a fixed-scope outside JupyterHub RBAC engagement cover?
A fixed-scope engagement covers what the written scope lists, agreed before work starts. DeployOpen plans, implements, customizes, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, and most engagements are fixed-scope. An illustrative RBAC scope might include a review of current admin access, a role design for each delegated task, configuration in jupyterhub_config.py or Helm values in your environment, tests that each role has only its intended permissions, and handover documentation. Ask for named deliverables, stated exclusions, how identity source changes are handled, and who signs off each stage. A quote follows from that written scope.
How DeployOpen scopes and delivers JupyterHub access control
DeployOpen treats JupyterHub access as a design task before it is a configuration task. We map which people and services need which Hub API permissions, define roles from scopes, and keep full admin rights for the few accounts that truly need them. The result is documented in your infrastructure and handed to the team that will run it.
How we scope
- The written scope lists each role, the scopes it grants and the users, groups or services assigned to it.
- We list which admin_users accounts remain in jupyterhub_config.py and why each one needs full administrator rights.
- Fixed-scope engagements agree deliverables and timelines in writing before work starts, so access decisions are signed off first.
How we build
- We map each delegated task, such as culling idle servers, to the smallest scope set that performs it.
- We write the roles as reviewable configuration, then test each role against the API calls it should allow and deny.
- Authentication and spawner settings are built alongside roles, so identity claims and server ownership match the access model.
How we hand over
- A handover pack documents each role, its scopes, the admin_users list and the test cases that check each boundary.
- Administrators receive a walkthrough of how to add a user to an existing role without granting admin rights.
- Change steps for new roles are written down, so later changes follow the same review and test sequence.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, so role changes can be tested after go-live.
- Check each upgrade's release notes for changes to scope names or role behavior before rollout.
- Security testing of the Hub's access controls can be scheduled as part of continuous testing, with findings and retests documented.

