Skip to content

About

Real Linux machines, Kubernetes clusters and network devices in your browser, graded on the state you leave them in. Self-host it for free, or let us run it and pay only for the minutes your labs use.

Resources

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

597 Commits

Folders and files

Repository files navigation

CloudTrain

Hands-on infrastructure training on real systems, graded automatically, with timed exam simulations.
Kubernetes · Linux · Docker · Terraform · Ansible · Networking

License: BUSL-1.1 Content: CC BY-NC 4.0 Status: early development

ci CodeQL SAST secrets dependencies images DAST OpenSSF Scorecard

A CloudTrain lab: task with live checks, topology of real nodes, terminal into the lab

CloudTrain gives every learner their own real environment: kubeadm clusters on VMs, virtual clusters, Linux hosts, routers and switches, wired together on a private network. The learner works in a browser terminal, and the platform grades the end state with typed checks, so there are no multiple-choice shortcuts. Each result is evidence for specific skills, and an adaptive model picks the next lab. When a learner is ready, they take a timed exam simulation built the same way.

Highlights

  • Real environments, not simulators. A lab is a topology: jumphost containers, KubeVirt VMs, kubeadm clusters booted from golden images, vclusters and FRR routers. Each lab gets its own Kube-OVN network, and every link is its own segment, with packet capture and latency/loss impairment.
  • Graded on what's actually there. Checks are typed (Kubernetes queries, auth can-i, shell, files, service state, reachability, device commands) and run with admin credentials the learner never sees. Hints cost points, and learner-facing messages never reveal the answer.
  • Labs that are proven to work. Every lab ships with a reference solution, alternative valid solutions, and wrong-approach "misconceptions". labctl verify runs each one live: checks must fail before the solution and pass after it, every misconception must fail the checks aimed at it, alternatives must pass, two random seeds must agree, and teardown must leave nothing behind.
  • Exam simulations. One timer for the whole exam, no hints, tasks drawn from pools weighted like the real blueprint (a retake gets fresh tasks), one shared environment, and grading after a freeze, a re-run check and an optional reboot. The result is a per-objective score report, with pass/fail against the exam's pass mark.
  • Adaptive learning. A skill graph spanning Kubernetes, Linux, containers, infrastructure as code, automation and networking, mapped to CKA, CKAD, CKS, LFCS, RHCSA-, Linux+-, Terraform-, RHCE- and CCNA-aligned objectives. Recommendations explain why each lab is next.
  • Built for organisations. Enterprise SSO (Microsoft Entra ID, Okta, Google, any OIDC/SAML IdP brokered through Keycloak), roles from IdP app roles and groups, and per-organisation data isolation enforced by Postgres row-level security. There are views for learners, managers, instructors, authors, org admins and platform operators, plus an append-only audit log.
  • Fast and economical sessions. Warm pools hand out a ready lab in under a second, and hibernate/resume keeps the learner's work while freeing compute. Instructors can observe a learner's terminal read-only (the learner sees a banner) and extend, reset or end sessions.

A tour

Home Home: resume, the next best lab and why, a study plan toward the exam goal, mastery Catalog Catalog: domains, paths and labs
CTF questions CTF lab: questions about a seeded incident, graded on submit, with attempts, penalties and hints that cost points CTF scoreboard CTF event: live scoreboard for teams or players, solve timeline, first bloods, optional freeze
Exam workspace Exam simulation: one timer, task navigator with flags, terminals into the exam environment Exam results Exam results: per-task and per-objective breakdown against the pass mark
Real terminal Real lab: a terminal into a live lab on the cluster Skills Skills: mastery and uncertainty per framework
Team dashboard Manager: team competency heatmap, deadlines, at-risk learners Assign Assign: labs, paths or frameworks to people or teams, with due dates
Instructor board Instructor: live cohort board (phase, checks, time on task, "stuck" signal) Observe Observe: read-only shadow terminal, audited
Admin SSO Org admin: SSO connections, domain verification, group-to-role mapping Audit log Audit log: every administrative action, filterable and exportable
Sign in Sign-in: identity-first, routes each email domain to its company's IdP Scenario Studio Scenario Studio: lab drafts and their verification gates
Landing page Website: the public landing page, served by the same app and configured from content/site.yaml Public catalog Public catalog: paths, courses, labs and exam simulations, read-only until sign-in
Coming soon Coming soon: the pre-launch website (launch.mode: coming-soon): what CloudTrain is, how pay-per-minute pricing works, the waitlist Pricing Pricing: compute by the minute per environment tier, subscriptions for premium labs, seats for organisations; placeholder amounts until final
Billing Billing: the plan and entitlements per person or organisation; Stripe Checkout and portal in test mode, behind a flag

Three themes: dark, light and cream (light, cream).

How it works

How CloudTrain works: people use the web app; the gateway signs them in through Keycloak and their company IdP, keeps data in Postgres with per-organisation row-level security, and asks the lab orchestrator for lab and exam sessions; the orchestrator runs isolated kubeadm, virtual-cluster and network labs on Kubernetes with KubeVirt and Kube-OVN and grades them; lab content is validated and verified live before publishing.
  • Labs are data. Each lab is a lab.yaml (format cloudtrain.dev/v3): topology, setup, typed checks tagged with skills, hints, misconceptions and solutions. labctl compiles it into a LabTemplate.
  • The orchestrator is a Kubernetes operator with LabTemplate, LabSession, WarmPool, ExamTemplate and ExamSession resources. Pluggable node drivers run containers, KubeVirt VMs, kubeadm clusters, vclusters and network devices.
  • Credentials stay separate. The learner works as an unprivileged user in the entry node; admin credentials live in a sidecar the learner can't read.

Curriculum

The approved curriculum lives in content/curriculum.yaml, rendered in docs/curriculum.md. Scenarios are original, with fictional organisations. Paths and exams are aligned to certification objectives and never copy exam content.

Domain Paths Learning labs + exam tasks Exam simulations Built Verified live
Kubernetes 5 192 3 2 190
Linux administration 11 279 3 3 276
Containers with Docker 11 135 2 7 128
Infrastructure as code with Terraform 5 99 2 — 99
Configuration management and automation 7 97 1 1 87
Network administration 4 78 1 — 72
Security operations 3 67 1 — —
Total 46 947 (542 learning, 405 exam tasks) 14 13 852

"Built" means written and passing schema, skill and compile validation; "verified" means it also passed the full live labctl verify cycle. The table is generated from content/curriculum.yaml (task curriculum:render), and CI fails when it is out of date.

Status

CloudTrain is in early development. Here is exactly where it stands.

Working and proven live

  • Local platform: kind with KubeVirt, CDI, Kube-OVN and Multus, one-command setup (task dev:up, which also recovers the cluster after a host restart), and per-lab network isolation proven by connection checks.
  • Lab runtime: container, vcluster, kubeadm-on-VMs and FRR network-device nodes; the grader; labctl verify; warm pools and hibernate/resume (vcluster).
  • Runtime hardening: Pod Security baseline enforced on every virtual cluster's host namespace (a learner's privileged pod is refused), kubeadm init retried with a configurable provisioning timeout, lab links that carry bridged and VLAN-tagged traffic, and an opt-in sudo-capable learner for pod labs. Round 4: rate-limited lab links (broadcast-storm labs can run), writable network sysctls in lab network nodes, a wired entry node reachable over its links, kubectl debug refused up front with a clear message when it would break Pod Security in a virtual cluster, and a 20 s default timeout for Kubernetes checks.
  • Exam engine: drawing tasks, the shared environment, timer freeze, auto-solved runs scoring 100%, unsolved runs failing, and retakes drawing different tasks.
  • Exam simulations through the gateway with real sign-in (Keycloak and CSRF), run by the same in-cluster orchestrator as the web app's labs.
  • Platform: SSO with real Microsoft Entra ID and brokered IdPs, roles, Postgres row-level security, audit logging, assignments, quotas, instructor controls (a 54-check end-to-end proof).
  • Web: learner, exam, manager, instructor, admin and platform views in mock mode; real mode drives live labs with a real terminal and real grading.

Built but not yet proven end to end

  • Hibernate/resume on kubeadm clusters, VM labs with extra disks, and the kubeadm init retry under heavy load.
  • The full lab-cluster image (metrics-server, ingress, Gateway API, MetalLB, storage provisioner, Falco, gVisor, kube-bench).

In progress

  • Foundations: boot tests of the full kubeadm image, the deb-lab and ubuntu-vm images, and offline package and registry mirrors.
  • Content: more Kubernetes developer and security labs, and the first Docker and Terraform labs.

Known gaps

  • Kata Containers isolation for production.

Not started

  • Lab content for Ansible, and for Linux labs that need VMs or Kata.
  • Scenario Studio generation (the UI is mocked) and the AI tutor.
  • Production deployment on vCenter with Kata Containers.

