Skip to content

feature: Support multi-tenancy for namespace/user isolation #33

Description

@lengjing

Problem

Currently, Devboxes operates in a single shared deployment context without explicit multi-tenancy isolation. In team or organizational environments, different users or groups need isolated environments, storage, RBAC policies, and resource quotas to prevent tenant conflicts and unauthorized access to other users' devboxes and PVCs.

Proposed outcome

  • Support tenant isolation via Kubernetes Namespaces or logical tenant ID tagging.
  • Provide RBAC control and user-level resource limits (e.g., CPU, Memory, GPU allocation per tenant).
  • Ensure storage (/home/dev volumes) and SSH keys are strictly isolated between tenants/users.
  • Allow FastAPI Controller and CLI to filter and manage resources based on authenticated tenant context.

Alternatives and tradeoffs

  • Alternative: Deploying separate Devboxes control planes/helm releases per team.
  • Tradeoff: Higher operational overhead and resource duplication compared to native multi-tenancy within a single deployment.

Project boundaries

  • I considered persistence, security, and Kubernetes portability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions