
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
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.
| Part | What it does |
|---|---|
wicketctl | The 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. |
wicket | The 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-admin | The admin console, under /admin on the site's own name. |
wicket-idp | Sign-in: an OpenID Connect provider with emailed links, and a realm of its own for any app that wants its own users. |
cloudflared | The way in: a Cloudflare Tunnel, so nothing listens publicly for web traffic. |
route | The front door, from Oath: routes by name and path, from a table Wicket writes. |
cell | Containers for workloads, from Oath, and a private registry on the machine that holds their images. |
| PostgreSQL | The platform's database and the mail store, dumped with every backup. |
| Stalwart | Mail: SMTP, submission, IMAP and contacts sync. |
| restic | Hourly encrypted snapshots of system state and app data, to Cloudflare R2. |
| Blocky | Optional: 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 enableandowner 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.
- 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 updatetakes 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.
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:
- Installing it without help. Packages are signed and published, but each machine's owner has to trust the publishing key by hand.
- More than one machine in an install.
- Finer permissions for teams of operators.
- Passwords on routes, until Oath's router can check them.
- Updates from the admin console.
- An automated run on a fresh machine for every release.
The manual covers what works today in detail.