← All projects

cloudshell

A self-hosted browser terminal, like Azure or Google Cloud Shell, that gives each signed-in user their own persistent Linux shell on Kubernetes.

Working
  • Go
  • React
  • TypeScript
  • xterm.js
  • Kubernetes
  • Entra ID
  • Flux CD
  • GitHub Actions
Diagram: the browser terminal connects over a WebSocket to a Go backend, which validates the sign-in token and streams to a per-user Kubernetes pod with a persistent home volume
How a session flows from the browser to the user's own pod.

What it does

Sign in with your work account and you get a full Linux terminal in the browser. Your home directory persists between sessions, and if your connection drops the session is still there when you come back. Nothing to install on the laptop.

How it's built

  • The React frontend uses xterm.js for the terminal and Microsoft Entra ID (Azure AD) for sign-in.
  • A Go backend validates the sign-in token, then uses the Kubernetes API to start a pod for that user with a persistent volume for their home directory.
  • The terminal streams over a WebSocket to the pod. tmux keeps sessions alive across reconnects.
  • An idle reaper removes pods nobody is using, usernames are derived safely from email addresses, and each user's commands are written to an audit log.
  • Images are built in GitHub Actions and deployed with Flux and Kustomize. A Kind-based setup runs the whole thing locally.