Direction

  1. Harden the runtime: offline mirrors, Kata isolation, rate-limited lab links.
  2. Finish the Kubernetes track: verify all 192 labs and run the three Kubernetes exam simulations end to end through the web app.
  3. Fill the other domains: Linux (pods, Kata and VMs), Docker (Kata pods running dockerd), Terraform (offline providers against vclusters and emulators), Ansible (managed-node VMs), and networking (FRR, SR Linux).
  4. Scenario Studio: authors describe a lab, it is generated, then gated by the same live verifier before a pilot cohort sees it.
  5. AI tutor: explains failures from check results and terminal context, subject to an explicit data policy.
  6. Production: self-hosted on vCenter (KubeVirt with nested virtualisation, Kata for privileged labs), warm pools sized by demand, and multi-tenant SaaS.

Quick start

UI only, with mock data (no cluster needed):

pnpm install
task dev:web:mock        # http://localhost:5173 (persona switcher: learner, manager, instructor, admin)

Full local stack (Linux or WSL2 with /dev/kvm, Docker, ~16 GB RAM free):

task tools               # pinned CLIs into ~/.local/bin
task dev:up              # kind + KubeVirt + CDI + Kube-OVN + Multus (heals expired certs)
task dev:deps            # Postgres, Keycloak (realms, orgs, IdPs), Mailpit; migrate + seed
task dev:orchestrator    # lab orchestrator in the cluster
task dev:gateway         # gateway on :8787
task dev:web             # the app in real mode on :5173
task dev:site            # the public website on :6969 (sign-in hands over to :5173)

Prove a lab works:

task lab:verify -- --only scale-berth-planner ../../content/packs/kubernetes/labs

Checks:

pnpm -r build && pnpm -r test
node tools/lab-verify/bin/lab-verify.mjs --strict
cd services/lab-orchestrator && go vet ./... && go test ./...

Repository

Path What
apps/web Web app (React, TanStack Router, xterm.js, React Flow); mock and real mode; the public website (docs/website.md)
services/gateway Backend for the web app: OIDC sessions, authorisation, Postgres, catalog, labs, exams, terminal WebSocket
services/lab-orchestrator Kubernetes operator (Go), node drivers, grader, exam engine, labctl
packages/lab-schema, packages/api-types Lab, curriculum and site schemas; shared API types
content/ Skill graph, framework mappings, curriculum, lab packs, website configuration (site.yaml)
tools/ lab-verify, curriculum renderer, image builds, license inventory, slot limiter
deploy/ Local stack: kind, KubeVirt, Kube-OVN, Multus, vcluster, compose deps
docs/ Architecture, platform identity, dev environment, curriculum, handoff, research

Security

Every change runs through security pipelines on GitHub Actions (details):

  • Static analysis: CodeQL (JS/TS, Go, Actions), Semgrep, gosec, shellcheck, hadolint, actionlint, zizmor.
  • Secrets: gitleaks.
  • Dependencies: Dependabot, dependency review with a license gate, govulncheck, osv-scanner.
  • SBOMs: syft (CycloneDX, SPDX), submitted to the dependency graph.
  • Images: Trivy and Grype scans; signed with cosign; SLSA provenance and SBOM attestations.
  • Infrastructure as code: kube-linter, Trivy config, checkov.
  • Running app: OWASP ZAP against the web app and gateway.
  • Other: OpenSSF Scorecard and nightly Go fuzzing.

All actions are pinned to commit SHAs with least-privilege permissions.

Report vulnerabilities privately through GitHub Security Advisories; see SECURITY.md. Never open a public issue for a vulnerability.

License

CloudTrain is source-available, not open source. See docs/licensing.md for the plain-language model, what is free, what needs a license key, and FAQs.

  • Software: Business Source License 1.1. Self-hosting is free for any purpose, including training your own organisation's employees and contractors, as long as you do not offer CloudTrain, its labs or assessments to third parties as a hosted, managed, embedded or commercial service, or resell it. Premium enterprise features (SSO with external identity providers, SCIM and others) need a license key in production; removing or bypassing the key checks is not permitted. Each version becomes Apache-2.0 four years after its first public release.
  • Lab content (content/: labs, skill graph, framework mappings): CC BY-NC 4.0, with an additional permission to train your own organisation's personnel on a self-hosted installation, also in a commercial organisation. Credit "CloudTrain" when you share it.
  • Hosted service: CloudTrain's hosted service is paid per compute consumed, plus subscription tiers for the premium features.
  • Third-party software: see THIRD_PARTY_LICENSES.md and NOTICE.
  • Contributing: see CONTRIBUTING.md; contributors sign the CLA.

Certification names are trademarks of their owners. CloudTrain is not affiliated with or endorsed by any certification body. Screenshots come from node apps/web/scripts/readme-shots.mjs.

About

Real Linux machines, Kubernetes clusters and network devices in your browser, graded on the state you leave them in. Self-host it for free, or let us run it and pay only for the minutes your labs use.

Resources

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages