Skip to content

Decision log

The options that lost, and why

Every significant change to the server running this site is written down before or as it happens, with the alternatives and the reason each one lost. Incidents go in the same log, including the ones I caused. These 10 are a selection, shortened, and each keeps its number from the full log, which is kept with the platform’s source in the OneBox repository.

  1. IncidentD-056 · 2026-11-17

    The certificate renewed on time, and the site still served an expired one

    Context

    The site served an expired certificate for about 60 hours. Renewal had worked five weeks earlier. The deploy step had not: a cleanup script had deleted a directory that the web server mounted, so its config test failed, the deploy rolled back, and nothing complained.

    Options

    • Fix the directory and move on

      Fixes this instance. The next drift would be just as silent.

    • More alerts on certificate expiry

      Already existed and fired correctly. Expiry alerts fire weeks after the real fault.

    • ChosenAlert on disagreement, and repair it automatically

    Decision

    Measure what the certificate tool holds and what the web server actually serves, and alert when they differ. A timer redeploys the current certificate when they drift, but refuses to act when the config test itself is failing, and stops after three tries a day.

    What it cost, and what I took from it

    The same fault now shows up within half an hour and usually fixes itself. Last time the first warning came eight days after the deploy failed, and it blamed renewal, which was working. The lesson I took: alert on the divergence, not on the deadline.

  2. DecisionD-057 · 2026-11-17

    Backups ran twice a night, so 30 copies only covered 15 days

    Context

    Off-site backups go to object storage with a 10 GB cap. Two timers were both triggering the same job, a leftover from when it was a cheap copy. The restore test also existed but had never been scheduled.

    Options

    • Raise the retention count

      Spends the same budget on duplicates.

    • Keep the chained call, drop the timer

      Rejected. It only ran when the local backup had succeeded, which is backwards.

    • ChosenOne timer, a weekly restore test, a monthly off-site restore

    Decision

    Remove the duplicate trigger, trim log data the rebuild does not need, and run restore tests on a schedule with alerts when they go stale or fail.

    What it cost, and what I took from it

    Retention doubled to 30 days in less space, and the off-site copy has now been proven restorable rather than assumed to be.

  3. DecisionD-020 · 2026-08-16

    Certificates by DNS challenge, not HTTP, and not the CDN's own CA

    Context

    The origin needed a real certificate, and only the CDN's published address ranges are allowed to reach it.

    Options

    • HTTP-01

      Rejected. The certificate authority's validators come from addresses the firewall blocks, so every renewal would fail about 60 days later.

    • The CDN's origin certificate

      Rejected. Free and long-lived, but only the CDN trusts it, so debugging the origin directly breaks.

    • ChosenLet's Encrypt over DNS-01, wildcard

    Decision

    A wildcard certificate validated through DNS. No inbound path is needed, port 80 never has to open for it, and new subdomains need no new certificate.

    What it cost, and what I took from it

    Renewal now depends on a scoped API token. Revoking it would break renewal silently, so the token's validity and expiry are monitored too.

  4. DecisionD-010 · 2026-08-16

    Build everything privately first, go public last

    Context

    No domain had been bought yet. The tempting reading was that the work was blocked until it was.

    Options

    • Wait for the domain

      Rejected. It delays finding out the two things that could kill the plan: resources and ARM image support.

    • Self-signed certificates meanwhile

      Rejected. They do not exercise real certificate validation, secure cookies or HSTS.

    • ChosenBuild on a private network with real certificates, go public as the last phase

    Decision

    Every service was built and proven under real TLS on a private overlay network. Opening the server to the internet was the final step, not the first.

    What it cost, and what I took from it

    The box was unreachable from the internet while it was least understood, and every public-facing behaviour had been rehearsed before launch.

  5. DecisionD-009 · 2026-08-16

    Keep the firewall that is actually running, instead of the one the plan assumed

    Context

    The plan said to use UFW. On the server, UFW was installed but inactive, and the real filter was a plain iptables ruleset shipped by the cloud provider, including a chain protecting the metadata service.

    Options

    • Enable UFW as planned

      Rejected. Enabling it replaces the live ruleset, starting with the SSH rule the session depends on.

    • ChosenManage the existing iptables rules

    Decision

    Hand-edited, persisted iptables rules, with container ingress controlled in Docker's own chain, because Docker bypasses UFW either way.

    What it cost, and what I took from it

    Less friendly than a one-line allow, but honest about what is running, and the provider's metadata protection stays in place.

  6. IncidentD-013 · 2026-08-16

    A plugin moved the data disk, and Docker started up empty without an error

    Context

    Installing the remote desktop platform took every service down for about 15 minutes. A storage plugin it installs claims the whole /mnt tree, which moved the data disk out from under Docker. Docker then started successfully on an empty directory.

    Options

    • Work around the plugin's mount

      Rejected. It is not needed here at all.

    • ChosenRemove the plugin and prove a restart keeps the disk

    Decision

    Plugin removed, disk remounted, every container recreated. A second bug it exposed, the proxy caching old container addresses, was fixed by resolving them at request time.

    What it cost, and what I took from it

    No data lost. The part worth remembering is that nothing errored. A service that starts successfully on the wrong state is worse than one that fails.

  7. IncidentD-017 · 2026-08-16

    The disk alert was right, and the earlier check had tested the wrong thing

    Context

    Docker's data directory had been moved to the big data disk so images would not fill the system disk. A disk-filling alert fired anyway, and it was correct: image layers live under containerd's own directory, which had not moved.

    Options

    • Silence the alert as a false positive

      Rejected. It was not one.

    • ChosenGive containerd its own root on the data disk

    Decision

    Move containerd's storage to the data disk as well, and check the place where the bytes actually go, not just the setting that was changed.

    What it cost, and what I took from it

    The earlier verification had been true and useless. It confirmed the setting, not the outcome. That distinction comes up on almost every page of the log.

  8. DecisionD-022 · 2026-08-18

    Node builds the site, Bun installs and runs it

    Context

    The site was specified as a Bun project. Bun installs and serves it fine, but crashed during the production build once self-hosted fonts were added.

    Options

    • Drop self-hosted fonts

      Rejected. It would mean a request to a third party on every visit.

    • Move everything to Node

      Rejected. The crash is confined to one stage, and Bun's speed elsewhere is worth keeping.

    • Pin an older Bun

      Rejected. Guessing at a version that might not crash is not a fix.

    • ChosenNode for the build stage only

    Decision

    The container build uses Node for one stage and Bun for installing and serving. The switch back is a one-line change once Bun is fixed.

    What it cost, and what I took from it

    This is what the documented fallback was for. An escape hatch that had been tested worked the first time it was needed.

  9. DecisionD-058 · 2026-11-17

    Check that configs would load, using fresh containers rather than the running ones

    Context

    A running service says nothing about whether its config still loads. The web server proved that for seven weeks. Monitoring, alerting and probing have the same exposure: config in memory, file on disk.

    Options

    • Run the validator inside each running container

      Rejected. On this host it reports a valid config as broken, for reasons unrelated to the config.

    • ChosenValidate the file on disk in a throwaway container

      It reads exactly what a restart would load.

    Decision

    Hourly checks of each config in a fresh container, with one alert for a config that will not load and a separate one for being unable to check at all.

    What it cost, and what I took from it

    A bad edit now surfaces within an hour, instead of at the next reboot, which is the worst time to find out.

  10. DecisionD-053 · 2026-08-21

    Each admin tool on its own host instead of a path under the main site

    Context

    Two third-party tools were served under paths of the main domain. Both needed special configuration to work behind a prefix, and both broke in confusing ways when it was wrong.

    Options

    • Keep the paths and document the settings

      Rejected. An upgrade could reset them and nothing would say so.

    • ChosenGive each tool its own hostname

    Decision

    Each tool moved to its own hostname under the existing wildcard certificate, back on its default settings, and the old paths return 404.

    What it cost, and what I took from it

    Less configuration, not more. Both tools now run on settings their upgrades will not undo.

For employer work, the same reasoning is in the case studies, within what the NDA allows.