Self-hosting: every step a stranger needs to run mcl-mail on their own box today, marked product vs fleet-only, and the shortest path to one command #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (measurement): a stranger can run mcl-mail on their own hardware with one documented command, and we know today's gap step by step before any code is written.
Owner rule: DECIDED 2026-11-23 "people are supposed to be able to run a mcl service ON THEIR OWN HARDWARE WITHOUT TOO MUCH FRICTION" (relayed by the Supervisor).
mcl-mail is the example service. The result is meant to apply to every mcl-* service.
Package (Uranus): measurement first, no code
Done when
Placed by Mars (dispatcher) for the Supervisor.
Self-hosting mcl-mail today: every step, measured (Uranus, 2026-11-23)
Read from mcl-mail main
b4197f7(git archive), macula-fleet main, mcl-om main, and probes made from outside our network (anonymous HTTP). Owner rule: DECIDED 2026-11-23 "people are supposed to be able to run a mcl service ON THEIR OWN HARDWARE WITHOUT TOO MUCH FRICTION".The steps a stranger takes today, from a clean Linux box
/user/login, and the API answers 403 for the repo. github.com/macula-services/mcl-mail still answers 200, but that account is suspended and no longer updated.deploy/docker-compose.yml:31-35(host networking, because stations are IPv6-only)docker-compose.yml:28requiresMCL_MAIL_IMAGE_DIGEST. README.md:218 says "of the released image" and names no place to look it up.MCL_REALMrealm_idin https://realm.macula.io/.well-known/macula-realm.json. The README doesn't point there.MCL_REALM_KEYconfig/sys.config.src:62want hex. The well-known file carriespublic_keyin base64.MACULA_STATION_SEEDS+MACULA_STATION_NODE_IDSedge/beam02.lab/mcl-mail-config.env, private forge). The stations publish no node id (their/.well-known/*answers 404)./bulk0/mcl-mail, a fleet layout (README.md:217)MCL_DATAMCL_COOKIE=mcl_mailwhile the dist listener binds every interface: measured0.0.0.0:36413for mcl_mail on beam02. Filed as #17.docker compose -p mcl-mail -f deploy/docker-compose.yml up -dmcl_om_claim.erl:11-13,212-214(mcl-om): the boot claim stays pending until the realm's operator admits the node. The org is fixed asmcl-mail(sys.config.src:40), so the stranger becomes one more provider of our org, admitted by us.scripts/health.sh(README.md:195)cosign verifyline.macula-ci-otp-rocksdbimage. RocksDB is leaving (ci-images#19).Fleet-only, never a stranger's step: pin-releases and the signer chain (
allowed_signers, the image signer, bots), the per-boxmcl-mail-config.envand~/.macula/secrets/mcl-mail.env(fleet compose:3,33-34), the reconciler, and the/bulk0layout. README.md:241-252 ("Deployment", point 2) describes these fleet steps inside the product README. They should move to macula-fleet.Today's verdict: a stranger cannot finish. Steps 1, 4, 7 and 11 are blocked, and 9 is unsafe.
The shortest path: one documented command per service
What it needs, in order. Each item is product work in the service or the realm, and none of it touches the fleet path:
run.sh, the released image and the signatures. Today nothing qualifies: the forge needs a login and ghcr is frozen. This needs Raf's choice.v*tag writesmcl-mail.envnext to the image: the digest,MCL_REALM,MCL_REALM_KEYin hex, and the station seeds paired with their node ids. Step 3 then disappears, and so do 5-7 as lookups.key_id. The release's env file is filled from that list.run.shdoes the rest: checks for docker/podman and IPv6, makes the data dir under the path given, generates a random cookie into a local 0600 file, pulls by digest, verifies the signature, runscompose up, and printshealth.sh's answer and the claim's state.The same shape fits every mcl-* service. The service's repo carries
run.shand its compose file, the release writes the env file, and the realm publishes the stations. The fleet keeps its own compose files and pins, and nothing inrun.shreads from them.Open for a ruling (not decided here): the public home (item 1) and the admission policy (item 6). No code in this package; the build is a separate ruling.
Stranger walk on a throwaway box: done. It runs up to the boot claim; the claim stays pending until the realm operator admits the node.
Box: Hetzner cx23 fsn1, Ubuntu 24.04.4, label purpose=throwaway, fresh key. cpx11 answered "unsupported location for server type" in fsn1, nbg1 and hel1, so I took the next smallest x86 at the same price (2c/4G, €0.0106/h gross). Created 21:10:18Z, deleted 21:15:35Z (5m17s). GET server, both primary IPs and the SSH key: 404. No server labelled purpose=throwaway remains. Billed hour: about €0.01.
No crew credentials went to the box; everything below is anonymous.
apt-get install docker.io docker-compose-v2 git jqgit clone https://git.macula.io/macula-services/mcl-mail.gitfd2617b)mcl-mail:0.6.1pulls anonymously, digest sha256:971e0747…37dd08. ghcr pulls too, but its newest is 0.6.0. main's compose points at ghcr: fixed in the PR. The forge's anonymous/v2/…/tags/listgives 401, so a stranger can't list versions.mcl_echo_stations.erl(anonymous clone); falkenstein, helsinki, frankfurtdocker compose up -d(MCL_DATA=/srv/mcl-mail)mcl_om_claim: claim for org=mcl-mail is pending in realm abb81b5a…: an operator must admit this node before its procedures can be advertisedscripts/health.shdegraded, HTTP 503, claim pending, 9/9 procedures not_granted (operator_must_grant). Clear enough.Gaps still open: admission (macula-realm#8), the stations list (macula-realm#7), the signer key (mcl-mail#21). The PR documents the walk in the README ("Run it on your own box").
Closing. PR 22 landed as one squash commit,
dfb221e0(main).Purpose (measurement): "a stranger can run mcl-mail on their own hardware with one documented command, and we know today's gap step by step before any code is written."
Still open from the walk: