Wicket

The box behind Cloudflare. Cloudflare is the edge: names, the public way in, object storage. Wicket runs what Cloudflare does not, on one machine of your own: your apps and their data, your mail, your local network, and the backups of all of it.

Pre-alphaOath, behind CloudflareOne machineManual

The admin console's Overview: what needs attention, the host, and the install map from names through the front door and services to data and backups.
The Overview. The install map follows every name through the front door to its service, its data and its backups.

Goals

Use Cloudflare for what it has. DNS, the public way in, certificates for web names and object storage are Cloudflare's. Wicket fills in the rest instead of building those again.

Operations first. Deployment, health, backup and recovery come before features. Every service has a readiness check, every path that changes has an owner and a backup, and restoring onto a fresh machine is an ordinary, tested workflow.

One way in. Operators talk to Wicket, never to the daemons underneath. wicketctl, the API and the admin console are three faces of the same contracts, and every install serves the documentation for the version it runs.

It does the setup itself. When Wicket holds a credential that can do a step, it does the step. Give it one Cloudflare token and it makes narrower ones, keeps only those, opens the tunnel and writes every DNS record, instead of handing you records to paste somewhere else.

Updates keep it running. Versions are signed Oath packages. wicketctl update takes a restore point first, new binaries repair whatever the old ones left behind, and sudo oath undo goes back.

Secrets stay where they belong. Keys and passwords live on the host and on the operator's machine, never in a repository or in an API response. The admin console shows a secret's name, not its value.

Little underneath it. The control plane is Rust and the host runs Oath. Everything Wicket runs, apps included, is one unprivileged account with no sudo and no login.

What runs on a host

An install is one machine. These are its parts. wicketctl also runs on the operator's computer, and reaches the same commands over SSH.

PartWhat it does
wicketctlThe command line. Run bare, it says what this install is, what is done and what is next. wicketctl mcp gives the same commands to an agent.
wicketThe control API. It plans and applies changes, runs long jobs, and keeps the front door, mail and LAN DNS in step with what you asked for. It listens on the machine only.
wicket-adminThe admin console, under /admin on the site's own name.
wicket-idpSign-in: an OpenID Connect provider with emailed links, and a realm of its own for any app that wants its own users.
cloudflaredThe way in: a Cloudflare Tunnel, so nothing listens publicly for web traffic.
routeThe front door, from Oath: routes by name and path, from a table Wicket writes.
cellContainers for workloads, from Oath, and a private registry on the machine that holds their images.
PostgreSQLThe platform's database and the mail store, dumped with every backup.
StalwartMail: SMTP, submission, IMAP and contacts sync.
resticHourly encrypted snapshots of system state and app data, to Cloudflare R2.
BlockyOptional: DNS for the local network, with ad blocking and short names for its devices.

What works today

Install
A machine running Oath and a short list of steps on it: wicketctl services install, cloudflare connect, site, tunnel open, mail, backups enable and owner invite. A person or an agent can run them.
The way in
A Cloudflare Tunnel carries every web name to the machine, and Cloudflare serves its certificate.
DNS
Wicket writes one exact name for each site, never a wildcard, and shows what will change before it does.
Sign-in
One sign-in for the console and the apps on an install, on the site's own name, with apps sandboxed beside it.
Mail
Stalwart receives and serves mail on one name, with a certificate of its own. Mail leaves through SMTP2GO, and Wicket adds each sender domain and publishes its records. People make their own mail passwords, and the console manages addresses, forwards and junk rules.
Workloads
Containers with routes, SQLite and PostgreSQL databases, file sets, secrets and sign-in. A roll waits for the new image's health check and puts the previous image back if it fails.
Backups
Hourly restic snapshots to R2, one repository for system state and one for app data, with a tested restore onto a fresh machine.
Updates
wicketctl update takes a restore point and moves Wicket's packages. A failed update names the way back.
LAN DNS
Optional: a resolver for the local network with ad blocking and short names for its devices.
Docs
Every install serves the manual for the version it runs, in the admin console and from wicketctl docs.

The admin console

Every page reads from the same API as the command line. These are from the design, with sample data.

The workloads list: each one's state, image, routes, data and sign-in, with the time it was last applied.
Workloads: what each one runs, what it has attached, and when it was last applied.
DNS names grouped by zone, with the review step of pointing a name: each record to replace, add or keep at Cloudflare.
Pointing a name. The plan lists exactly what changes at Cloudflare, and nothing is written until you apply.
Backups: system state and app data, thirty days of hourly snapshots as a strip of marks, the snapshot list, and what to do if the machine is lost.
Backups: system state and app data in their own encrypted repositories, thirty days at a glance, and what to do if the machine is lost.

A workload file

An app is a workload, described by a file like the one below. wicketctl workload apply makes the install match it, and the admin console shows and edits the same thing.

# A shop: one container, one public name, one database.
# Apply: wicketctl workload apply <install> --file workload.toml --confirm

schema = "wicket.workload/v0"

[workload]
id = "wl-0a1b2c3d4e5f"
name = "shop"

[[containers]]
name = "web"
image = "registry.example.com/shop:latest"
ports = [{ name = "http" }]

[[routes]]
host = "shop.example.com"
container = "web"
port = "http"

[[databases]]
id = "db-0a1b2c3d4e5f"
name = "orders"
container = "web"

Pushing an image and applying the file takes two commands:

wicketctl registry push <install> --archive shop.tar --image shop:latest
wicketctl workload apply <install> --file workload.toml --confirm

Status

Wicket is pre-alpha. Not there yet:

The manual covers what works today in detail.