Multi-tenant JupyterHub: user isolation, network policy and resource limits

The open-source JupyterHub core and the Zero to JupyterHub chart include user-separation settings at no license cost, but they are controls you configure, test and operate. This page covers what they enforce, where the gaps are and what a reviewer should verify.

On this page

Can multi-tenant JupyterHub keep users apart without a paid edition?

The open-source JupyterHub core and the Zero to JupyterHub Helm chart include separation controls for a shared hub, both licensed under the BSD 3-Clause license with no published paid edition. These are configured controls covering network policies, no default access to Kubernetes service account credentials, a default block on private IP ranges, optional per-user subdomains and per-user resource limits, and your organization must build, verify and keep them working. The chart creates four NetworkPolicies, for the hub, proxy, autohttps and singleuser pods, and enables them by default, but a cluster without a NetworkPolicy controller may silently ignore them. Per-user limits also depend on the spawner: LocalProcessSpawner, the default, does not enforce them.

Building this starts with decisions, then checks. Confirm that your cluster's network plugin enforces NetworkPolicy, then run a test pod from one user's server that tries to reach another user's server and confirm the attempt fails. Set the privateIPs option deliberately: since chart 2.0.0, singleuser pods cannot reach private IP addresses unless it is enabled, so any internal database or license server a notebook needs must be allowed on purpose. Block the cloud metadata address at 169.254.169.254, as the Zero to JupyterHub security guidance recommends. If you use per-user subdomains, plan for a wildcard DNS record, a certificate and its renewal. Plan capacity around concurrently active users, and treat the capacity guide's sample of 2 GB memory and 0.5 to 1 CPU per user as a starting point to replace with your measured usage.

The main gap is one the project does not close: JupyterHub does not offer a hard tenant boundary between groups. Every group shares one Hub process, one database, one proxy and the same cluster nodes, so a weakness in any shared component can affect all groups. The project's maintainers are volunteers and the project runs no bug bounty, as stated on the Jupyter security page, so patching and vulnerability response fall to your team. If a regulator or group lead needs a hard boundary, decide that before approval and choose separate hubs or separate clusters, which add operating cost. Ask your security reviewer to test cross-group access, metadata reachability and resource exhaustion on the deployed system before sign-off.

Which user isolation controls are built in and which need outside work

This table compares the user isolation controls that the Zero to JupyterHub chart and JupyterHub provide with the ones you must add at the cluster, network or spawner layer. Read the status column first to see what ships enabled, then the outside component column to plan the work. The main takeaway is that the chart covers pod network policy and service account access by default, while metadata blocking, DNS for subdomains and resource enforcement depend on your environment and your spawner choice.

CapabilityStatus in the open-source releaseOutside component or your workWhat to watch for
NetworkPolicies for hub, proxy, autohttps and singleuser podsBuilt into the chart and enabled by defaultA NetworkPolicy controller in the clusterWithout a controller the policies may be silently ignored. Test enforcement from a user pod.
Private IP blocking for singleuser podsBuilt in since chart version 2.0.0. Private addresses are blocked unless privateIPs is explicitly enabledReview the privateIPs setting in your Helm valuesEnabling privateIPs reopens access to private address ranges. Record the reason for any change.
Default no access to Kubernetes API service account credentialsBuilt in by defaultNothing to add for the default. Review any custom pod spec changesOverrides to pod specs can change this. Check the rendered manifests after each change.
Blocking the cloud metadata address 169.254.169.254Recommended by the project. You implement it outside the chartCluster or network layer: egress policy, node firewall or cloud firewall rulesTest from a user pod after applying the rule. Confirm the metadata path with your cloud provider.
Per-user subdomainsDocumented option that reduces cross-origin riskA wildcard DNS record and a wildcard TLS certificateThe certificate must match the subdomain pattern you choose. Plan DNS and certificate renewal together.
Per-user memory and CPU limitsSet in spawner settings such as mem_limit and cpu_limitThe spawner you choose, which must enforce the settingsLimits apply only to spawners that enforce them. LocalProcessSpawner does not.
Paid edition for any of theseNo paid edition published by the projectNot applicable. Any vendor support is a separate contractConfirm in writing what any third-party support covers before you rely on it.

