Black CTF
A multi-tenant platform for running cybersecurity competitions, with sandboxed challenges.
Highlights
- 01
Next.js 15 on Cloud Run with PostgreSQL 16 and one schema per tenant.
- 02
Real-time leaderboards built on CQRS and server-sent events.
- 03
A custom Kubernetes operator in Go that launches each challenge in a gVisor sandbox on GKE Autopilot.
The brief
Built at Black Byt3, a cybersecurity company. Organisers run capture-the-flag events for their own teams on shared infrastructure. Each tenant has its own database schema, each challenge runs in its own sandbox, and the leaderboard updates live.
Also built
- 04
HMAC-signed dynamic flags, so a flag copied from another team is worthless.
- 05
Infrastructure in Terraform, delivered by ArgoCD GitOps, with Stripe tiers for billing.
The system, layer by layer
Five layers, one product.
Highlighted: the layer that carries the most weight.
L1Web
- Next.js 15 on Cloud Run
- Live leaderboard over SSE
L2Platform
- CQRS read and write models
- HMAC-signed dynamic flags
- Stripe tiers
L3Data
- PostgreSQL 16
- One schema per tenant
L4Challenge runtime
- Custom Go Kubernetes operator
- GKE Autopilot
- gVisor sandbox per challenge
L5Delivery
- Terraform
- ArgoCD GitOps
Next case · 06 / 57
Canvas Video StudioOur own video studio, where every frame of a film is drawn in code.
Previous: Legal-AI