How the hub, proxy and user pods share one cluster without sharing access

Three roles share the cluster, and each carries part of the isolation design. The Hub manages user accounts, authentication and the spawning of one notebook server per user. The proxy is the only public-facing process, so every browser request enters through it and is routed to the Hub or to a user's server. Each user server runs as its own pod, created by a spawner. On Kubernetes that spawner is KubeSpawner, so the pod boundary is a Kubernetes boundary, and the controls below attach to those pods by role. Confirm which spawner your deployment uses before you map these controls onto it.

The Zero to JupyterHub chart creates four NetworkPolicies, one each for the hub, proxy, autohttps and singleuser pods, and they are enabled by default. The singleuser policy matters most for tenant separation. Since chart version 2.0.0, user pods cannot reach private IP addresses unless privateIPs is explicitly enabled, and by default user servers cannot access Kubernetes API service account credentials. The security guidance also recommends blocking user pod access to the cloud metadata service at 169.254.169.254, so plan that rule separately and test it. Resource limits are set in the spawner through mem_limit, mem_guarantee, cpu_limit and cpu_guarantee. Only spawners that implement these settings enforce them, and LocalProcessSpawner does not.

Enforcement depends on two things outside the chart: a NetworkPolicy controller in the cluster and a spawner that implements the resource settings. A cluster without a NetworkPolicy controller may silently ignore the four policies, so a clean deployment does not prove they work. Before the design is approved, confirm in the target environment that the network plugin enforces NetworkPolicy, that a test pod in a user namespace cannot reach a private address or the metadata address, and that a user server actually reports the memory and CPU limits you set. Review the Zero to JupyterHub security guidance with your security team, and record each test result as evidence for the review.

Each isolation control sits on one hop of the request path

The diagram starts at the user browser, which reaches the proxy, the only public-facing process. The proxy sends login and admin traffic to the Hub and sends each user's requests to that user's own singleuser pod, which the Hub spawns. The NetworkPolicy boundary wraps the user pods, and three blocked paths leave it: private IP ranges, the cloud metadata service and the Kubernetes API. The wildcard DNS route for per-user subdomains is optional. Check that your cluster enforces NetworkPolicy, because a cluster without a controller may silently ignore these policies.

Requests flow from the browser to a user's own pod, with three blocked paths out of it.

Choosing the tenant boundary for multi-tenant JupyterHub before the build

Six decisions set how users are separated on a shared hub, and each one constrains the next. Settle the hub layout, network boundary, metadata access, subdomains, resource sizing and storage before anyone writes the Helm values or jupyterhub_config.py. Each card names what the decision affects and what to confirm with the platform team.

One hub or several

This decides whether all groups share one Hub process and database or each group runs its own. A shared Hub means one upgrade window and one admin scope, so a bad configuration change or failed upgrade affects every group at once. Separate hubs shrink the blast radius and let each group upgrade on its own schedule, at the cost of more proxies, databases and Helm releases to operate. Confirm who can change the shared configuration, and how often the platform team plans to move to newer JupyterHub releases.

Network boundary and enforcement

The Zero to JupyterHub chart creates NetworkPolicies for the hub, proxy, autohttps and singleuser pods, and they are enabled by default. Those policies only take effect if the cluster network plugin enforces NetworkPolicy, because a cluster without a NetworkPolicy controller may silently ignore them. Ask the platform team which network plugin the cluster runs and whether it enforces NetworkPolicy. Then test that one user pod cannot open a connection to another user's pod before any group gets access.

Metadata and private network access

User code can reach any address its pod can route to, so the boundary must cover the cloud metadata service at 169.254.169.254 and private network ranges. Since Zero to JupyterHub chart version 2.0.0, singleuser pods cannot reach private IP addresses unless privateIPs is explicitly enabled, and user servers cannot use Kubernetes API service account credentials by default. Blocking metadata access is the step the Zero to JupyterHub security guidance recommends. Confirm which node credentials sit behind that address and which internal services need an exception.

Zero to JupyterHub security

Subdomains, DNS and certificates

Per-user subdomains give each user server its own origin in the browser, which reduces cross-origin risk between users. They depend on a wildcard DNS record and a wildcard certificate for the hub's domain, and the proxy must route each name to the correct server. Confirm with the DNS and certificate owners that the organization can issue and renew a wildcard certificate automatically. Also confirm that internal resolvers answer the wildcard for every user on the corporate network.

Spawner and resource sizing

Size the hub on concurrently active users, not total accounts. JupyterHub spawners accept per-user memory and CPU limits and guarantees, but only spawners that implement them enforce them, and LocalProcessSpawner does not. Confirm which spawner is deployed and whether its limits are set in configuration for every node pool. Use the sample per-user starting point only as a first estimate, then replace it with measured usage from the platform's own load.

Sample memory per user
2 GB
Capacity planning guide

Storage and who can reach it

User notebooks, data files and installed packages land on storage that the hub mounts into each user server. Decide whether each user gets a private volume, whether any shared volume is writable by several users, and which administrators or service accounts can read those volumes outside the notebook. Ask the platform team for the storage class, the reclaim policy on user claims, the backup schedule and the list of principals with read access to the storage backend.

How user isolation changes for a single team, several groups and regulated data

One team on one hub has the fewest tenant boundaries, so the work is making the default protections hold and setting resource limits that match how many people are active at once. Most of the isolation risk in this setup sits between users and the platform itself, so the defaults matter more than extra boundaries.

  • Keep the default NetworkPolicies on. The chart creates four policies for the hub, proxy, autohttps and singleuser pods, and they are enabled by default. Confirm your cluster runs a NetworkPolicy controller, because a cluster without one may silently ignore them.
  • Keep private address access off. Since Zero to JupyterHub chart version 2.0.0, singleuser pods cannot reach private IP addresses unless privateIPs is explicitly enabled. Record any change as a documented exception with an owner.
  • Set per-user limits on a spawner that enforces them. mem_limit, mem_guarantee, cpu_limit and cpu_guarantee only take effect in spawners that implement them, and LocalProcessSpawner does not. The capacity planning guide suggests planning around concurrently active users, with a sample starting point of 2 GB memory and 0.5 to 1 CPU per user.
  • Block the cloud metadata service. The security guidance recommends blocking user pod access to 169.254.169.254, and it confirms that user servers cannot read Kubernetes API service account credentials by default.

Before inviting users, start a test server and confirm that it cannot reach the metadata address, a private address or the Kubernetes API.

Where multi-tenant JupyterHub still needs your own controls

JupyterHub and Zero to JupyterHub ship defaults that separate users, but several controls depend on your cluster, your spawner and your operating model. Each card names one gap and the usual way teams close it, so you can decide what to build and what to test before users arrive.

No hard boundary between groups

JupyterHub separates each user's server, but it does not provide a hard tenant boundary between groups that share one hub. Users on the same hub share the Hub, the proxy and the database, so the isolation you get depends on controls you add. Decide which groups may share a hub and which need their own hub or cluster. Then test the boundary from inside a user server by trying to read another group's files and reach its services.

Zero to JupyterHub security

Verify NetworkPolicy enforcement

The Zero to JupyterHub chart creates four NetworkPolicies, for the hub, proxy, autohttps and singleuser pods, and enables them by default. A cluster without a NetworkPolicy controller may ignore them silently, so the manifests can exist while nothing is enforced. Confirm that your cluster's network plugin enforces policy, then run test pods from a user server against blocked paths, such as the hub API and other users' pods. Keep that test in your pipeline so a cluster change or upgrade cannot remove enforcement unnoticed.

Zero to JupyterHub security

Set limits in the spawner

Per-user limits such as mem_limit, mem_guarantee, cpu_limit and cpu_guarantee are set on the spawner, and only spawners that implement them enforce them. LocalProcessSpawner, the default, does not enforce them, so one user server can consume the host's memory and CPU. Choose a spawner that enforces limits, such as KubeSpawner on Kubernetes or DockerSpawner on Docker, and check the applied values on a running server. Size the limits from concurrently active users, not total accounts.

Spawners documentation

Block cloud metadata access

The Zero to JupyterHub security page recommends blocking user pod access to the cloud metadata service at 169.254.169.254. Metadata endpoints can return credentials for the node's identity, which can turn a notebook into a path into your cloud account. Implement the block in your network policy or at the cloud network layer, using the controls your provider documents, and confirm it with a test pod. The chart gives this as guidance, so the enforcement and its testing are your responsibility.

Zero to JupyterHub security

Plan wildcard DNS and certificates

Per-user subdomains reduce cross-origin risk between user servers, but they need a wildcard DNS record and a wildcard certificate that cover every user host. Someone must issue, renew and rotate that certificate, and the wildcard record must point at the proxy entry point you run. Confirm that your DNS provider and certificate tooling can automate renewal before you choose this layout. Then test that one user's host cannot be reached with another user's session.

Zero to JupyterHub security

Own patching and upgrades

The Jupyter security page says the maintainers are volunteers and the project runs no bug bounty. The PyPI release history shows jupyterhub 6.0.0 on 1 September 2026, 6.1.0 on 14 October 2026 and 6.2.0 on 5 November 2026, roughly one minor or patch release a month. Your team owns tracking advisories, testing each release against your chart version and applying patches on a schedule you set. Name an upgrade owner and agree, before go-live, how quickly a security patch reaches production.

Jupyter security

Order of work to put user isolation in production

This sequence takes a shared hub from a working install to one where each isolation control has been tested. Each step ends with a check that must pass before the next step starts, so network, metadata, resource and DNS controls are proven and recorded before production use.

  1. Confirm the NetworkPolicy controller

    Your platform team confirms that the cluster runs a NetworkPolicy controller that enforces policy objects. The Zero to JupyterHub chart creates four NetworkPolicies, for the hub, proxy, autohttps and singleuser pods, and a cluster without a controller may silently ignore them. From a test pod in a user namespace, attempt connections that the design should block, such as to the hub database or to another user's server, and confirm each attempt fails. Move on only when the blocked connections fail and the allowed path through the proxy still works.

  2. Keep chart network and service account defaults

    The platform team keeps the chart's four NetworkPolicies enabled and changes them only with a written reason. Record the values that govern private IP access and service account credentials. Since chart version 2.0.0, singleuser pods cannot reach private IP addresses unless privateIPs is explicitly enabled, and user servers cannot reach Kubernetes API service account credentials by default. Save the rendered values in version control. Move on when a rendered manifest diff matches the settings you recorded.

  3. Block cloud metadata access from user servers

    Your cloud or network team blocks user pod traffic to the cloud metadata service at 169.254.169.254, following the guidance in the Zero to JupyterHub security documentation. Place the block at a layer that chart values cannot change, such as the cloud firewall or node network rules, so a misapplied policy does not reopen it. Start a user server and request the metadata address from inside it. Move on when the request fails from the user server and a node-level test pod also fails the same way.

  4. Choose the spawner and set limits

    The hub owner selects a spawner that enforces resource limits. Per-user mem_limit, mem_guarantee, cpu_limit and cpu_guarantee settings are enforced only by spawners that implement them, and LocalProcessSpawner does not. On Kubernetes, the spawner is KubeSpawner, so set the limits there and confirm the key names for your chart version. Then start a test server running a deliberately runaway process, such as a memory allocation loop or a busy CPU loop. Move on when the process is stopped or throttled at the configured limit and the hub and other users' servers stay responsive.

  5. Decide and verify the subdomain strategy

    The hub owner decides whether each user is served from a per-user subdomain or from path-based URLs on one hostname. Per-user subdomains reduce cross-origin risk, as the Zero to JupyterHub security guidance describes, but they need a wildcard DNS record and a certificate that covers it. If you choose subdomains, verify that the wildcard name resolves, that the certificate matches each user hostname, and that a page on one user's subdomain cannot read another user's session through cross-origin requests. Move on when all three checks pass from two different user accounts.

  6. Size the cluster for concurrent users

    Plan capacity around the users who are active at the same time, and confirm that figure with the people who will use the hub. The JupyterHub capacity planning documentation gives 2 GB memory and 0.5 to 1 CPU per user as a sample starting point only. Multiply that starting point by your expected concurrent peak, then add headroom for the hub, proxy and database. Replay a representative notebook workload at the expected peak. Move on when every server stays within its limits and the cluster schedules new servers without waiting for capacity.

  7. Record test results and set upgrades

    Record each test with its date, result and the person who ran it, and store the record with the rendered Helm values. Set an upgrade schedule that tracks Zero to JupyterHub chart releases and JupyterHub releases, and confirm the Kubernetes and Helm versions each release requires. The documentation lists Kubernetes 1.28.0 or later and Helm 3.5 or later as requirements. Rerun the network, metadata, limit and DNS checks after each upgrade. Production use starts when every check is signed off and the upgrade schedule has a named owner.

What a security reviewer asks to see for user isolation and where it comes from

This table lists what a security reviewer typically asks to see for user isolation on a shared hub, where each item comes from, and what to check before sending it. Each row maps to a source your team or DeployOpen can produce, from cluster output and test records to version control and release history. The reviewer decides whether the evidence is acceptable; DeployOpen prepares the evidence but does not issue attestations or certifications.

What the reviewer asks forWhere it comes fromNotes
NetworkPolicy manifests applied in the clusterCluster output listing the NetworkPolicy objects in the hub namespace, with the Helm release that rendered themConfirm four policies exist for the hub, proxy, autohttps and singleuser pods. A cluster without a NetworkPolicy controller may silently ignore them.
Test results for pod-to-pod trafficDated test records from one user's server attempting to connect to another user's serverRecord the source pod, target pod, port and result. A failed connection is the expected outcome.
Test results for private ranges, metadata and the Kubernetes APITest records from a user pod probing private IP ranges, 169.254.169.254 and the Kubernetes APIEach probe should fail. Re-run these tests after every chart upgrade and keep the raw output.
Private IP and service account settingsChart values in version control, with the commit used for the running releaseSince chart 2.0.0, private IPs are blocked unless explicitly enabled. Ask for any exception and who approved it.
Spawner memory and CPU limitsSpawner settings in the chart values for memory and CPU limits, plus test output showing enforcementOnly spawners that implement these settings enforce them, and LocalProcessSpawner does not. Confirm the running spawner enforces them with a test that exceeds the limit.
Per-user subdomain DNS and certificate recordsDNS zone and certificate management records, if per-user subdomains are usedPer-user subdomains need a wildcard DNS record and certificate. If you do not use them, record that decision in the evidence pack.
Upgrade history and release notes appliedDeployment pipeline history and the JupyterHub and Zero to JupyterHub release pagesRecord the chart version and the JupyterHub version it deploys. Confirm you have applied the latest patch on the line you run.

What multi-tenant JupyterHub costs and who does the work

Is a paid JupyterHub edition needed for user isolation?

No. The project publishes no paid edition or managed cloud offering, so the isolation settings, including network policies, service account access and resource limits, are configured in the open-source Hub and Helm chart. The cost sits in three places. The first is infrastructure: cluster nodes, storage, the database and the load balancer. The second is licenses for other components you choose to buy, such as a commercial Kubernetes distribution with support or an enterprise identity provider. The third is people who design, test, upgrade and operate the setup. Confirm with each vendor whether a feature you plan to use carries license terms, and ask your team to list every component that needs a license before you compare options.

What drives the cost of running multi-tenant JupyterHub?

Compute is usually the largest part, and it scales with how many users are active at the same time, not with the number of accounts. The JupyterHub capacity planning documentation gives a sample starting point of 2 GB memory and 0.5 to 1 CPU per user, which you should replace with measurements from your own notebooks. Other drivers are the cluster and its network plugin, since NetworkPolicy rules need an enforcing controller, the Hub database (PostgreSQL is recommended for production), and the people who build, monitor and upgrade the platform. When you ask for a quote, request the assumed concurrency, node sizes, database sizing and a breakdown of which steps the partner performs and which your team performs.

How long does a multi-tenant JupyterHub isolation project take?

The duration depends on the readiness of your cluster and on the scope agreed in writing, so any general figure should be treated with caution until you have a written scope. The main variables are whether the cluster already has a working NetworkPolicy controller, storage and ingress; the number of groups and how differently they must be isolated; the lead time for DNS and certificates if you use per-user subdomains, which need a wildcard record and a certificate; any identity provider changes; and how deep the testing goes. DNS and certificate requests often depend on other departments, so start them early. Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

What does our team need to provide for a JupyterHub isolation engagement?

Plan for five inputs before work starts.

  • Cluster access: a role that can create namespaces, network policies and service accounts, ideally on a non-production cluster first.
  • Network plugin details: the CNI you run and confirmation that its NetworkPolicy enforcement is switched on, because the chart's policies can be silently ignored without a controller.
  • DNS control: the ability to create a wildcard record and request a certificate for per-user subdomains.
  • Identity provider contacts: people who can register the OAuth or LDAP client and map group claims to Hub roles.
  • A named owner: one person who approves configuration changes, accepts test results and decides on exceptions.

Agree on these inputs and their owners in the written scope so that delays are visible early.

Can our own platform team set up multi-tenant JupyterHub without a partner?

Yes, if your team has solid Kubernetes and identity skills, because the project documents these settings publicly. The Zero to JupyterHub chart creates NetworkPolicies for the hub, proxy, autohttps and singleuser pods, and they are enabled by default. Since chart version 2.0.0, singleuser pods cannot reach private IP addresses unless privateIPs is explicitly enabled, and user servers cannot reach Kubernetes API service account credentials by default. The harder work is testing and ownership: proving that a policy blocks the traffic it should, confirming that the cloud metadata address 169.254.169.254 is blocked, checking that the cluster enforces policies at all, and deciding who signs off each change. An outside team is most useful for independent testing and retesting.

Will this JupyterHub setup satisfy a compliance certification for our organization?

No setup satisfies a certification by itself, and the decision belongs to independent auditors or certification bodies. DeployOpen prepares the systems, controls and evidence that an assessment looks for, such as network policy configuration, role assignments, access logs and test results. It does not issue audit reports, attestations or certifications. Ask your auditor early which evidence they expect for the framework you are assessed against, then write that evidence list into the scope so the controls are built and recorded with it in mind. Identify which control IDs in your framework cover user separation, access and logging, and confirm with the auditor how they want each one documented.

How DeployOpen deploys and tests isolation for JupyterHub in your infrastructure

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For multi-tenant JupyterHub, that means turning the documented controls for network policy, service account access, per-user subdomains and resource limits into a configuration you can review and test in your environment. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • The written scope names the namespaces, user groups and spawner settings covered for multi-tenant JupyterHub isolation.
  • We confirm your cluster runs a NetworkPolicy controller, since the chart's policies may be silently ignored without one.
  • Engagements are fixed-scope, and ongoing support is available as a retainer.

How we build

  • We configure the Helm values for the four NetworkPolicies covering the hub, proxy, autohttps and singleuser pods.
  • We keep singleuser pods away from private IP ranges and the cloud metadata address at 169.254.169.254.
  • We set per-user memory and CPU limits on a spawner that enforces them, and record that LocalProcessSpawner does not.

How we hand over

  • A written configuration record of each NetworkPolicy, Helm value and spawner setting, with the chart and JupyterHub versions pinned.
  • Test results showing which cross-user and metadata access attempts were blocked, and which remain open.
  • Operator runbook covering hub upgrades, policy checks after changes and onboarding a new user group.

How we support

  • Retesting of isolation controls after chart, JupyterHub or Kubernetes upgrades, as agreed in the retainer.
  • Upgrade planning that follows the chart and JupyterHub release cadence, which the project publishes on GitHub and PyPI.
  • Evidence for compliance reviewers on how user separation is configured and tested, while auditors issue any attestation.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.